com.sleepycat.je.rep.elections
Class Protocol.Accepted

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.elections.Protocol.Accepted
All Implemented Interfaces:
TextProtocol.WireFormatable
Direct Known Subclasses:
Protocol.MasterQueryResponse
Enclosing class:
Protocol

public class Protocol.Accepted
extends TextProtocol.ResponseMessage

Response to a successful Accept message.


Field Summary
 
Fields inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
messagePrefixNocheck, sendVersion
 
Constructor Summary
Protocol.Accepted(Proposer.Proposal proposal, Protocol.Value value)
           
Protocol.Accepted(String responseLine, String[] tokens)
           
 
Method Summary
 boolean equals(Object obj)
           
 TextProtocol.MessageOp getOp()
           
 Proposer.Proposal getProposal()
           
 Protocol.Value getValue()
           
 int hashCode()
           
 String wireFormat()
           
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
wireFormatPrefix
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
getCurrentTokenPosition, getMessagePrefix, getProtocol, getSenderId, getSendVersion, nextPayloadToken, setSendVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protocol.Accepted

Protocol.Accepted(Proposer.Proposal proposal,
                  Protocol.Value value)

Protocol.Accepted

public Protocol.Accepted(String responseLine,
                         String[] tokens)
                  throws TextProtocol.InvalidMessageException
Throws:
TextProtocol.InvalidMessageException
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class TextProtocol.ResponseMessage

equals

public boolean equals(Object obj)
Overrides:
equals in class TextProtocol.ResponseMessage

getOp

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

wireFormat

public String wireFormat()

getValue

public Protocol.Value getValue()

getProposal

public Proposer.Proposal getProposal()


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