Package hudson.model
Class Queue.JobOffer
- java.lang.Object
-
- hudson.model.queue.MappingWorksheet.ExecutorSlot
-
- hudson.model.Queue.JobOffer
-
- Enclosing class:
- Queue
public static class Queue.JobOffer extends MappingWorksheet.ExecutorSlot
Data structure created for each idleExecutor. This is a job offer from the queue to an executor.For each idle executor, this gets created to allow the scheduling logic to assign a work. Once a work is assigned, the executor actually gets started to carry out the task in question.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanTake(Queue.BuildableItem item)Deprecated.discards information; prefergetCauseOfBlockage(hudson.model.Queue.BuildableItem)CauseOfBlockagegetCauseOfBlockage(Queue.BuildableItem item)Checks whether theExecutorrepresented by this object is capable of executing the given task.ExecutorgetExecutor()NodegetNode()booleanisAvailable()Is this executor ready to accept some tasks?booleanisNotExclusive()protected voidset(WorkUnit p)StringtoString()
-
-
-
Field Detail
-
executor
public final Executor executor
-
-
Method Detail
-
set
protected void set(WorkUnit p)
- Specified by:
setin classMappingWorksheet.ExecutorSlot
-
getExecutor
public Executor getExecutor()
- Specified by:
getExecutorin classMappingWorksheet.ExecutorSlot
-
canTake
@Deprecated public boolean canTake(Queue.BuildableItem item)
Deprecated.discards information; prefergetCauseOfBlockage(hudson.model.Queue.BuildableItem)
-
getCauseOfBlockage
@CheckForNull public CauseOfBlockage getCauseOfBlockage(Queue.BuildableItem item)
Checks whether theExecutorrepresented by this object is capable of executing the given task.- Returns:
- a reason why it cannot, or null if it could
- Since:
- 2.37
-
isAvailable
public boolean isAvailable()
Is this executor ready to accept some tasks?- Specified by:
isAvailablein classMappingWorksheet.ExecutorSlot
-
getNode
@CheckForNull public Node getNode()
-
isNotExclusive
public boolean isNotExclusive()
-
-