|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.queue.AbstractSubTask
public abstract class AbstractSubTask
Partial default implementation of SubTask
to avoid
AbstractMethodError
with future additions to SubTask
.
Constructor Summary | |
---|---|
AbstractSubTask()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hudson.model.queue.SubTask |
---|
createExecutable, getOwnerTask |
Methods inherited from interface hudson.model.ResourceActivity |
---|
getDisplayName |
Constructor Detail |
---|
public AbstractSubTask()
Method Detail |
---|
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 new ResourceList()
.
getResourceList
in interface ResourceActivity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |