hudson.model.queue
Class QueueSorter
java.lang.Object
hudson.model.queue.QueueSorter
- All Implemented Interfaces:
- ExtensionPoint
- Direct Known Subclasses:
- AbstractQueueSorterImpl
public abstract class QueueSorter
- extends Object
- implements ExtensionPoint
Singleton extension point for sorting buildable items
- Since:
- 1.343
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueSorter
public QueueSorter()
sortBuildableItems
public abstract void sortBuildableItems(List<Queue.BuildableItem> buildables)
- Sorts the buildable items list. The items at the beginning will be executed
before the items at the end of the list.
- Parameters:
buildables
- List of buildable items in the queue. Never null.
all
public static ExtensionList<QueueSorter> all()
- All registered
QueueSorter
s. Only the first one will be picked up,
unless explicitly overridden by Queue.setSorter(QueueSorter)
.
installDefaultQueueSorter
@Initializer(after=JOB_LOADED)
public static void installDefaultQueueSorter()
- Installs the default queue sorter.
Queue.Queue(LoadBalancer)
is too early to do this
Copyright © 2004-2013. All Rights Reserved.