edu.sc.seis.fissuresUtil.database
Class HSQLRequestFilterDb
java.lang.Object
edu.sc.seis.fissuresUtil.database.AbstractDb
edu.sc.seis.fissuresUtil.database.HSQLRequestFilterDb
public class HSQLRequestFilterDb
- extends AbstractDb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HSQLRequestFilterDb
public HSQLRequestFilterDb(java.lang.String directoryName,
java.lang.String databaseName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
HSQLRequestFilterDb
public HSQLRequestFilterDb(java.lang.String directoryName,
java.lang.String databaseName,
DataCenterOperations router)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setMaxDataSize
public void setMaxDataSize(long size)
- sets the maximum size in bytes of the disk cache. The actual size may be a few Mb
more for suuport file. Care should be taken to not set this value too small,
as the system will trash reloading data remotely, causing it to run very slow.
The recommended value is somewhere in the tens of megabytes. The default is
50 megabytes. The size checking is only done when new data is added.
create
public void create()
throws java.sql.SQLException
- Specified by:
create in class AbstractDb
- Throws:
java.sql.SQLException
available_data
public RequestFilter[] available_data(RequestFilter[] a_filterseq)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
available_data
public RequestFilter[] available_data(RequestFilter a_filterseq)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
addSeismogram
public void addSeismogram(LocalSeismogramImpl[] seismos)
throws java.sql.SQLException,
CodecException,
java.io.IOException
- Throws:
java.sql.SQLException
CodecException
java.io.IOException
insertRequestFilterInfo
public void insertRequestFilterInfo(java.lang.String channel_id,
MicroSecondDate begin_date,
MicroSecondDate end_date,
int fileid)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
insertFileInfo
public void insertFileInfo(LocalSeismogramImpl[] seismograms)
throws CodecException,
java.io.IOException,
java.sql.SQLException
- for the name of the seismogram append begin time and
end time along with the channel name.
- Throws:
CodecException
java.io.IOException
java.sql.SQLException
trimToMaxSize
protected void trimToMaxSize()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTotalSize
public long getTotalSize()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getFileIds
public int[] getFileIds(RequestFilter[] requestFilters)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getFileIds
public int[] getFileIds(java.lang.String channel_id,
MicroSecondDate beginDate,
MicroSecondDate endDate)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getFilePaths
public java.lang.String[] getFilePaths(int[] fileids)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getSeismograms
public LocalSeismogramImpl[] getSeismograms(RequestFilter[] requestFilters)
throws java.sql.SQLException,
java.io.IOException,
FissuresException
- Throws:
java.sql.SQLException
java.io.IOException
FissuresException
getFileIds
public java.lang.String getFileIds(ChannelId channel_id,
MicroSecondDate beginDate,
MicroSecondDate endDate)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getSeismogram
public LocalSeismogram getSeismogram(java.lang.String fileids)
throws java.sql.SQLException,
java.io.IOException,
FissuresException
- Throws:
java.sql.SQLException
java.io.IOException
FissuresException