T
- Type of Node/Task IDR
- Type of Node/Task resultpublic abstract class Task<T extends Comparable<T>,R> extends Object implements Serializable
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
abstract R |
execute()
Framework would call this method, when it comes for tasks to be executed.
|
DependentTasksExecutor.ExecutionBehavior |
getExecutionBehavior() |
T |
getId() |
ExecutionStatus |
getStatus() |
void |
setErrored() |
void |
setExecutionBehavior(DependentTasksExecutor.ExecutionBehavior executionBehavior) |
void |
setId(T id) |
void |
setSkipped() |
void |
setSuccess() |
boolean |
shouldConsiderExecutionError() |
boolean |
shouldExecute(ExecutionResults<T,R> parentResults)
Defines whether or not this task should be executed
|
public void setId(T id)
public T getId()
public void setErrored()
public void setSkipped()
public void setSuccess()
public ExecutionStatus getStatus()
public DependentTasksExecutor.ExecutionBehavior getExecutionBehavior()
public void setExecutionBehavior(DependentTasksExecutor.ExecutionBehavior executionBehavior)
public abstract R execute()
public boolean shouldConsiderExecutionError()
public boolean shouldExecute(ExecutionResults<T,R> parentResults)
parentResults
- true
If this task should be executed
false
If the task should be skippedCopyright © 2016 Dexecutor. All rights reserved.