public class Queue.JobOffer extends MappingWorksheet.ExecutorSlot
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.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTake(Queue.BuildableItem item)
Verifies that the
Executor 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() |
public final Executor executor
protected void set(WorkUnit p)
set in class MappingWorksheet.ExecutorSlotpublic Executor getExecutor()
getExecutor in class MappingWorksheet.ExecutorSlotpublic boolean canTake(Queue.BuildableItem item)
Executor represented by this object is capable of executing the given task.public boolean isAvailable()
isAvailable in class MappingWorksheet.ExecutorSlot@CheckForNull public Node getNode()
public boolean isNotExclusive()
Copyright © 2019. All rights reserved.