com.sleepycat.je.rep.impl
Class NodeStateProtocol.NodeStateResponse

java.lang.Object
  extended by com.sleepycat.je.rep.impl.TextProtocol.Message
      extended by com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
          extended by com.sleepycat.je.rep.impl.NodeStateProtocol.NodeStateResponse
All Implemented Interfaces:
TextProtocol.WireFormatable
Enclosing class:
NodeStateProtocol

public class NodeStateProtocol.NodeStateResponse
extends TextProtocol.ResponseMessage


Field Summary
 
Fields inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
messagePrefixNocheck, sendVersion
 
Constructor Summary
NodeStateProtocol.NodeStateResponse(String line, String[] tokens)
           
NodeStateProtocol.NodeStateResponse(String nodeName, String masterName, long joinTime, ReplicatedEnvironment.State nodeState)
           
 
Method Summary
 long getJoinTime()
           
 String getMasterName()
           
protected  String getMessagePrefix()
           
 String getNodeName()
           
 ReplicatedEnvironment.State getNodeState()
           
 TextProtocol.MessageOp getOp()
           
 String wireFormat()
           
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
equals, hashCode, wireFormatPrefix
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
getCurrentTokenPosition, getProtocol, getSenderId, getSendVersion, nextPayloadToken, setSendVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeStateProtocol.NodeStateResponse

public NodeStateProtocol.NodeStateResponse(String nodeName,
                                           String masterName,
                                           long joinTime,
                                           ReplicatedEnvironment.State nodeState)

NodeStateProtocol.NodeStateResponse

public NodeStateProtocol.NodeStateResponse(String line,
                                           String[] tokens)
                                    throws TextProtocol.InvalidMessageException
Throws:
TextProtocol.InvalidMessageException
Method Detail

getNodeName

public String getNodeName()

getMasterName

public String getMasterName()

getJoinTime

public long getJoinTime()

getNodeState

public ReplicatedEnvironment.State getNodeState()

getOp

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

getMessagePrefix

protected String getMessagePrefix()
Overrides:
getMessagePrefix in class TextProtocol.Message

wireFormat

public String wireFormat()


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