Package hudson.model.queue
Class WorkUnit
java.lang.Object
hudson.model.queue.WorkUnit
- Since:
- 1.377
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Modifier and TypeFieldDescriptionfinal WorkUnitContext
Shared context amongWorkUnit
s.final SubTask
Task to be executed. -
Method Summary
Modifier and TypeMethodDescriptionIf the execution has already started, return the executable that was created.Executor
running this work unit.boolean
Is this work unit the "main work", which is the primarySubTask
represented byQueue.Task
itself.void
setExecutable
(Queue.Executable executable) This method is only meant to be called internally byExecutor
.void
toString()
-
Field Details
-
work
Task to be executed. -
context
Shared context amongWorkUnit
s.
-
-
Method Details
-
getExecutor
Executor
running 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 primarySubTask
represented byQueue.Task
itself. -
toString
-