p2pMapReduce.nodeModule.nodeFsm
Class Active

java.lang.Object
  extended by p2pMapReduce.nodeModule.nodeFsm.State
      extended by p2pMapReduce.nodeModule.nodeFsm.NodeState
          extended by p2pMapReduce.nodeModule.nodeFsm.Active

public class Active
extends NodeState

Inner state of Slave macro state A slave node remains in this state until all the job for the task submitted to this node are completed


Nested Class Summary
 
Nested classes/interfaces inherited from class p2pMapReduce.nodeModule.nodeFsm.NodeState
NodeState.StateName
 
Constructor Summary
Active(NodeFSM aThis)
           
 
Method Summary
protected  void entryAction()
          The method to call each time an FSM transit to this state, after leaving the previous state
 void jobCompleted(java.lang.String jobID, JobStatus.State jobState)
           
 void primaryMasterFailure(java.lang.String failedPrimaryID)
           
 void primaryUpdate(java.lang.String updatedJobID, java.lang.String primaryNodeID, double updatedPrimaryLoad)
           
 void taskAssigned(java.util.LinkedList<Task> assignedTaskList, java.lang.String primaryID)
           
 void taskCompleted(java.lang.String taskAttID, Task.TaskStatus taskStatus)
           
 
Methods inherited from class p2pMapReduce.nodeModule.nodeFsm.NodeState
backupJobAssigned, backupJobCompleted, backupMasterFailure, becomeMaster, becomeSlave, coordinatorFailure, electionMessage, getNextTimeout, jobAssigned, jobIDRequest, jobReassigned, jobUpdate, newCoordinator, outputRetrieved, primaryElectionMessage, slaveCheck, slaveFailure, timeout
 
Methods inherited from class p2pMapReduce.nodeModule.nodeFsm.State
exitAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Active

public Active(NodeFSM aThis)
Method Detail

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

taskAssigned

public void taskAssigned(java.util.LinkedList<Task> assignedTaskList,
                         java.lang.String primaryID)
Overrides:
taskAssigned in class NodeState

taskCompleted

public void taskCompleted(java.lang.String taskAttID,
                          Task.TaskStatus taskStatus)
Overrides:
taskCompleted in class NodeState

jobCompleted

public void jobCompleted(java.lang.String jobID,
                         JobStatus.State jobState)
Overrides:
jobCompleted in class NodeState

primaryMasterFailure

public void primaryMasterFailure(java.lang.String failedPrimaryID)
Overrides:
primaryMasterFailure in class NodeState

primaryUpdate

public void primaryUpdate(java.lang.String updatedJobID,
                          java.lang.String primaryNodeID,
                          double updatedPrimaryLoad)
Overrides:
primaryUpdate in class NodeState