|
||||||||||
| 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 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. |
| 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()
SubTaskLabel. Otherwise null, indicating
it can run on anywhere.
getAssignedLabel in interface SubTaskpublic Node getLastBuiltOn()
SubTask
getLastBuiltOn in interface SubTaskpublic long getEstimatedDuration()
SubTask
getEstimatedDuration 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 new ResourceList().
getResourceList in interface ResourceActivity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||