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, forkEnvironment, inputFiles, name, outputFiles, parallelEnvironment, postScript, preciousLogs, preciousResult, preScript, runAsMe, sScripts, tag, variables, wallTime
GENERIC_INFO_START_AT_KEY, genericInformation, maxNumberOfExecution, onTaskError, restartTaskOnError, unresolvedGenericInformation
Constructor and Description |
---|
TaskStateImpl(org.ow2.proactive_grid_cloud_portal.scheduler.dto.TaskStateData d) |
Modifier and Type | Method and Description |
---|---|
List<TaskState> |
getDependences()
To get the dependences of this task.
|
String |
getDescription()
To get the description of this task.
|
TaskId |
getId()
To get the taskId
|
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.
|
String |
getName()
To get the name of this 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 |
update(TaskInfo arg0)
To update this taskState using a taskInfo
|
addDependence, addDependences, compareTo, equals, getDependencesList, getExecutionDuration, getExecutionHostName, getExecutionHostNameList, getFinishedTime, getJobId, getNumberOfExecutionLeft, getNumberOfExecutionOnFailureLeft, getProgress, getRuntimeGenericInformation, getRuntimeVariables, getScheduledTime, getScopeVariables, getStartTime, getStatus, getSystemVariables, hashCode, isTaskAlive, setSortingBy, setSortingOrder, toString
addInputFiles, addInputFiles, addOutputFiles, addOutputFiles, addSelectionScript, display, getCleaningScript, getFlowBlock, getFlowScript, getForkEnvironment, getInputFilesList, getNumberOfNodesNeeded, getOutputFilesList, getParallelEnvironment, getPostScript, getPreScript, getSelectionScripts, getTag, getVariables, getVariablesOverriden, getWallTime, getWorkingDir, isParallel, isPreciousLogs, isPreciousResult, isRunAsMe, isWallTimeSet, setCleaningScript, setDescription, setFlowBlock, setFlowScript, setForkEnvironment, setName, setNumberOfNeededNodes, setParallelEnvironment, setPostScript, setPreciousLogs, setPreciousResult, setPreScript, setRunAsMe, setSelectionScript, setSelectionScripts, setTag, setVariables, setWallTime
addGenericInformation, addGenericInformations, applyReplacementsOnGenericInformation, getGenericInformation, getMaxNumberOfExecution, getMaxNumberOfExecutionProperty, getOnTaskErrorProperty, getRestartTaskOnError, getRestartTaskOnErrorProperty, getUnresolvedGenericInformation, setGenericInformation, setMaxNumberOfExecution, setOnTaskError, setRestartTaskOnError, setUnresolvedGenericInformation
public TaskStateImpl(org.ow2.proactive_grid_cloud_portal.scheduler.dto.TaskStateData d)
public List<TaskState> getDependences()
TaskState
getDependences
in class TaskState
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 getMaxNumberOfExecutionOnFailure()
TaskState
getMaxNumberOfExecutionOnFailure
in class TaskState
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 TaskInfo getTaskInfo()
TaskState
getTaskInfo
in class TaskState
public TaskState replicate() throws Exception
TaskState
Deep copies all fields, does not share any reference
public void update(TaskInfo arg0)
TaskState
public String getName()
Task
getName
in class TaskState
Task.getName()
public String getDescription()
Task
getDescription
in class Task