Package hudson.model
Class Queue.JobOffer
java.lang.Object
hudson.model.queue.MappingWorksheet.ExecutorSlot
hudson.model.Queue.JobOffer
- Enclosing class:
- Queue
Data structure created for each idle
Executor
.
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.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canTake
(Queue.BuildableItem item) Deprecated.Checks whether theExecutor
represented by this object is capable of executing the given task.getNode()
boolean
Is this executor ready to accept some tasks?boolean
protected void
toString()
-
Field Details
-
executor
-
-
Method Details
-
set
- Specified by:
set
in classMappingWorksheet.ExecutorSlot
-
getExecutor
- Specified by:
getExecutor
in classMappingWorksheet.ExecutorSlot
-
canTake
Deprecated.discards information; prefergetCauseOfBlockage(hudson.model.Queue.BuildableItem)
-
getCauseOfBlockage
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
-
isNotExclusive
public boolean isNotExclusive() -
toString
-
getCauseOfBlockage(hudson.model.Queue.BuildableItem)