|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.rep.stream.MasterSuggestionGenerator
public class MasterSuggestionGenerator
A Basic suggestion generator. A more sophisticated version may contact other replica nodes to see if it has sufficient connectivity to implement the commit policy in effect for the Replication Group. KIS for now.
| Constructor Summary | |
|---|---|
MasterSuggestionGenerator(RepNode repNode)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MasterSuggestionGenerator(RepNode repNode)
| Method Detail |
|---|
public Protocol.Value get(Proposer.Proposal proposal)
Acceptor.SuggestionGenerator
get in interface Acceptor.SuggestionGeneratorproposal - the Proposal for which the value is being suggested.
public long getRanking(Proposer.Proposal proposal)
Acceptor.SuggestionGenerator
getRanking in interface Acceptor.SuggestionGeneratorpublic void forceMaster(boolean force)
force - determines whether the forced proposal is in effect
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||