hudson.model
Class Queue.JobOffer
java.lang.Object
hudson.model.queue.MappingWorksheet.ExecutorSlot
hudson.model.Queue.JobOffer
- Enclosing class:
- Queue
public class Queue.JobOffer
- extends MappingWorksheet.ExecutorSlot
Data structure created for each idle Executor
.
This is a job offer from the queue to an executor.
An idle executor (that calls Queue.pop()
creates
a new Queue.JobOffer
and gets itself parked,
and we'll eventually hand out an workUnit
to build.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
executor
public final Executor executor
set
protected void set(WorkUnit p)
- Specified by:
set
in class MappingWorksheet.ExecutorSlot
getExecutor
public Executor getExecutor()
- Specified by:
getExecutor
in class MappingWorksheet.ExecutorSlot
canTake
public boolean canTake(Queue.BuildableItem item)
- Verifies that the
Executor
represented by this object is capable of executing the given task.
isAvailable
public boolean isAvailable()
- Is this executor ready to accept some tasks?
- Specified by:
isAvailable
in class MappingWorksheet.ExecutorSlot
getNode
public Node getNode()
isNotExclusive
public boolean isNotExclusive()
Copyright © 2004-2013. All Rights Reserved.