public interface IDataLogger
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the Log files and perform necessary cleanup tasks.
|
void |
destroy()
destroys the logger and removes its resources.
|
boolean |
isClosed() |
void |
open(AccessMode accessMode)
opens the logger with the specified ACCESS_MODE.
|
void |
reopen(AccessMode accessMode)
reopens the datalogger.
|
void |
replay(IDataLoggerReplay replayListener)
callback method to replay the data of the logger.
|
long |
write(short type,
byte[][] data)
Sub-classes call this method to write log records with
a specific record type.
|
long write(short type,
byte[][] data)
throws InterruptedException,
IOException
type - a record type defined in LogRecordType.data - record data to be logged.InterruptedExceptionIOExceptionvoid replay(IDataLoggerReplay replayListener) throws IOException
replayListener - IOExceptionvoid close()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionboolean isClosed()
void open(AccessMode accessMode) throws IOException
accessMode - IOExceptionreopen(org.csc.phynixx.loggersystem.logger.channellogger.AccessMode)void reopen(AccessMode accessMode) throws IOException, InterruptedException
READ - position to 0, content cannot be changed or added
WRITE - position to 0 and resets the committed size to 0. Content is deleted (kind of reset)
APPEND - position to the committed size. Content is not effected.
accessMode - IOExceptionInterruptedExceptionvoid destroy()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.