|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.stream.WireRecord
com.sleepycat.je.rep.stream.OutputWireRecord
public class OutputWireRecord
Format for log entries sent across the wire for replication. In most cases, the bytes are read directly from the log and never need to be serialized into the backing object. Note that the ByteBuffer held within the OutputWireRecord has a limited lifetime. Often it's just sliced, rather than copied from the underlying buffer.
Field Summary | |
---|---|
protected ByteBuffer |
entryBuffer
|
Fields inherited from class com.sleepycat.je.rep.stream.WireRecord |
---|
header |
Constructor Summary | |
---|---|
OutputWireRecord(InputWireRecord input)
|
|
OutputWireRecord(LogEntryHeader header,
ByteBuffer readerBuffer)
Make a OutputWireRecord from FileReader output for sending out. |
|
OutputWireRecord(LogItem logItem)
Creates an OutputWireRecord from a log item. |
Method Summary | |
---|---|
String |
dump()
Dump the contents. |
long |
getCommitTxnId()
|
byte |
getEntryType()
|
long |
getTimeStamp()
|
VLSN |
getVLSN()
|
(package private) int |
getWireSize()
Support for reading and writing FeedRecords to network. |
boolean |
match(InputWireRecord input)
Used at syncup, when comparing records received from the feeder against local records. |
boolean |
match(OutputWireRecord otherRecord)
For unit tests. |
String |
toString()
|
boolean |
verifyNegativeSequences(String debugTag)
|
(package private) void |
writeToWire(ByteBuffer messageBuffer)
|
Methods inherited from class com.sleepycat.je.rep.stream.WireRecord |
---|
instantiateEntry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final ByteBuffer entryBuffer
Constructor Detail |
---|
OutputWireRecord(LogEntryHeader header, ByteBuffer readerBuffer)
OutputWireRecord(LogItem logItem)
OutputWireRecord(InputWireRecord input)
Method Detail |
---|
public byte getEntryType()
public boolean match(InputWireRecord input) throws DatabaseException
DatabaseException
public boolean match(OutputWireRecord otherRecord) throws DatabaseException
DatabaseException
public VLSN getVLSN()
public String dump() throws DatabaseException
DatabaseException
public String toString()
toString
in class Object
int getWireSize()
void writeToWire(ByteBuffer messageBuffer)
public long getCommitTxnId() throws DatabaseException
DatabaseException
public long getTimeStamp() throws DatabaseException
DatabaseException
public boolean verifyNegativeSequences(String debugTag)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |