|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.astron.lofar.odtb.mom2otdbadapter.data.OTDBRepository
public class OTDBRepository
Repository that stores and retrieves LofarObservation objects to the jOTDB RMI interface. It converts it to the tree structure of jOTDB and vice versa.
Field Summary | |
---|---|
private jOTDB.jConverterInterface |
converter
|
static java.lang.String |
DATE_TIME_FORMAT
|
private org.apache.commons.logging.Log |
log
|
private jOTDB.jOTDBinterface |
remoteOTDB
|
private static int |
TEMPLATE_ID
|
private jOTDB.jTreeMaintenanceInterface |
tm
|
Constructor Summary | |
---|---|
OTDBRepository(java.lang.String rmiServerName,
int port)
Constructor that makes a connection to the specified rmi server on the specified rmi port |
Method Summary | |
---|---|
java.util.List |
getLatestChanges(java.util.Date startDate,
java.util.Date endDate)
Retrieve lates changes between start- en endtime |
protected jOTDB.jOTDBnode |
getNode(jOTDB.jOTDBnode parentNode,
java.lang.String paramName)
Retrieves node by parent node and parameter name |
protected boolean |
isStatusThatMustBeExported(java.lang.String code)
Checkes if observation with a status must be exported to MoM |
void |
store(LofarObservation lofarObservation)
Stores a lofarObservation to jOTDB |
protected void |
storeParam(jOTDB.jOTDBnode parentNode,
java.lang.String paramName,
java.lang.String paramValue)
Stores parameter in the tree by given parent node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.commons.logging.Log log
private jOTDB.jOTDBinterface remoteOTDB
private jOTDB.jTreeMaintenanceInterface tm
private jOTDB.jConverterInterface converter
private static final int TEMPLATE_ID
public static final java.lang.String DATE_TIME_FORMAT
Constructor Detail |
---|
public OTDBRepository(java.lang.String rmiServerName, int port) throws java.rmi.RemoteException, java.rmi.NotBoundException
rmiServerName
- port
-
java.rmi.RemoteException
java.rmi.NotBoundException
Method Detail |
---|
public void store(LofarObservation lofarObservation) throws java.rmi.RemoteException
lofarObservation
-
java.rmi.RemoteException
protected void storeParam(jOTDB.jOTDBnode parentNode, java.lang.String paramName, java.lang.String paramValue) throws java.rmi.RemoteException
parentNode
- parent nodeparamName
- parameter nameparamValue
- parameter value
java.rmi.RemoteException
protected jOTDB.jOTDBnode getNode(jOTDB.jOTDBnode parentNode, java.lang.String paramName) throws java.rmi.RemoteException
parentNode
- parent nodeparamName
- name of the parameter
java.rmi.RemoteException
public java.util.List getLatestChanges(java.util.Date startDate, java.util.Date endDate) throws java.rmi.RemoteException
startDate
- start timeendDate
- end time
java.rmi.RemoteException
protected boolean isStatusThatMustBeExported(java.lang.String code)
code
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |