Package hudson.model.queue
Class WorkUnit
java.lang.Object
hudson.model.queue.WorkUnit
- Since:
- 1.377
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal WorkUnitContextShared context amongWorkUnits.final SubTaskTask to be executed. -
Method Summary
Modifier and TypeMethodDescriptionIf the execution has already started, return the executable that was created.Executorrunning this work unit.booleanIs this work unit the "main work", which is the primarySubTaskrepresented byQueue.Taskitself.voidsetExecutable(Queue.Executable executable) This method is only meant to be called internally byExecutor.voidtoString()
-
Field Details
-
work
Task to be executed. -
context
Shared context amongWorkUnits.
-
-
Method Details
-
getExecutor
Executorrunning this work unit.Executor.getCurrentWorkUnit()andgetExecutor()form a bi-directional reachability between them. -
setExecutor
-
getExecutable
If the execution has already started, return the executable that was created. -
setExecutable
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setExecutable(Queue.Executable executable) This method is only meant to be called internally byExecutor. -
isMainWork
public boolean isMainWork()Is this work unit the "main work", which is the primarySubTaskrepresented byQueue.Taskitself. -
toString
-