|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LabelAssignmentAction
Action
that can be submitted to Queue
that controls where
the task runs.
LabelAssignmentAction
s
If you control when the task gets submitted to the queue, you can associate this action
to the task by passing it as a parameter to method like Queue.schedule(Task, int, Action...)
.
If you want to globally affect the scheduling decision, you can do so by Queue.QueueDecisionHandler
and alter the list of actions that you get. Alternatively, you can implement your own LoadBalancer
and bypass the whole label/assignment mechanism to control the decision into your own hands.
Method Summary | |
---|---|
Label |
getAssignedLabel(SubTask task)
Reassigns where the task gets run. |
Methods inherited from interface hudson.model.Action |
---|
getDisplayName, getIconFileName, getUrlName |
Method Detail |
---|
Label getAssignedLabel(SubTask task)
task
- Never null.
LabelAssignmentAction
s take control, eventually to SubTask#getAssignedLabel()
.
If non-null value is returned, that label will be authoritative.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |