|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.queue.WorkUnitContext
public final class WorkUnitContext
Holds the information shared between WorkUnits created from the same Queue.Task.
| Field Summary | |
|---|---|
List<Action> |
actions
Associated parameters to the build. |
FutureImpl |
future
Once the execution starts and completes, update this future object with the outcome. |
Queue.BuildableItem |
item
|
Queue.Task |
task
|
| Constructor Summary | |
|---|---|
WorkUnitContext(Queue.BuildableItem item)
|
|
| Method Summary | |
|---|---|
void |
abort(Throwable cause)
When one of the work unit is aborted, call this method to abort all the other work units. |
WorkUnit |
createWorkUnit(SubTask execUnit)
Called by the executor that executes a member SubTask that belongs to this task
to create its WorkUnit. |
WorkUnit |
getPrimaryWorkUnit()
|
List<WorkUnit> |
getWorkUnits()
|
void |
synchronizeEnd(Queue.Executable executable,
Throwable problems,
long duration)
All the Executors that jointly execute a Queue.Task call this method to synchronize on the end of the task. |
void |
synchronizeStart()
All the Executors that jointly execute a Queue.Task call this method to synchronize on the start. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Queue.BuildableItem item
public final Queue.Task task
public final FutureImpl future
public final List<Action> actions
| Constructor Detail |
|---|
public WorkUnitContext(Queue.BuildableItem item)
| Method Detail |
|---|
public WorkUnit createWorkUnit(SubTask execUnit)
SubTask that belongs to this task
to create its WorkUnit.
public List<WorkUnit> getWorkUnits()
public WorkUnit getPrimaryWorkUnit()
public void synchronizeStart()
throws InterruptedException
Executors that jointly execute a Queue.Task call this method to synchronize on the start.
InterruptedException
public void synchronizeEnd(Queue.Executable executable,
Throwable problems,
long duration)
throws InterruptedException
Executors that jointly execute a Queue.Task call this method to synchronize on the end of the task.
InterruptedException - If any of the member thread is interrupted while waiting for other threads to join, all
the member threads will report InterruptedException.public void abort(Throwable cause)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||