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

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.NodeGroupInfo
All Implemented Interfaces:
BinaryProtocol.WireFormatable
Enclosing class:
Protocol

public class Protocol.NodeGroupInfo
extends Protocol.HandshakeMessage


Constructor Summary
Protocol.NodeGroupInfo(ByteBuffer buffer)
           
Protocol.NodeGroupInfo(String groupName, UUID uuid, NameIdPair nameIdPair, String hostName, int port, NodeType nodeType, boolean designatedPrimary)
           
 
Method Summary
 String getGroupName()
           
 String getHostName()
           
 NameIdPair getNameIdPair()
           
 int getNodeId()
           
 String getNodeName()
           
 NodeType getNodeType()
           
 BinaryProtocol.MessageOp getOp()
           
 UUID getUUID()
           
 boolean isDesignatedPrimary()
           
 int port()
           
 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, match, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Protocol.NodeGroupInfo

Protocol.NodeGroupInfo(String groupName,
                       UUID uuid,
                       NameIdPair nameIdPair,
                       String hostName,
                       int port,
                       NodeType nodeType,
                       boolean designatedPrimary)

Protocol.NodeGroupInfo

public Protocol.NodeGroupInfo(ByteBuffer buffer)
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

getGroupName

public String getGroupName()

getUUID

public UUID getUUID()

getNodeName

public String getNodeName()

getNodeId

public int getNodeId()

getHostName

public String getHostName()

getNameIdPair

public NameIdPair getNameIdPair()

port

public int port()

getNodeType

public NodeType getNodeType()

isDesignatedPrimary

public boolean isDesignatedPrimary()


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