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

java.lang.Object
  extended by com.sleepycat.je.rep.impl.TextProtocol.Message
      extended by com.sleepycat.je.rep.impl.TextProtocol.RequestMessage
          extended by com.sleepycat.je.rep.elections.Protocol.Propose
              extended by com.sleepycat.je.rep.elections.Protocol.Accept
All Implemented Interfaces:
TextProtocol.WireFormatable
Direct Known Subclasses:
Protocol.Result
Enclosing class:
Protocol

public class Protocol.Accept
extends Protocol.Propose

Accept request issued in Phase 2 of paxos.


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

Constructor Detail

Protocol.Accept

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

Protocol.Accept

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

hashCode

public int hashCode()
Overrides:
hashCode in class Protocol.Propose

equals

public boolean equals(Object obj)
Overrides:
equals in class Protocol.Propose

getOp

public TextProtocol.MessageOp getOp()
Overrides:
getOp in class Protocol.Propose

wireFormat

public String wireFormat()
Specified by:
wireFormat in interface TextProtocol.WireFormatable
Overrides:
wireFormat in class Protocol.Propose

getValue

Protocol.Value getValue()


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