Package hudson.model.queue
Interface SubTask
- All Superinterfaces:
- FullyNamedModelObject,- ITask,- ModelObject,- ResourceActivity
- All Known Subinterfaces:
- BuildableItem,- BuildableItemWithBuildWrappers,- ParameterizedJobMixIn.ParameterizedJob<JobT,,- RunT> - Queue.FlyweightTask,- Queue.NonBlockingTask,- Queue.Task,- Queue.TransientTask,- SCMedItem
- All Known Implementing Classes:
- AbstractProject,- AbstractQueueTask,- AbstractSubTask,- FreeStyleProject,- Project,- QueueTaskFilter
A component of 
Queue.Task that represents a computation carried out by a single Executor.
 A Queue.Task consists of a number of SubTask.- Since:
- 1.377
- 
Method SummaryModifier and TypeMethodDescriptionCreates an object which performs the actual execution of the task.default LabelIf this task needs to be run on a node with a particular label, return thatLabel.default longEstimate of how long will it take to execute this task.default NodeDeprecated.Unused.default Queue.ExecutableIf this task is associated with an executable ofgetOwnerTask(), finds that.default Queue.TaskGets the task that this subtask belongs to.default ObjectIf a subset ofSubTasks of aQueue.Taskneeds to be collocated with otherSubTasks, thoseSubTasks should return the equal object here.default StringgetUrl()A subtask may not be reachable by its own URL.Methods inherited from interface jenkins.model.queue.ITaskgetFullDisplayName, hasAbortPermission, hasReadPermissionMethods inherited from interface hudson.model.ModelObjectgetDisplayNameMethods inherited from interface hudson.model.ResourceActivitygetResourceList
- 
Method Details- 
getAssignedLabelIf this task needs to be run on a node with a particular label, return thatLabel. Otherwise null, indicating it can run on anywhere.- Returns:
- by default, null
 
- 
getLastBuiltOnDeprecated.Unused.If the previous execution of this task run on a certain node and this task prefers to run on the same node, return that. Otherwise null.- Returns:
- by default, null
 
- 
getEstimatedDurationdefault long getEstimatedDuration()Estimate of how long will it take to execute this task. Measured in milliseconds.- Returns:
- -1 if it's impossible to estimate (the default)
 
- 
createExecutableCreates an object which performs the actual execution of the task.- Returns:
- executable to be launched or null if the executable cannot be
 created (e.g. AbstractProjectis disabled)
- Throws:
- IOException- executable cannot be created
 
- 
getOwnerTaskGets the task that this subtask belongs to.- Returns:
- by default, this
- See Also:
 
- 
getOwnerExecutableIf this task is associated with an executable ofgetOwnerTask(), finds that.- Returns:
- by default, null
- Since:
- 2.389
- See Also:
 
- 
getSameNodeConstraintIf a subset ofSubTasks of aQueue.Taskneeds to be collocated with otherSubTasks, thoseSubTasks should return the equal object here. If null, the execution unit isn't under a colocation constraint.- Returns:
- by default, null
 
- 
getUrlA subtask may not be reachable by its own URL. In that case, this method should return null.
 
-