|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.thl.log.LogEventReplReader
public class LogEventReplReader
This class encapsulates operations to read a log record header and serialized THLEvent for an event. It automatically reads the header but does not deserialize the event until asked to. You should call done() after use to free resources.
| Constructor Summary | |
|---|---|
LogEventReplReader(LogRecord logRecord,
Serializer serializer,
boolean checkCRC)
Instantiate the reader and load header information. |
|
| Method Summary | |
|---|---|
THLEvent |
deserializeEvent()
Deserialize and return the event. |
void |
done()
Release the log record. |
long |
getEpochNumber()
|
java.lang.String |
getEventId()
|
short |
getFragno()
|
LogRecord |
getLogRecord()
|
byte |
getRecordType()
|
long |
getSeqno()
|
java.lang.String |
getShardId()
|
java.lang.String |
getSourceId()
|
java.lang.Long |
getSourceTStamp()
|
boolean |
isLastFrag()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogEventReplReader(LogRecord logRecord,
Serializer serializer,
boolean checkCRC)
throws ReplicatorException
ReplicatorException| Method Detail |
|---|
public LogRecord getLogRecord()
public byte getRecordType()
public long getSeqno()
public short getFragno()
public boolean isLastFrag()
public long getEpochNumber()
public java.lang.String getSourceId()
public java.lang.String getEventId()
public java.lang.String getShardId()
public java.lang.Long getSourceTStamp()
public THLEvent deserializeEvent()
throws ReplicatorException
ReplicatorExceptionpublic void done()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||