public class Scheduler extends java.lang.Object implements SchedulerInterface
| Modifier and Type | Field and Description |
|---|---|
StampedeLog |
stampedeLog |
| Constructor and Description |
|---|
Scheduler(TaskGraph taskgraph)
Construct a scheduler for the given taskgraph and registers it with all the tasks in the taskgraph
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExecutionListener(ExecutionListener listener) |
void |
flushTaskGraph()
Flushes all data from the task graph cables
|
ExecutionState |
getExecutionState() |
void |
notifyError(RunnableInstance cause,
java.lang.String message)
Called to notify an error has occured in the taskgraph
|
void |
pauseTaskGraph()
Pauses the taskgraph
|
void |
removeExecutionListener(ExecutionListener listener) |
void |
resetTaskGraph()
Halt the taskgraph and reset all units to their start values.
|
void |
resumeTaskGraph()
Continue after a pause.
|
void |
runTask(Task task)
Runs the specified task (within a running taskgraph)
|
void |
runTaskGraph()
Runs the main taskgraph
|
void |
runTaskGraph(HistoryClipIn history)
Runs the taskgraph by waking up all the input tasks.
|
void |
setExecutionProperties(java.util.HashMap<java.lang.String,java.lang.String> executionProperties) |
void |
wakeTask(Task task)
Wakes up the specfied task within a running taskgraph
|
public StampedeLog stampedeLog
public Scheduler(TaskGraph taskgraph)
taskgraph - public ExecutionState getExecutionState()
getExecutionState in interface SchedulerInterfacepublic void runTaskGraph()
throws SchedulerException
runTaskGraph in interface SchedulerInterfaceSchedulerExceptionpublic void runTaskGraph(HistoryClipIn history) throws SchedulerException
runTaskGraph in interface SchedulerInterfaceSchedulerExceptionpublic void pauseTaskGraph()
pauseTaskGraph in interface SchedulerInterfacepublic void resumeTaskGraph()
resumeTaskGraph in interface SchedulerInterfacepublic void resetTaskGraph()
resetTaskGraph in interface SchedulerInterfacepublic void flushTaskGraph()
flushTaskGraph in interface SchedulerInterfacepublic void runTask(Task task) throws SchedulerException
runTask in interface SchedulerInterfaceSchedulerExceptionpublic void notifyError(RunnableInstance cause, java.lang.String message)
notifyError in interface SchedulerInterfacecause - the cause of the errorpublic void addExecutionListener(ExecutionListener listener)
addExecutionListener in interface SchedulerInterfacepublic void removeExecutionListener(ExecutionListener listener)
removeExecutionListener in interface SchedulerInterfacepublic void setExecutionProperties(java.util.HashMap<java.lang.String,java.lang.String> executionProperties)
setExecutionProperties in interface SchedulerInterfacepublic void wakeTask(Task task)