|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataLogger
A logger is enabled to write data in an atomic manner. The data is entirely written or the data is rejected. This class is not thread safe . Use facades to protect instances
| Method Summary | |
|---|---|
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(ILogRecordReplayListener 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. |
| Method Detail |
|---|
long write(short type,
byte[][] data)
throws InterruptedException,
IOException
type - a record type defined in LogRecordType.data - record data to be logged.
InterruptedException
IOException
void replay(ILogRecordReplayListener replayListener)
throws IOException
replayListener -
IOException
void close()
throws IOException,
InterruptedException
IOException
InterruptedExceptionboolean 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 -
IOException
InterruptedException
void destroy()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||