|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface DeviceLogIF
DeviceLogIF is the interface for a DevicePacket logger
DeviceLog| Method Summary | |
|---|---|
void |
appendPacket(DevicePacket packet)
This method appends the specified DevicePacket object to
the log that is being maintained. |
void |
appendPacket(DevicePacket packet,
boolean setSequenceNos,
boolean checkTime)
This method appends the specified DevicePacket object to
the log that is being maintained. |
void |
close()
Close the DeviceLog and associated files. |
long |
getDeviceId()
returns the ISI deviceId associated with this DeviceLog |
long |
getLastMetadataRef()
Return last metadata reference number. |
DevicePacket |
getLastPacket()
Return the last sequential packet in the log. |
long |
getMaxTimestamp()
returns the maximum key that has been registered by all DevicePacket storage operations |
long |
getMinTimestamp()
returns the minimum key that has been registered by all DevicePacket storage operations |
DevicePacket |
getNextPacket()
returns the next unread DevicePacket in sequential order. |
int |
getNumUnreadPackets()
returns the number of unread packets remaining if packets are retrieved using the getNextPacket() method |
DevicePacketSet |
getPacketKeyRange(long startKey,
long endKey,
int maxEntries)
Call getPacketKeyRange() - calls getPackets(). |
DevicePacketSet |
getPackets(long startKey,
long endKey,
int maxEntries)
|
int |
nPackets()
Return total number of packets in log. |
| Method Detail |
|---|
long getLastMetadataRef()
long getDeviceId()
DeviceLog
void appendPacket(DevicePacket packet,
boolean setSequenceNos,
boolean checkTime)
DevicePacket object to
the log that is being maintained. The object is serialized and
subsequently written to a data file while indexing information is
maintained. If argument setSequenceNos is set to 'true', then
appendPacket() will automatically set the packet's sequence number
and metadata reference.
packet - DevicePacket object to append to active logvoid appendPacket(DevicePacket packet)
DevicePacket object to
the log that is being maintained. The object is serialized and
subsequently written to a data file while indexing information is
maintained. This version of appendPacket() will automatically set
the packet's sequence number and metadata reference.
packet - DevicePacket object to append to active log
DevicePacketSet getPackets(long startKey,
long endKey,
int maxEntries)
throws NoDataException
NoDataException
DevicePacketSet getPacketKeyRange(long startKey,
long endKey,
int maxEntries)
throws NoDataException
NoDataException
DevicePacket getLastPacket()
throws NoDataException
NoDataException
DevicePacket getNextPacket()
throws NoDataException
NoDataExceptionDevicePacketint nPackets()
int getNumUnreadPackets()
getNextPacket() method
getNextPacket()long getMinTimestamp()
DeviceLog.getPacketKeyRange(long, long, int)long getMaxTimestamp()
DeviceLog.getPacketKeyRange(long, long, int)
void close()
throws java.io.IOException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||