|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.nodeModule.nodeFsm.State
p2pMapReduce.nodeModule.nodeFsm.NodeState
p2pMapReduce.nodeModule.nodeFsm.Master
public class Master
A FSM macro state representing a master node.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class p2pMapReduce.nodeModule.nodeFsm.NodeState |
---|
NodeState.StateName |
Constructor Summary | |
---|---|
Master(NodeFSM aThis)
|
Method Summary | |
---|---|
void |
backupJobAssigned(PrimaryJob primaryJob,
java.lang.String primaryNodeID)
|
void |
backupJobCompleted(java.lang.String completedJobID)
|
void |
backupMasterFailure(java.lang.String failedBackupID)
|
void |
becomeSlave()
|
void |
coordinatorFailure()
|
void |
electionMessage(java.lang.String senderID)
Invoked when an election message is received from another master In ELECTING_COORDINATOR state from a master which is taking part in the election algorithm In WAITING_COORDINATOR state from the new coordinator |
protected void |
entryAction()
The method to call each time an FSM transit
to this state, after leaving the previous state |
void |
jobAssigned(Job job,
NodeInfo userNodeInfo)
|
void |
jobCompleted(java.lang.String jobID,
JobStatus.State jobState)
|
void |
jobIDRequest(int requestNumber,
NodeInfo userNodeInfo)
Used by an user node to request a new unique JobID |
void |
jobReassigned(BackupJob bJ)
|
void |
jobUpdate(java.lang.String jobID,
java.util.LinkedList<java.lang.String> updatedBackupMasterList,
java.util.LinkedList<JobTask> updatedJobTaskList)
|
void |
newCoordinator(java.lang.String senderID)
Invoked when a new coordinator id is received by another master. |
void |
outputRetrieved(JobTask reduceJT,
boolean completionState)
Received by JobManager . |
void |
primaryElectionMessage(java.lang.String jobID,
java.lang.String senderID,
double senderLoad)
|
void |
primaryMasterFailure(java.lang.String primaryID)
|
void |
primaryUpdate(java.lang.String jobID,
java.lang.String updatedPrimaryID,
double updatedPrimaryLoad)
|
void |
slaveCheck(java.lang.String taskID)
|
void |
slaveFailure(java.lang.String failedSlaveID)
|
void |
taskCompleted(java.lang.String taskAttID,
Task.TaskStatus taskStatus)
The MANGMENT macro state can receive a taskCompleted message that must be propagate to the relative JobManager |
Methods inherited from class p2pMapReduce.nodeModule.nodeFsm.NodeState |
---|
becomeMaster, getNextTimeout, taskAssigned, 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 |
---|
public Master(NodeFSM aThis)
Method Detail |
---|
protected void entryAction()
State
FSM
transit
to this state, after leaving the previous state
entryAction
in class State
public void becomeSlave()
becomeSlave
in class NodeState
public void electionMessage(java.lang.String senderID)
NodeState
electionMessage
in class NodeState
senderID
- The node id of the message senderpublic void newCoordinator(java.lang.String senderID)
NodeState
newCoordinator
in class NodeState
senderID
- The node id of the message sender that has become the
new Coordinatorpublic void coordinatorFailure()
coordinatorFailure
in class NodeState
public void jobIDRequest(int requestNumber, NodeInfo userNodeInfo)
NodeState
JobID
jobIDRequest
in class NodeState
public void jobAssigned(Job job, NodeInfo userNodeInfo)
jobAssigned
in class NodeState
public void slaveCheck(java.lang.String taskID)
slaveCheck
in class NodeState
public void jobReassigned(BackupJob bJ)
jobReassigned
in class NodeState
public void taskCompleted(java.lang.String taskAttID, Task.TaskStatus taskStatus)
taskCompleted
in class NodeState
taskAttID
- taskStatus
- public void outputRetrieved(JobTask reduceJT, boolean completionState)
NodeState
JobManager
.
Notify the success state of reduceJT
output retrieving by user
node.
outputRetrieved
in class NodeState
public void jobCompleted(java.lang.String jobID, JobStatus.State jobState)
jobCompleted
in class NodeState
public void slaveFailure(java.lang.String failedSlaveID)
slaveFailure
in class NodeState
public void backupMasterFailure(java.lang.String failedBackupID)
backupMasterFailure
in class NodeState
public void primaryMasterFailure(java.lang.String primaryID)
primaryMasterFailure
in class NodeState
public void backupJobAssigned(PrimaryJob primaryJob, java.lang.String primaryNodeID)
backupJobAssigned
in class NodeState
public void primaryElectionMessage(java.lang.String jobID, java.lang.String senderID, double senderLoad)
primaryElectionMessage
in class NodeState
public void primaryUpdate(java.lang.String jobID, java.lang.String updatedPrimaryID, double updatedPrimaryLoad)
primaryUpdate
in class NodeState
public void jobUpdate(java.lang.String jobID, java.util.LinkedList<java.lang.String> updatedBackupMasterList, java.util.LinkedList<JobTask> updatedJobTaskList)
jobUpdate
in class NodeState
public void backupJobCompleted(java.lang.String completedJobID)
backupJobCompleted
in class NodeState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |