|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabaseInterface
Method Summary | |
---|---|
void |
addChannel(ChannelConfiguration channel)
Add a new item (measurement channel) to the database |
Value |
getValue(java.lang.String label,
long timestamp)
Gets a single value with a specified timestamp from the database. |
java.util.List<Value> |
getValues(java.lang.String label,
long startTime)
Gets all values (time series) of a channel from startTime until now. |
java.util.List<Value> |
getValues(java.lang.String label,
long startTime,
long endTime)
Gets all values (time series) of a channel from startTime until endTime. |
void |
insertValue(java.lang.String label,
Value reading)
Insert a value into the database. |
Method Detail |
---|
void addChannel(ChannelConfiguration channel) throws java.io.IOException
channel
- unique identifier of the item
java.io.IOException
void insertValue(java.lang.String label, Value reading) throws java.io.IOException
label
- label unique identifier of the itemreading
- a Value object
java.io.IOException
- Will be thrown if there is a problem with
the underlying database layerjava.util.List<Value> getValues(java.lang.String label, long startTime) throws java.io.IOException
label
- unique identifier of the itemstartTime
- Time of the first value in the time series in ms since epoche.
java.io.IOException
java.util.List<Value> getValues(java.lang.String label, long startTime, long endTime) throws java.io.IOException
label
- unique identifier of the itemstartTime
- Time of the first value in the time series in ms since epoche.endTime
- Time of the last value in the time series in ms since epoche
java.io.IOException
Value getValue(java.lang.String label, long timestamp) throws java.io.IOException
label
- unique identifier of the itemtimestamp
- timestamp of the value (ms since epoche)
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |