Package de.foellix.aql.system
Class TaskScheduler
java.lang.Object
de.foellix.aql.system.TaskScheduler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels any processes runningvoidCalled whenever a transformation led to a change of the available task as a side-effect.longReturns the timeout in secondsbooleaninProgress(Task task) voidsetTimeout(long timeout) Sets the timeout value (in seconds).voidStart scheduling tasks for initial query.voidtaskFinished(Task task, int status) voidtaskFinished(Task task, int status, String feedback) voidtaskFinished(Task task, String feedback)
-
Constructor Details
-
TaskScheduler
-
-
Method Details
-
start
Start scheduling tasks for initial query.- Parameters:
taskTree- The initial tree of tasks.
-
cancel
public void cancel()Cancels any processes running -
changed
Called whenever a transformation led to a change of the available task as a side-effect.- Parameters:
taskTree- The new tree of tasks.
-
taskFinished
-
taskFinished
-
taskFinished
-
setTimeout
public void setTimeout(long timeout) Sets the timeout value (in seconds).- Parameters:
timeout- value (in seconds)
-
getTimeout
public long getTimeout()Returns the timeout in seconds- Returns:
- timeout (in seconds)
-
getParent
-
getTaskTree
-
inProgress
-