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.SuggestionGeneratorget in interface Acceptor.SuggestionGeneratorproposal - the Proposal for which the value is being suggested.public long getRanking(Proposer.Proposal proposal)
Acceptor.SuggestionGeneratorgetRanking in interface Acceptor.SuggestionGeneratorpublic void forceMaster(boolean force)
force - determines whether the forced proposal is in effectCopyright (c) 2004-2012 Oracle. All rights reserved.