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 boolean
canTake(Queue.BuildableItem item)
Deprecated.discards information; prefergetCauseOfBlockage(hudson.model.Queue.BuildableItem)
CauseOfBlockage
getCauseOfBlockage(Queue.BuildableItem item)
Checks whether theExecutor
represented by this object is capable of executing the given task.Executor
getExecutor()
Node
getNode()
boolean
isAvailable()
Is this executor ready to accept some tasks?boolean
isNotExclusive()
protected void
set(WorkUnit p)
String
toString()
-
-
-
Field Detail
-
executor
public final Executor executor
-
-
Method Detail
-
set
protected void set(WorkUnit p)
- Specified by:
set
in classMappingWorksheet.ExecutorSlot
-
getExecutor
public Executor getExecutor()
- Specified by:
getExecutor
in 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 theExecutor
represented 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:
isAvailable
in classMappingWorksheet.ExecutorSlot
-
getNode
@CheckForNull public Node getNode()
-
isNotExclusive
public boolean isNotExclusive()
-
-