public class MasterSuggestionGenerator extends java.lang.Object implements Acceptor.SuggestionGenerator
Constructor and Description |
---|
MasterSuggestionGenerator(RepNode repNode) |
Modifier and Type | Method and Description |
---|---|
void |
forceMaster(boolean force)
This entry point is for testing only.
|
Protocol.Value |
get(Proposer.Proposal proposal)
Used to generate a suggested value for use by a Proposer.
|
long |
getRanking(Proposer.Proposal proposal)
The importance associated with the above suggestion.
|
public MasterSuggestionGenerator(RepNode repNode)
public Protocol.Value get(Proposer.Proposal proposal)
Acceptor.SuggestionGenerator
get
in interface Acceptor.SuggestionGenerator
proposal
- the Proposal for which the value is being suggested.public long getRanking(Proposer.Proposal proposal)
Acceptor.SuggestionGenerator
getRanking
in interface Acceptor.SuggestionGenerator
public void forceMaster(boolean force)
force
- determines whether the forced proposal is in effectCopyright (c) 2004-2012 Oracle. All rights reserved.