p2pMapReduce.nodeModule.nodeFsm
Class CoordinationFSM
java.lang.Object
p2pMapReduce.nodeModule.nodeFsm.FSM
p2pMapReduce.nodeModule.nodeFsm.CoordinationFSM
public class CoordinationFSM
- extends FSM
Inner state of Master
macro state, that takes care
of master/slave ratio maintenance
Field Summary |
static double |
MASTER_SLAVE_RATIO
1 indicates as many masters as slaves
0 indicates only one master
Values between 0 and 1 indicate the master/slave ratio |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MASTER_SLAVE_RATIO
public static final double MASTER_SLAVE_RATIO
- 1 indicates as many masters as slaves
0 indicates only one master
Values between 0 and 1 indicate the master/slave ratio
CoordinationFSM
public CoordinationFSM(NodeFSM nodeFSM)
timeout
public void timeout(java.lang.Object param)
coordinatorFailure
public void coordinatorFailure()
electionMessage
public void electionMessage(java.lang.String senderID)
newCoordinator
public void newCoordinator(java.lang.String senderID)