hudson.model
Class Queue.JobOffer

java.lang.Object
  extended by hudson.model.queue.MappingWorksheet.ExecutorSlot
      extended by 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.


Field Summary
 Executor executor
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executor

public final Executor executor
Method Detail

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.