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, FINISHED_RANK, PENDING_RANK, RUNNING_RANK, SORT_BY_DESCRIPTION, SORT_BY_ID, SORT_BY_NAME, SORT_BY_OWNER, SORT_BY_PRIORITY, SORT_BY_PROJECT, SORT_BY_STATUS, SORT_BY_TYPE
bucketName, description, globalGenericInformation, globalSpace, globalVariables, inputSpace, JOB_DDL, JOB_EXEC_TIME, label, name, outputSpace, priority, projectName, startAt, submissionMode, unresolvedVariables, userSpace, variables, visualization, workflowTags
DEFAULT_TASK_RETRY_DELAY, GENERIC_INFO_START_AT_KEY, genericInformation, onTaskError, restartTaskOnError, taskRetryDelay, unresolvedGenericInformation
Constructor and Description |
---|
ClientJobState(JobState jobState) |
Modifier and Type | Method and Description |
---|---|
String |
getDomain()
To get the domain name of the job.
|
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.
|
String |
getTenant()
To get the tenant of the job owner.
|
JobType |
getType()
To get the type of this job
|
void |
readLock() |
void |
readUnlock() |
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.
|
void |
writeLock() |
void |
writeUnlock() |
compareTo, equals, getCumulatedCoreTime, getFinishedTime, getId, getInErrorTime, getName, getNumberOfFailedTasks, getNumberOfFaultyTasks, getNumberOfFinishedTasks, getNumberOfInErrorTasks, getNumberOfNodes, getNumberOfNodesInParallel, getNumberOfPendingTasks, getNumberOfRunningTasks, getPriority, getRemovedTime, getRuntimeGenericInformation, getStartTime, getStatus, getSubmissionMode, getSubmittedTime, getTags, getTags, getTaskByTagByStatusPaginated, getTaskByTagPaginated, getTasksByTag, getTasksPaginated, getTasksPaginated, getTotalNumberOfTasks, hashCode, isFinished, isToBeRemoved, setSortingBy, setSortingOrder, toString
display, getBucketName, getDescription, getGlobalGenericInformation, getGlobalSpace, getGlobalVariables, getInputSpace, getJobContent, getJobDeadline, getJobExpectedExecutionTime, getLabel, getOutputSpace, getParentId, getProjectName, getStartAt, getUnresolvedVariables, getUserSpace, getVariables, getVariablesAsReplacementMap, getVisualization, getWorkflowTags, setBucketName, setDescription, setGlobalGenericInformation, setGlobalSpace, setGlobalVariables, setInputSpace, setJobContent, setLabel, setName, setOutputSpace, setParentId, setPriority, setProjectName, setStartAt, setSubmissionMode, setUnresolvedVariables, setUserSpace, setVariables, setVisualization, setWorkflowTags, verifyVariableMap
addGenericInformation, addGenericInformations, applyReplacementsOnGenericInformation, getGenericInformation, getMaxNumberOfExecutionProperty, getOnTaskErrorProperty, getRestartTaskOnErrorProperty, getTaskRetryDelay, getTaskRetryDelayProperty, getUnresolvedGenericInformation, setGenericInformation, setMaxNumberOfExecution, setOnTaskError, setRestartTaskOnError, setTaskRetryDelay, setUnresolvedGenericInformation
public ClientJobState(JobState jobState)
public void readLock()
public void readUnlock()
public void writeLock()
public void writeUnlock()
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 String getTenant()
JobState
public String getDomain()
JobState
public RestartMode getRestartTaskOnError()
getRestartTaskOnError
in class CommonAttribute