p2pMapReduce.nodeModule.nodeFsm
Class CoordinationFSM

java.lang.Object
  extended by p2pMapReduce.nodeModule.nodeFsm.FSM
      extended by 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
 
Constructor Summary
CoordinationFSM(NodeFSM nodeFSM)
           
 
Method Summary
 void coordinatorFailure()
           
 void electionMessage(java.lang.String senderID)
           
 void newCoordinator(java.lang.String senderID)
           
 void timeout(java.lang.Object param)
           
 
Methods inherited from class p2pMapReduce.nodeModule.nodeFsm.FSM
currentState, transition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

CoordinationFSM

public CoordinationFSM(NodeFSM nodeFSM)
Method Detail

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)