public abstract class AbstractSubTask extends Object implements SubTask
SubTask to avoid
AbstractMethodError with future additions to SubTask.| Constructor and Description |
|---|
AbstractSubTask() |
| Modifier and Type | Method and Description |
|---|---|
Label |
getAssignedLabel()
If this task needs to be run on a node with a particular label,
return that
Label. |
long |
getEstimatedDuration()
Estimate of how long will it take to execute this task.
|
Node |
getLastBuiltOn()
If the previous execution of this task run on a certain node
and this task prefers to run on the same node, return that.
|
ResourceList |
getResourceList()
Gets the list of
Resources that this task requires. |
Object |
getSameNodeConstraint()
If a subset of
SubTasks of a Queue.Task needs to be collocated with other SubTasks,
those SubTasks should return the equal object here. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateExecutable, getOwnerTaskgetDisplayNamepublic Label getAssignedLabel()
SubTaskLabel. Otherwise null, indicating
it can run on anywhere.getAssignedLabel in interface SubTaskpublic Node getLastBuiltOn()
SubTaskgetLastBuiltOn in interface SubTaskpublic long getEstimatedDuration()
SubTaskgetEstimatedDuration in interface SubTaskpublic Object getSameNodeConstraint()
SubTaskSubTasks of a Queue.Task needs to be collocated with other SubTasks,
those SubTasks should return the equal object here. If null, the execution unit isn't under a
colocation constraint.getSameNodeConstraint in interface SubTaskpublic ResourceList getResourceList()
ResourceActivityResources that this task requires.
Used to make sure no two conflicting tasks run concurrently.
This method must always return the ResourceList
that contains the exact same set of Resources.
If the activity doesn't lock any resources, just
return ResourceList.EMPTY.
getResourceList in interface ResourceActivityCopyright © 2019. All rights reserved.