com.sleepycat.je.rep.stream
Class InputWireRecord

java.lang.Object
  extended by com.sleepycat.je.rep.stream.WireRecord
      extended by 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.


Field Summary
 
Fields inherited from class com.sleepycat.je.rep.stream.WireRecord
header
 
Constructor Summary
InputWireRecord(EnvironmentImpl envImpl, ByteBuffer msgBuffer)
          Make a InputWireRecord from an incoming replication message buffer for applying at a replica.
InputWireRecord(EnvironmentImpl envImpl, byte entryType, int entryVersion, int itemSize, VLSN vlsn, ByteBuffer entryBuffer)
          Unit test support.
 
Method Summary
 String dumpLogEntry()
          Convert the full version of the log entry to a string.
 byte getEntryType()
           
 LogEntry getLogEntry()
           
 VLSN getVLSN()
           
 String toString()
           
 
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
 

Constructor Detail

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
Method Detail

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.