org.openmuc.framework.datalogger.spi
public interface DataLoggerService
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId() |
java.util.List<Record> |
getRecords(java.lang.String channelId,
long startTime,
long endTime)
Returns a list of all logged data records with timestamps from
startTime to endTime for
the channel with the given channelId . |
void |
log(java.util.List<LogRecordContainer> containers,
long timestamp) |
void |
setChannelsToLog(java.util.List<LogChannel> channels) |
java.lang.String getId()
void setChannelsToLog(java.util.List<LogChannel> channels)
void log(java.util.List<LogRecordContainer> containers, long timestamp)
java.util.List<Record> getRecords(java.lang.String channelId, long startTime, long endTime) throws java.io.IOException
startTime
to endTime
for
the channel with the given channelId
.channelId
- the channel ID.startTime
- the starting time in milliseconds since midnight, January 1, 1970 UTC. inclusiveendTime
- the ending time in milliseconds since midnight, January 1, 1970 UTC. inclusivestartTime
to endTime
for
the channel with the given channelId
.java.io.IOException
- if any kind of error occurs accessing the logged data.