com.sleepycat.je.rep.stream
Class Protocol.Entry

java.lang.Object
  extended by com.sleepycat.je.rep.utilint.BinaryProtocol.Message
      extended by com.sleepycat.je.rep.stream.Protocol.Entry
All Implemented Interfaces:
BinaryProtocol.WireFormatable
Direct Known Subclasses:
Protocol.Commit
Enclosing class:
Protocol

public class Protocol.Entry
extends BinaryProtocol.Message

A message containing a log entry in the replication stream.


Field Summary
protected  InputWireRecord inputWireRecord
           
protected  OutputWireRecord outputWireRecord
           
 
Constructor Summary
Protocol.Entry()
           
Protocol.Entry(ByteBuffer buffer)
           
Protocol.Entry(OutputWireRecord outputWireRecord)
           
 
Method Summary
 BinaryProtocol.MessageOp getOp()
           
 InputWireRecord getWireRecord()
           
protected  int getWireSize()
           
 boolean isTxnEnd()
           
 boolean match(BinaryProtocol.Message other)
           
 String toString()
           
 ByteBuffer wireFormat()
          The default message consists of the operation enum and just a 0 length size.
 
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol.Message
allocateInitializedBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inputWireRecord

protected InputWireRecord inputWireRecord

outputWireRecord

protected OutputWireRecord outputWireRecord
Constructor Detail

Protocol.Entry

public Protocol.Entry()

Protocol.Entry

public Protocol.Entry(OutputWireRecord outputWireRecord)

Protocol.Entry

public Protocol.Entry(ByteBuffer buffer)
               throws DatabaseException
Throws:
DatabaseException
Method Detail

getOp

public BinaryProtocol.MessageOp getOp()
Specified by:
getOp in class BinaryProtocol.Message

wireFormat

public ByteBuffer wireFormat()
Description copied from class: BinaryProtocol.Message
The default message consists of the operation enum and just a 0 length size.

Specified by:
wireFormat in interface BinaryProtocol.WireFormatable
Overrides:
wireFormat in class BinaryProtocol.Message

getWireSize

protected int getWireSize()

getWireRecord

public InputWireRecord getWireRecord()

toString

public String toString()
Overrides:
toString in class BinaryProtocol.Message

match

public boolean match(BinaryProtocol.Message other)
Overrides:
match in class BinaryProtocol.Message

isTxnEnd

public boolean isTxnEnd()


Copyright (c) 2004-2012 Oracle. All rights reserved.