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 SchedulerInterface
public void runTaskGraph() throws SchedulerException
runTaskGraph
in interface SchedulerInterface
SchedulerException
public void runTaskGraph(HistoryClipIn history) throws SchedulerException
runTaskGraph
in interface SchedulerInterface
SchedulerException
public void pauseTaskGraph()
pauseTaskGraph
in interface SchedulerInterface
public void resumeTaskGraph()
resumeTaskGraph
in interface SchedulerInterface
public void resetTaskGraph()
resetTaskGraph
in interface SchedulerInterface
public void flushTaskGraph()
flushTaskGraph
in interface SchedulerInterface
public void runTask(Task task) throws SchedulerException
runTask
in interface SchedulerInterface
SchedulerException
public void notifyError(RunnableInstance cause, java.lang.String message)
notifyError
in interface SchedulerInterface
cause
- the cause of the errorpublic void addExecutionListener(ExecutionListener listener)
addExecutionListener
in interface SchedulerInterface
public void removeExecutionListener(ExecutionListener listener)
removeExecutionListener
in interface SchedulerInterface
public void setExecutionProperties(java.util.HashMap<java.lang.String,java.lang.String> executionProperties)
setExecutionProperties
in interface SchedulerInterface
public void wakeTask(Task task)