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
Resource s that this task requires. |
Object |
getSameNodeConstraint()
If a subset of
SubTask s of a Queue.Task needs to be collocated with other SubTask s,
those SubTask s should return the equal object here. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createExecutable, getOwnerTask
getDisplayName
public Label getAssignedLabel()
SubTask
Label
. Otherwise null, indicating
it can run on anywhere.getAssignedLabel
in interface SubTask
public Node getLastBuiltOn()
SubTask
getLastBuiltOn
in interface SubTask
public long getEstimatedDuration()
SubTask
getEstimatedDuration
in interface SubTask
public Object getSameNodeConstraint()
SubTask
SubTask
s of a Queue.Task
needs to be collocated with other SubTask
s,
those SubTask
s should return the equal object here. If null, the execution unit isn't under a
colocation constraint.getSameNodeConstraint
in interface SubTask
public ResourceList getResourceList()
ResourceActivity
Resource
s 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 Resource
s.
If the activity doesn't lock any resources, just
return ResourceList.EMPTY
.
getResourceList
in interface ResourceActivity
Copyright © 2019. All rights reserved.