|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread tassl.automate.programmodel.masterworker.simpleapi.GenericMaster tassl.application.cometcloud.WorkflowMaster
public class WorkflowMaster
Task Manager
Nested Class Summary |
---|
Nested classes/interfaces inherited from class tassl.automate.programmodel.masterworker.simpleapi.GenericMaster |
---|
tassl.automate.programmodel.masterworker.simpleapi.GenericMaster.TaskGenerateThread |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class tassl.automate.programmodel.masterworker.simpleapi.GenericMaster |
---|
confirmedPoisonPill, jobDone, masterNetName, numFinishedTask, numoftasks, numPoisonPill, overlays, peerIP, taskstatus |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
WorkflowMaster()
|
Method Summary | |
---|---|
boolean |
checkIfDuplicatedTask(java.util.List<java.lang.Integer> tasksOfStage,
TaskProperties newTask)
|
boolean |
checkStageDone(java.lang.String wfkStageId)
Check if a stage is done. |
void |
checkStageDoneNoNewTask(java.lang.String wfkStageId)
Check if a stage is done when a task does not generate tasks of the following stage. |
protected void |
cleanStages(java.lang.String wfkStageId)
Remove information of stages. |
tassl.automate.comet.XmlTuple |
createPoisonTaskTuple(int id)
|
java.lang.Object |
createTaskData(int taskid)
This method is called from insertTask to create the data associated to the task |
tassl.automate.comet.XmlTuple |
createTaskTuple(int taskid)
Check recursively if following Non-blocking stages are done |
protected java.lang.Object[] |
findOriginalStageNonBlocking(java.lang.String wfkStageId)
Find stage that originated the non-blocking transitions. |
void |
generateTasks()
This method is called to read the application properties and initiate the tasks creation. |
java.lang.String |
getAllDoneTasks(java.lang.String wfkStageId)
Retrieve the ids of the tasks that have been completed. |
java.lang.String |
getWkfStageId(int taskid)
Find stage that a task is part of |
java.lang.Object |
readObject(java.io.DataInputStream in)
|
boolean |
setResultSpecific(int taskid,
java.lang.Object data,
java.lang.String message,
java.lang.String sender)
This method is called when a worker return a result |
boolean |
tasksCompleted(java.lang.String wfkStageId)
Check if this stage has all tasks completed |
Methods inherited from class tassl.automate.programmodel.masterworker.simpleapi.GenericMaster |
---|
confirmWorkerLeave, countFinishedTasks, GenericMaster, getCspace, getData, getNumOfTasks, getPeerIP, getTaskStatus, getTaskStatus, getWorkerid, insertTask, isJobDone, quit, reinsertTask, removeNodes, run, setCometEnv, setJobDone, setNumOfTasks, setResult, setTaskStatus, startMaster, waitMaster, waitMonitoring |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WorkflowMaster()
Method Detail |
---|
public void generateTasks()
generateTasks
in class tassl.automate.programmodel.masterworker.simpleapi.GenericMaster
public boolean checkIfDuplicatedTask(java.util.List<java.lang.Integer> tasksOfStage, TaskProperties newTask)
public java.lang.Object readObject(java.io.DataInputStream in)
public java.lang.Object createTaskData(int taskid)
createTaskData
in class tassl.automate.programmodel.masterworker.simpleapi.GenericMaster
taskid
- Task identifier that can be use as index to create its data.
public boolean setResultSpecific(int taskid, java.lang.Object data, java.lang.String message, java.lang.String sender)
setResultSpecific
in class tassl.automate.programmodel.masterworker.simpleapi.GenericMaster
taskid
- Task identifier that can be use as index to create its data.data
- Object with the returned datamessage
- Additional information send by the workersender
- Name of the workerpublic void checkStageDoneNoNewTask(java.lang.String wfkStageId)
protected java.lang.Object[] findOriginalStageNonBlocking(java.lang.String wfkStageId)
wfkStageId
-
public java.lang.String getWkfStageId(int taskid)
taskid
-
protected void cleanStages(java.lang.String wfkStageId)
wfkStageId
- public boolean checkStageDone(java.lang.String wfkStageId)
stageId
- it is workflowId.stageId
public boolean tasksCompleted(java.lang.String wfkStageId)
wfkStageId
-
public tassl.automate.comet.XmlTuple createTaskTuple(int taskid)
createTaskTuple
in class tassl.automate.programmodel.masterworker.simpleapi.GenericMaster
wfkStageId
-
public tassl.automate.comet.XmlTuple createPoisonTaskTuple(int id)
createPoisonTaskTuple
in class tassl.automate.programmodel.masterworker.simpleapi.GenericMaster
public java.lang.String getAllDoneTasks(java.lang.String wfkStageId)
wkflId.stageId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |