com.sleepycat.je.rep.elections
Class Protocol.Promise
java.lang.Object
com.sleepycat.je.rep.impl.TextProtocol.Message
com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
com.sleepycat.je.rep.elections.Protocol.Promise
- All Implemented Interfaces:
- TextProtocol.WireFormatable
- Enclosing class:
- Protocol
public class Protocol.Promise
- extends TextProtocol.ResponseMessage
Promise response message. It's sent in response to a Propose message.
Protocol.Promise
public Protocol.Promise(Proposer.Proposal highestProposal,
Protocol.Value value,
Protocol.Value suggestion,
long suggestionWeight,
int priority,
int logVersion,
JEVersion jeVersion)
Protocol.Promise
public Protocol.Promise(String responseLine,
String[] tokens)
throws TextProtocol.InvalidMessageException
- Throws:
TextProtocol.InvalidMessageException
getOp
public TextProtocol.MessageOp getOp()
- Specified by:
getOp
in class TextProtocol.Message
hashCode
public int hashCode()
- Overrides:
hashCode
in class TextProtocol.ResponseMessage
equals
public boolean equals(Object obj)
- Overrides:
equals
in class TextProtocol.ResponseMessage
wireFormat
public String wireFormat()
getHighestProposal
Proposer.Proposal getHighestProposal()
getAcceptedValue
Protocol.Value getAcceptedValue()
getSuggestion
Protocol.Value getSuggestion()
getSuggestionRanking
long getSuggestionRanking()
getPriority
int getPriority()
getLogVersion
int getLogVersion()
getJEVersion
JEVersion getJEVersion()
Copyright (c) 2004-2010 Oracle. All rights reserved.