@PublicAPI public interface JobDescriptor extends Serializable, Comparable<JobDescriptor>
Modifier and Type | Method and Description |
---|---|
Collection<TaskDescriptor> |
getEligibleTasks()
To get the tasks.
|
JobId |
getJobId()
Get the job id
|
JobPriority |
getJobPriority()
Get the job priority
|
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<TaskId,TaskDescriptor> getRunningTasks()
Map<TaskId,? extends TaskDescriptor> getPausedTasks()
void restoreRunningTasks()