|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcat.hist.ClientApplication
This class puts CAT sensor data into a standard SQL form and sends it to local server that stores it into a local database.
Constructor Summary | |
ClientApplication()
|
Method Summary | |
void |
communicateByObject()
Used internally for communicating with the database server. |
void |
communicateByStream()
Used internally for communicating with the database server. |
void |
insert(java.lang.String id,
java.lang.String type,
java.lang.String endtime,
java.lang.String value)
This method is used only by HistoryManager to insert sensor data into the database. |
static void |
main(java.lang.String[] argv)
This is just for testing that it can connect to the database server. |
java.util.Vector[] |
query(java.lang.String id,
java.lang.String type)
Use this method to retrieve the sensor data for the given sensor for all times. |
java.lang.String |
query(java.lang.String id,
java.lang.String type,
java.lang.String endtime)
Use this method to retrieve the sensor data for the given sensor that is closest to the given time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientApplication()
Method Detail |
public static void main(java.lang.String[] argv)
public java.lang.String query(java.lang.String id, java.lang.String type, java.lang.String endtime) throws java.io.IOException
id
- The sensor id of the desired data.type
- The type of the sensor data.endtime
- The nearest time of the data.
java.io.IOException
public java.util.Vector[] query(java.lang.String id, java.lang.String type) throws java.io.IOException
id
- The sensor id of the desired data.type
- The type of the sensor data.
java.io.IOException
public void insert(java.lang.String id, java.lang.String type, java.lang.String endtime, java.lang.String value) throws java.io.IOException
id
- The sensor id of the data.type
- The type of the sensor data.endtime
- The nearest time of the data.value
- The sensor data value.
java.io.IOException
public void communicateByStream() throws java.io.IOException
java.io.IOException
public void communicateByObject() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |