p2pMapReduce.nodeModule.nodeFsm
Class Idle
java.lang.Object
p2pMapReduce.nodeModule.nodeFsm.State
p2pMapReduce.nodeModule.nodeFsm.NodeState
p2pMapReduce.nodeModule.nodeFsm.Idle
public class Idle
- extends NodeState
Inner state of Slave macro state.
A slave node is in this state if it has no task to execute
Method Summary |
void |
becomeMaster(java.lang.String coordID)
|
protected void |
entryAction()
The method to call each time an FSM transit
to this state, after leaving the previous state |
protected void |
exitAction()
The method to call each time an FSM leave
this state, before to enter the new state |
void |
jobCompleted(java.lang.String jobID,
JobStatus.State jobState)
|
void |
primaryUpdate(java.lang.String updatedJobID,
java.lang.String primaryNodeID,
double updatedPrimaryLoad)
|
void |
taskAssigned(java.util.LinkedList<Task> assignedTaskList,
java.lang.String primaryID)
|
void |
timeout(java.lang.Object param)
A generic timeout method. |
Methods inherited from class p2pMapReduce.nodeModule.nodeFsm.NodeState |
backupJobAssigned, backupJobCompleted, backupMasterFailure, becomeSlave, coordinatorFailure, electionMessage, getNextTimeout, jobAssigned, jobIDRequest, jobReassigned, jobUpdate, newCoordinator, outputRetrieved, primaryElectionMessage, primaryMasterFailure, slaveCheck, slaveFailure, taskCompleted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Idle
public Idle(NodeFSM nodeFSM)
entryAction
protected void entryAction()
- Description copied from class:
State
- The method to call each time an
FSM
transit
to this state, after leaving the previous state
- Overrides:
entryAction
in class State
exitAction
protected void exitAction()
- Description copied from class:
State
- The method to call each time an
FSM
leave
this state, before to enter the new state
- Overrides:
exitAction
in class State
becomeMaster
public void becomeMaster(java.lang.String coordID)
- Overrides:
becomeMaster
in class NodeState
taskAssigned
public void taskAssigned(java.util.LinkedList<Task> assignedTaskList,
java.lang.String primaryID)
- Overrides:
taskAssigned
in class NodeState
primaryUpdate
public void primaryUpdate(java.lang.String updatedJobID,
java.lang.String primaryNodeID,
double updatedPrimaryLoad)
- Overrides:
primaryUpdate
in class NodeState
jobCompleted
public void jobCompleted(java.lang.String jobID,
JobStatus.State jobState)
- Overrides:
jobCompleted
in class NodeState
timeout
public void timeout(java.lang.Object param)
- Description copied from class:
NodeState
- A generic timeout method.
The param object is useful to handle different timeout event
- Overrides:
timeout
in class NodeState