@PublicAPI public interface JobDescriptor extends Serializable, Comparable<JobDescriptor>
Modifier and Type | Method and Description |
---|---|
Credentials |
getCredentials()
Return the job owner encrypted credentials
|
Collection<TaskDescriptor> |
getEligibleTasks()
To get the tasks.
|
Map<String,String> |
getGenericInformation()
Returns the job generic information
|
JobId |
getJobId()
Get the job id
|
JobPriority |
getJobPriority()
Get the job priority
|
String |
getOwner()
Returns the job owner name
|
Map<TaskId,? extends TaskDescriptor> |
getPausedTasks()
Return the list of paused tasks
|
Map<TaskId,TaskDescriptor> |
getRunningTasks()
Return the list of running tasks
|
boolean |
hasChildren(TaskId taskId)
Return true if the task represented by the given taskId has children, false if not.
|
void |
restoreRunningTasks()
Retrieve the persisted state of tasks and restore the state of tasks
that are found running.
|
compareTo
boolean hasChildren(TaskId taskId)
taskId
- the id representing the real task.Collection<TaskDescriptor> getEligibleTasks()
JobId getJobId()
JobPriority getJobPriority()
Map<String,String> getGenericInformation()
String getOwner()
Credentials getCredentials()
Map<TaskId,TaskDescriptor> getRunningTasks()
Map<TaskId,? extends TaskDescriptor> getPausedTasks()
void restoreRunningTasks()