com.sleepycat.je.rep.stream
Class Protocol.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.stream.Protocol.HandshakeMessage
              extended by com.sleepycat.je.rep.stream.Protocol.ProtocolVersion
All Implemented Interfaces:
BinaryProtocol.WireFormatable
Direct Known Subclasses:
Protocol.FeederProtocolVersion, Protocol.ReplicaProtocolVersion
Enclosing class:
Protocol

abstract class Protocol.ProtocolVersion
extends Protocol.HandshakeMessage

Version broadcasts the sending node's protocol version.


Constructor Summary
Protocol.ProtocolVersion(ByteBuffer buffer)
           
Protocol.ProtocolVersion(int version)
           
 
Method Summary
(package private)  NameIdPair getNameIdPair()
          The nodeName of the sender
(package private)  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, getEnum, 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

Protocol.ProtocolVersion

public Protocol.ProtocolVersion(int version)

Protocol.ProtocolVersion

public Protocol.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

int getVersion()
Returns:
the version

getNameIdPair

NameIdPair getNameIdPair()
The nodeName of the sender

Returns:
nodeName


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