com.sleepycat.je.rep.stream
Class InputWireRecord
java.lang.Object
com.sleepycat.je.rep.stream.WireRecord
com.sleepycat.je.rep.stream.InputWireRecord
public class InputWireRecord
- extends WireRecord
Format for messages received at across the wire for replication. Instead of
sending a direct copy of the log entry as it is stored on the JE log files
(LogEntryHeader + LogEntry), select parts of the header are sent.
An InputWireRecord de-serializes the logEntry from the message bytes and
releases any claim on the backing ByteBuffer.
InputWireRecord
InputWireRecord(EnvironmentImpl envImpl,
ByteBuffer msgBuffer)
throws DatabaseException
- Make a InputWireRecord from an incoming replication message buffer for
applying at a replica.
- Throws:
DatabaseException
InputWireRecord
InputWireRecord(EnvironmentImpl envImpl,
byte entryType,
int entryVersion,
int itemSize,
VLSN vlsn,
ByteBuffer entryBuffer)
throws DatabaseException
- Unit test support.
- Throws:
DatabaseException
getVLSN
public VLSN getVLSN()
getEntryType
public byte getEntryType()
getLogEntry
public LogEntry getLogEntry()
toString
public String toString()
- Overrides:
toString
in class Object
dumpLogEntry
public String dumpLogEntry()
- Convert the full version of the log entry to a string.
Copyright (c) 2004-2012 Oracle. All rights reserved.