public class HSQLRequestFilterDb extends AbstractDb
connection, databaseName, directoryName
Constructor and Description |
---|
HSQLRequestFilterDb(java.lang.String directoryName,
java.lang.String databaseName) |
HSQLRequestFilterDb(java.lang.String directoryName,
java.lang.String databaseName,
DataCenterOperations router) |
Modifier and Type | Method and Description |
---|---|
void |
addSeismogram(LocalSeismogramImpl[] seismos) |
RequestFilter[] |
available_data(RequestFilter a_filterseq) |
RequestFilter[] |
available_data(RequestFilter[] a_filterseq) |
void |
create() |
java.lang.String |
getFileIds(ChannelId channel_id,
MicroSecondDate beginDate,
MicroSecondDate endDate) |
int[] |
getFileIds(RequestFilter[] requestFilters) |
int[] |
getFileIds(java.lang.String channel_id,
MicroSecondDate beginDate,
MicroSecondDate endDate) |
java.lang.String[] |
getFilePaths(int[] fileids) |
LocalSeismogram |
getSeismogram(java.lang.String fileids) |
LocalSeismogramImpl[] |
getSeismograms(RequestFilter[] requestFilters) |
long |
getTotalSize() |
void |
insertFileInfo(LocalSeismogramImpl[] seismograms)
for the name of the seismogram append begin time and
end time along with the channel name.
|
void |
insertRequestFilterInfo(java.lang.String channel_id,
MicroSecondDate begin_date,
MicroSecondDate end_date,
int fileid) |
void |
setMaxDataSize(long size)
sets the maximum size in bytes of the disk cache.
|
protected void |
trimToMaxSize() |
getConnection
public HSQLRequestFilterDb(java.lang.String directoryName, java.lang.String databaseName) throws java.sql.SQLException
java.sql.SQLException
public HSQLRequestFilterDb(java.lang.String directoryName, java.lang.String databaseName, DataCenterOperations router) throws java.sql.SQLException
java.sql.SQLException
public void setMaxDataSize(long size)
public void create() throws java.sql.SQLException
create
in class AbstractDb
java.sql.SQLException
public RequestFilter[] available_data(RequestFilter[] a_filterseq) throws java.sql.SQLException
java.sql.SQLException
public RequestFilter[] available_data(RequestFilter a_filterseq) throws java.sql.SQLException
java.sql.SQLException
public void addSeismogram(LocalSeismogramImpl[] seismos) throws java.sql.SQLException, CodecException, java.io.IOException
java.sql.SQLException
CodecException
java.io.IOException
public void insertRequestFilterInfo(java.lang.String channel_id, MicroSecondDate begin_date, MicroSecondDate end_date, int fileid) throws java.sql.SQLException
java.sql.SQLException
public void insertFileInfo(LocalSeismogramImpl[] seismograms) throws CodecException, java.io.IOException, java.sql.SQLException
CodecException
java.io.IOException
java.sql.SQLException
protected void trimToMaxSize() throws java.sql.SQLException
java.sql.SQLException
public long getTotalSize() throws java.sql.SQLException
java.sql.SQLException
public int[] getFileIds(RequestFilter[] requestFilters) throws java.sql.SQLException
java.sql.SQLException
public int[] getFileIds(java.lang.String channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String[] getFilePaths(int[] fileids) throws java.sql.SQLException
java.sql.SQLException
public LocalSeismogramImpl[] getSeismograms(RequestFilter[] requestFilters) throws java.sql.SQLException, java.io.IOException, FissuresException
java.sql.SQLException
java.io.IOException
FissuresException
public java.lang.String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws java.sql.SQLException
java.sql.SQLException
public LocalSeismogram getSeismogram(java.lang.String fileids) throws java.sql.SQLException, java.io.IOException, FissuresException
java.sql.SQLException
java.io.IOException
FissuresException