public class ClientJobState extends JobState
JobState
. A client will receive an
instance 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
JobState. Therefore, calling the respective getters will throw a
RuntimeException. See the public method's javadoc for more details.ASC_ORDER, DESC_ORDER, SORT_BY_DESCRIPTION, SORT_BY_ID, SORT_BY_NAME, SORT_BY_OWNER, SORT_BY_PRIORITY, SORT_BY_PROJECT, SORT_BY_STATUS, SORT_BY_TYPE
description, globalSpace, inputSpace, JOB_DDL, JOB_EXEC_TIME, name, outputSpace, priority, projectName, unresolvedVariables, userSpace, variables, visualization
GENERIC_INFO_START_AT_KEY, genericInformation, onTaskError, restartTaskOnError, unresolvedGenericInformation
Constructor and Description |
---|
ClientJobState(JobState jobState) |
Modifier and Type | Method and Description |
---|---|
Map<TaskId,TaskState> |
getHMTasks()
To get the tasks as a hash map.
|
JobInfo |
getJobInfo()
To get the jobInfo of this job.
|
int |
getMaxNumberOfExecution()
Get the number of execution allowed for this task.
|
String |
getOwner()
To get the owner of the job.
|
RestartMode |
getRestartTaskOnError()
This property is not available for this implementation.
|
ArrayList<TaskState> |
getTasks()
To get the tasks as an array list.
|
JobType |
getType()
To get the type of this job
|
void |
update(JobInfo info)
To update the content of this job with a jobInfo.
|
void |
update(TaskInfo taskInfo)
Set the jobInfo contained in the TaskInfo to this job.
|
compareTo, equals, getFinishedTime, getId, getInErrorTime, getName, getNumberOfFailedTasks, getNumberOfFaultyTasks, getNumberOfFinishedTasks, getNumberOfInErrorTasks, getNumberOfPendingTasks, getNumberOfRunningTasks, getPriority, getRemovedTime, getRuntimeGenericInformation, getStartTime, getStatus, getSubmittedTime, getTags, getTags, getTaskByTagPaginated, getTasksByTag, getTasksPaginated, getTotalNumberOfTasks, hashCode, isFinished, isToBeRemoved, setSortingBy, setSortingOrder, toString
display, getDescription, getGlobalSpace, getInputSpace, getJobContent, getJobDeadline, getJobExpectedExecutionTime, getOutputSpace, getProjectName, getUnresolvedVariables, getUserSpace, getVariables, getVariablesAsReplacementMap, getVisualization, setDescription, setGlobalSpace, setInputSpace, setJobContent, setName, setOutputSpace, setPriority, setProjectName, setUnresolvedVariables, setUserSpace, setVariables, setVisualization, verifyVariableMap
addGenericInformation, addGenericInformations, applyReplacementsOnGenericInformation, getGenericInformation, getMaxNumberOfExecutionProperty, getOnTaskErrorProperty, getRestartTaskOnErrorProperty, getUnresolvedGenericInformation, setGenericInformation, setMaxNumberOfExecution, setOnTaskError, setRestartTaskOnError, setUnresolvedGenericInformation
public ClientJobState(JobState jobState)
public int getMaxNumberOfExecution()
CommonAttribute
getMaxNumberOfExecution
in class CommonAttribute
public void update(TaskInfo taskInfo)
JobState
public void update(JobInfo info)
JobState
public JobInfo getJobInfo()
JobState
getJobInfo
in class JobState
public ArrayList<TaskState> getTasks()
JobState
public Map<TaskId,TaskState> getHMTasks()
JobState
getHMTasks
in class JobState
public String getOwner()
JobState
public RestartMode getRestartTaskOnError()
getRestartTaskOnError
in class CommonAttribute