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

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
                  extended by com.sleepycat.je.rep.elections.Protocol.Result
All Implemented Interfaces:
TextProtocol.WireFormatable
Enclosing class:
Protocol

public class Protocol.Result
extends Protocol.Accept

Used to inform Learners of a "chosen value".


Field Summary
 
Fields inherited from class com.sleepycat.je.rep.elections.Protocol.Propose
proposal
 
Constructor Summary
Protocol.Result(Proposer.Proposal proposal, Protocol.Value value)
           
Protocol.Result(String requestLine, String[] tokens)
           
 
Method Summary
 TextProtocol.MessageOp getOp()
           
 
Methods inherited from class com.sleepycat.je.rep.elections.Protocol.Accept
equals, getValue, hashCode, 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.Result

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

Protocol.Result

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

getOp

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


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