|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.queue.WorkUnit
@ExportedBean public final class WorkUnit
Represents a unit of hand-over to Executor
from Queue
.
Field Summary | |
---|---|
WorkUnitContext |
context
Shared context among WorkUnit s. |
SubTask |
work
Task to be executed. |
Method Summary | |
---|---|
Queue.Executable |
getExecutable()
If the execution has already started, return the current executable. |
Executor |
getExecutor()
Executor running this work unit. |
boolean |
isMainWork()
Is this work unit the "main work", which is the primary SubTask
represented by Queue.Task itself. |
void |
setExecutor(Executor e)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final SubTask work
public final WorkUnitContext context
WorkUnit
s.
Method Detail |
---|
public Executor getExecutor()
Executor
running this work unit.
Executor.getCurrentWorkUnit()
and getExecutor()
form a bi-directional reachability between them.
public void setExecutor(Executor e)
public Queue.Executable getExecutable()
public boolean isMainWork()
SubTask
represented by Queue.Task
itself.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |