public final class ClientTaskState extends TaskState
TaskState
. A client may access
instances of this class when connecting to the scheduler front-end and ask
for a JobState (for instance by using Scheduler.getJobState(String)
).
The value of some attributes will not be available in this view of the
TaskState. Therefore, calling the respective getters will throw a
RuntimeException. See the public method's javadoc for more details.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, onTaskError, restartTaskOnError, taskRetryDelay, unresolvedGenericInformation
Constructor and Description |
---|
ClientTaskState(TaskState taskState) |
Modifier and Type | Method and Description |
---|---|
List<TaskState> |
getDependences()
To get the dependences of this task.
|
FlowScript |
getFlowScript()
This property is not available for this implementation.
|
List<InputSelector> |
getInputFilesList()
This property is not available for this implementation.
|
int |
getIterationIndex()
When Control Flow actions are performed (see
Task.getFlowScript() ),
some tasks are replicated. |
int |
getMaxNumberOfExecution()
Get the number of execution allowed for this task.
|
int |
getMaxNumberOfExecutionOnFailure()
Get the number of execution on failure allowed by the task.
|
List<OutputSelector> |
getOutputFilesList()
This property is not available for this implementation.
|
Script<?> |
getPostScript()
This property is not available for this implementation.
|
Script<?> |
getPreScript()
This property is not available for this implementation.
|
int |
getReplicationIndex()
When Control Flow actions are performed (see
Task.getFlowScript() ),
some tasks are replicated. |
RestartMode |
getRestartTaskOnError()
This property is not available for this implementation.
|
List<SelectionScript> |
getSelectionScripts()
This property is not available for this implementation.
|
TaskInfo |
getTaskInfo()
To get the taskInfo
|
TaskState |
replicate()
Replicates a task
|
void |
restoreDependences(Map<TaskId,TaskState> tasksMap) |
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, getForkEnvironment, getNumberOfNodesNeeded, getParallelEnvironment, 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, getMaxNumberOfExecutionProperty, getOnTaskErrorProperty, getRestartTaskOnErrorProperty, getTaskRetryDelay, getTaskRetryDelayProperty, getUnresolvedGenericInformation, setGenericInformation, setMaxNumberOfExecution, setOnTaskError, setRestartTaskOnError, setTaskRetryDelay, setUnresolvedGenericInformation
public ClientTaskState(TaskState taskState)
public void update(TaskInfo taskInfo)
TaskState
public List<TaskState> getDependences()
TaskState
getDependences
in class TaskState
public TaskInfo getTaskInfo()
TaskState
getTaskInfo
in class TaskState
public int getMaxNumberOfExecutionOnFailure()
TaskState
getMaxNumberOfExecutionOnFailure
in class TaskState
public TaskState replicate() throws Exception
TaskState
Deep copies all fields, does not share any reference
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 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
)public int getMaxNumberOfExecution()
CommonAttribute
getMaxNumberOfExecution
in class CommonAttribute
public List<InputSelector> getInputFilesList()
getInputFilesList
in class Task
public List<OutputSelector> getOutputFilesList()
getOutputFilesList
in class Task
public Script<?> getPreScript()
getPreScript
in class Task
public Script<?> getPostScript()
getPostScript
in class Task
public List<SelectionScript> getSelectionScripts()
getSelectionScripts
in class Task
public FlowScript getFlowScript()
getFlowScript
in class Task
public RestartMode getRestartTaskOnError()
getRestartTaskOnError
in class CommonAttribute