|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.distributed.api.ConsensusFinder
Class implementing Consensus finding Algorithm
| Field Summary | |
static int |
APPEND
Constant used in the Class |
boolean |
consensuson
Variable used by the Users of Class |
static int |
GETANDSET
Constant used in the Class |
static int |
SET
Constant used in the Class |
| Constructor Summary | |
ConsensusFinder(int Nprocs,
int fail,
Environment parent)
Constructor to be normally used |
|
| Method Summary | |
void |
othersProposition(int val)
Method to take action when Proposal is received from others |
void |
runTask()
Method to Run the entire Consensus task |
void |
startConsensusRounds(int val,
boolean starturself)
Method to start Consensus Process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int APPEND
public boolean consensuson
public static final int GETANDSET
public static final int SET
| Constructor Detail |
public ConsensusFinder(int Nprocs,
int fail,
Environment parent)
Nprocs - No. of processes in the systemfail - Whether processes fails or notparent - Reference to Environment of this process| Method Detail |
public void othersProposition(int val)
val - Value Receivedpublic void runTask()
runTask in interface TimerTask
public void startConsensusRounds(int val,
boolean starturself)
val - Value proposed from this processstarturself - indicates whether consensus is to be started by this process or not
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||