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
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
QueueSorters. 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(hudson.model.LoadBalancer) is too early to do this
Copyright © 2004-2013 Hudson. All Rights Reserved.