Interface TaskScheduler
- All Known Subinterfaces:
ClusterTaskScheduler
- All Known Implementing Classes:
AbstractClusterTaskScheduler,AbstractTaskScheduler,BpipeTaskScheduler,BundledScriptBpipeTaskScheduler,ClusterCombinedTaskScheduler,CombinedTaskScheduler,DummyTaskScheduler,HadoopCompatibleTaskScheduler,HTCondorTaskScheduler,MonoThreadTaskScheduler,MultiThreadTaskScheduler,PBSProTaskScheduler,SLURMTaskScheduler,TGCCTaskScheduler,TORQUETaskScheduler
public interface TaskScheduler
This interface define a task scheduler.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionGet the result related to a step.Get the status related to a step.intgetTaskDoneCount(Step step) Get the count of done task contexts of a step.intgetTaskRunningCount(Step step) Get the count of running task contexts of a step.intgetTaskSubmittedCount(Step step) Get the count of submitted task contexts of a step.intGet the count of done task contexts for the workflow.intGet the count of running task contexts for the workflow.intGet the count of submitted task contexts for the workflow.voidstart()Start the scheduler.voidstop()Stop the scheduler.voidsubmit(Step step, TaskContextImpl context) Submit a context to execute.voidsubmit(Step step, Set<TaskContextImpl> contexts) Submit contexts to execute.voidwaitEndOfTasks(Step step) Wait the end of the task contexts.
-
Method Details
-
submit
Submit contexts to execute.- Parameters:
step- step related to the contextscontexts- contexts to execute
-
submit
Submit a context to execute.- Parameters:
step- step related to the contextcontext- context to execute
-
getStatus
Get the status related to a step.- Parameters:
step- a workflow step- Returns:
- the step status object related to the step
-
getResult
Get the result related to a step.- Parameters:
step- a workflow step- Returns:
- the step result object related to the step
-
getTaskSubmittedCount
Get the count of submitted task contexts of a step.- Parameters:
step- a workflow step- Returns:
- the count of submitted task contexts
-
getTaskRunningCount
Get the count of running task contexts of a step.- Parameters:
step- a workflow step- Returns:
- the count of running task contexts
-
getTaskDoneCount
Get the count of done task contexts of a step.- Parameters:
step- a workflow step- Returns:
- the count of done task contexts
-
waitEndOfTasks
Wait the end of the task contexts.- Parameters:
step- a workflow step
-
getTotalTaskSubmittedCount
int getTotalTaskSubmittedCount()Get the count of submitted task contexts for the workflow.- Returns:
- the count of submitted task contexts
-
getTotalTaskRunningCount
int getTotalTaskRunningCount()Get the count of running task contexts for the workflow.- Returns:
- the count of running task contexts
-
getTotalTaskDoneCount
int getTotalTaskDoneCount()Get the count of done task contexts for the workflow.- Returns:
- the count of done task contexts
-
start
void start()Start the scheduler. -
stop
void stop()Stop the scheduler.
-