com.sleepycat.je.rep.utilint
Class BinaryProtocol.ProtocolVersion

java.lang.Object
  extended by com.sleepycat.je.rep.utilint.BinaryProtocol.Message
      extended by com.sleepycat.je.rep.utilint.BinaryProtocol.SimpleMessage
          extended by com.sleepycat.je.rep.utilint.BinaryProtocol.ProtocolVersion
All Implemented Interfaces:
BinaryProtocol.WireFormatable
Direct Known Subclasses:
BinaryProtocol.ClientVersion, BinaryProtocol.ServerVersion
Enclosing class:
BinaryProtocol

abstract class BinaryProtocol.ProtocolVersion
extends BinaryProtocol.SimpleMessage

Version broadcasts the sending node's protocol version.


Constructor Summary
BinaryProtocol.ProtocolVersion(ByteBuffer buffer)
           
BinaryProtocol.ProtocolVersion(int version)
           
 
Method Summary
 int getNodeId()
          The nodeId of the sender
 int getVersion()
           
 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.SimpleMessage
getBoolean, getByteArray, getDouble, getEnum, getNameIdPair, getRepNodeImplArray, getStringArray, getVLSN, wireFormat
 
Methods inherited from class com.sleepycat.je.rep.utilint.BinaryProtocol.Message
allocateInitializedBuffer, getOp, match, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryProtocol.ProtocolVersion

public BinaryProtocol.ProtocolVersion(int version)

BinaryProtocol.ProtocolVersion

public BinaryProtocol.ProtocolVersion(ByteBuffer buffer)
Method Detail

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

getVersion

public int getVersion()
Returns:
the version

getNodeId

public int getNodeId()
The nodeId of the sender

Returns:
nodeId


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