public class TaskStateImpl extends TaskState
ASC_ORDER, COMPARE_BY_FINISHED_TIME_ASC, currentOrder, currentSort, DESC_ORDER, SORT_BY_DESCRIPTION, SORT_BY_EXEC_DURATION, SORT_BY_EXECUTIONLEFT, SORT_BY_EXECUTIONONFAILURELEFT, SORT_BY_FINISHED_TIME, SORT_BY_HOST_NAME, SORT_BY_ID, SORT_BY_NAME, SORT_BY_STARTED_TIME, SORT_BY_STATUS
cScript, description, flowBlock, flowScript, fork, forkEnvironment, inputFiles, name, outputFiles, parallelEnvironment, postScript, preciousLogs, preciousResult, preScript, runAsMe, sScripts, tag, variables, wallTime
DEFAULT_TASK_RETRY_DELAY, GENERIC_INFO_START_AT_KEY, genericInformation, maxNumberOfExecution, onTaskError, restartTaskOnError, taskRetryDelay, unresolvedGenericInformation
Constructor and Description |
---|
TaskStateImpl() |
Modifier and Type | Method and Description |
---|---|
List<TaskState> |
getDependences()
To get the dependences of this task.
|
int |
getIterationIndex()
When Control Flow actions are performed (see
Task.getFlowScript() ),
some tasks are replicated. |
int |
getMaxNumberOfExecutionOnFailure()
Get the number of execution on failure allowed by the task.
|
int |
getReplicationIndex()
When Control Flow actions are performed (see
Task.getFlowScript() ),
some tasks are replicated. |
TaskInfo |
getTaskInfo()
To get the taskInfo
|
TaskState |
replicate()
Replicates a task
|
void |
setIterationIndex(int iterationIndex) |
void |
setMaxNumberOfExecutionOnFailure(int maxNumberOfExecutionOnFailure) |
void |
setReplicationIndex(int replicationIndex) |
void |
update(TaskInfo taskInfo)
To update this taskState using a taskInfo
|
addDependence, addDependences, compareTo, equals, getDependencesList, getExecutionDuration, getExecutionHostName, getExecutionHostNameList, getFinishedTime, getId, getJobId, getName, getNumberOfExecutionLeft, getNumberOfExecutionOnFailureLeft, getProgress, getRuntimeGenericInformation, getRuntimeVariables, getScheduledTime, getScopeVariables, getStartTime, getStatus, getSystemVariables, hashCode, isTaskAlive, setSortingBy, setSortingOrder, toString
addInputFiles, addInputFiles, addOutputFiles, addOutputFiles, addSelectionScript, display, getCleaningScript, getDescription, getFlowBlock, getFlowScript, getForkEnvironment, getInputFilesList, getNumberOfNodesNeeded, getOutputFilesList, getParallelEnvironment, getPostScript, getPreScript, getSelectionScripts, getTag, getUnresolvedVariables, getVariables, getVariablesOverriden, getWallTime, getWorkingDir, isFork, isParallel, isPreciousLogs, isPreciousResult, isRunAsMe, isWallTimeSet, setCleaningScript, setDescription, setFlowBlock, setFlowScript, setFork, setForkEnvironment, setName, setNumberOfNeededNodes, setParallelEnvironment, setPostScript, setPreciousLogs, setPreciousResult, setPreScript, setRunAsMe, setSelectionScript, setSelectionScripts, setTag, setUnresolvedVariables, setVariables, setWallTime, verifyVariableMap
addGenericInformation, addGenericInformations, applyReplacementsOnGenericInformation, getGenericInformation, getMaxNumberOfExecution, getMaxNumberOfExecutionProperty, getOnTaskErrorProperty, getRestartTaskOnError, getRestartTaskOnErrorProperty, getTaskRetryDelay, getTaskRetryDelayProperty, getUnresolvedGenericInformation, setGenericInformation, setMaxNumberOfExecution, setOnTaskError, setRestartTaskOnError, setTaskRetryDelay, setUnresolvedGenericInformation
public void update(TaskInfo taskInfo)
TaskState
public List<TaskState> getDependences()
TaskState
getDependences
in class TaskState
public TaskInfo getTaskInfo()
TaskState
getTaskInfo
in class TaskState
public void setMaxNumberOfExecutionOnFailure(int maxNumberOfExecutionOnFailure)
public int getMaxNumberOfExecutionOnFailure()
TaskState
getMaxNumberOfExecutionOnFailure
in class TaskState
public TaskState replicate() throws Exception
TaskState
Deep copies all fields, does not share any reference
public void setIterationIndex(int iterationIndex)
public int getIterationIndex()
TaskState
Task.getFlowScript()
),
some tasks are replicated.
A task replicated by a FlowActionType.LOOP
action
is differentiated from the original by an incremented Iteration Index.getIterationIndex
in class TaskState
>= 0
)public void setReplicationIndex(int replicationIndex)
public int getReplicationIndex()
TaskState
Task.getFlowScript()
),
some tasks are replicated.
A task replicated by a FlowActionType.REPLICATE
action
is differentiated from the original by an incremented Replication Index.getReplicationIndex
in class TaskState
>= 0
)