|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--saaps.dbt.DatabaseRMIImpl
Provides a RMI server for Database
access.
Through the use of the DatabaseRMI
interface
it's possible to:
get information of available databases,
get MetaData
for a specific databse,
get different types of data from the database.
Fields inherited from class java.rmi.server.UnicastRemoteObject |
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf |
Fields inherited from class java.rmi.server.RemoteServer |
log, logname |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
DatabaseRMIImpl()
Runs the constructor of the superclass UnicastRemoteObject . |
Method Summary | |
TimeSeries |
getAnom002ModelTS(java.util.Date d1,
java.util.Date d2)
|
java.util.Vector |
getData(java.lang.String theDb,
java.util.Date sd,
java.util.Date ed)
Gets a Vector of Database objects. |
java.util.Vector |
getDatabaseList()
Gets a list of available Database s. |
MetaData |
getMetaData(java.lang.String theDb)
Gets the MetaData for this Database . |
NetworkParam |
getNetworkParam(java.lang.String netParam)
Gets the parameters for the neural network. |
NormParam |
getNormParam(java.lang.String normParam,
int nof)
Gets the normalization parameters needed for the preprocessing of a TimeSeries object before it is input to a network. |
TimeSeries |
getTimeSeries(java.lang.String theDb,
java.util.Date sd,
java.util.Date ed)
Gets a TimeSeries object. |
static void |
main(java.lang.String[] args)
The main for the RMI server. |
TimeSeries |
retrieveElFluence()
|
TimeSeries |
retrieveElFluence(java.util.Date d)
|
ObjectTimeSeries |
retrieveOTS(java.lang.String theDB,
java.util.Date sd,
java.util.Date ed,
boolean before)
Gets an ObjectTimeSeries containing data between
the dates. |
TimeSeries |
retrieveSEA(java.lang.String theDB,
int fieldIndex,
java.util.Date[] events,
long start,
long end,
boolean withAdditionalInfo)
Retrieves a TimeSeries object containing the averaged data for the input event list. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
|
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub, writeObject |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
Constructor Detail |
public DatabaseRMIImpl() throws java.rmi.RemoteException
UnicastRemoteObject
.java.rmi.RemoteException
- network/io problemMethod Detail |
public java.util.Vector getDatabaseList()
Database
s.getDatabaseList
in interface DatabaseRMI
Vector
of Database
namespublic MetaData getMetaData(java.lang.String theDb)
MetaData
for this Database
.getMetaData
in interface DatabaseRMI
theDb
- Database
nameMetaData
for this Database
public java.util.Vector getData(java.lang.String theDb, java.util.Date sd, java.util.Date ed) throws java.io.IOException
Vector
of Database
objects.getData
in interface DatabaseRMI
theDb
- Database
namesd
- start date/timeed
- end date/timejava.io.IOException
- when io problem or no data for this timepublic TimeSeries getTimeSeries(java.lang.String theDb, java.util.Date sd, java.util.Date ed) throws java.io.IOException
TimeSeries
object.getTimeSeries
in interface DatabaseRMI
theDb
- Database
namesd
- start date/timeed
- end date/timeTimeSeries
java.io.IOException
- when io problem or no data for this timepublic ObjectTimeSeries retrieveOTS(java.lang.String theDB, java.util.Date sd, java.util.Date ed, boolean before) throws java.io.IOException, IllegalTimeSeriesException
ObjectTimeSeries
containing data between
the dates.retrieveOTS
in interface DatabaseRMI
theDB
- SAAPS database namesd
- start date for searched
- end date for searchbefore
- if true
then the first object returned
is before the start search date.public TimeSeries retrieveSEA(java.lang.String theDB, int fieldIndex, java.util.Date[] events, long start, long end, boolean withAdditionalInfo) throws java.io.IOException, TimeSeriesIndexException, IllegalTimeSeriesException
Database.retrieveSEA(int, Date[], long, long, boolean )
.retrieveSEA
in interface DatabaseRMI
theDB
- name of the SAAPS Database
fieldIndex
- index of the data fieldevents
- array of event timesstart
- event window starts here (normally negative [milliseconds])end
- event window ends here (normally positiv [milliseconds])withAdditionalInfo
- if true
get also the number of
data points and the standard deviation from the average.TimeSeries
object with fieldName
data for start to end time for every eventTimeSeriesIndexException
- when fieldIndex
is out of boundsjava.io.IOException
- when data for any of the event times are missingpublic NetworkParam getNetworkParam(java.lang.String netParam)
getNetworkParam
in interface DatabaseRMI
netParam
- network parameter nameNetworkParam
public NormParam getNormParam(java.lang.String normParam, int nof)
TimeSeries
object before it is input to a network.getNormParam
in interface DatabaseRMI
normParam
- normalization parameter namenof
- number of fieldsNormParam
public static void main(java.lang.String[] args)
DatabaseRMIImpl
to the registry.public TimeSeries retrieveElFluence() throws java.rmi.RemoteException
retrieveElFluence
in interface DatabaseRMI
public TimeSeries retrieveElFluence(java.util.Date d) throws java.rmi.RemoteException
retrieveElFluence
in interface DatabaseRMI
public TimeSeries getAnom002ModelTS(java.util.Date d1, java.util.Date d2)
getAnom002ModelTS
in interface DatabaseRMI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |