p2pMapReduce.nodeModule.nodeFsm
Class FSM

java.lang.Object
  extended by p2pMapReduce.nodeModule.nodeFsm.FSM
Direct Known Subclasses:
BackupJobManager, CoordinationFSM, CoordinationFSM1, JobManager, ManagementFSM, RecoveryFSM, TaskManager

public class FSM
extends java.lang.Object

Base class for a finite state machine. Each finite state machine has a current state. The only function is the transition from the current state to the new current state.


Constructor Summary
FSM()
           
 
Method Summary
 State currentState()
           
 void transition(State nextState)
          Make the FSM to transit to nextState Calls State.exitAction() on the current state, update the current state and calls on it State.entryAction()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSM

public FSM()
Method Detail

transition

public void transition(State nextState)
Make the FSM to transit to nextState Calls State.exitAction() on the current state, update the current state and calls on it State.entryAction()

Parameters:
nextState -

currentState

public State currentState()