Class SimpleQueueSorter

java.lang.Object
hudson.model.queue.QueueSorter
cz.mendelu.xotradov.SimpleQueueSorter
All Implemented Interfaces:
ExtensionPoint

public class SimpleQueueSorter extends QueueSorter
The new sorter of Simple Queue plugin, based on sysadmin desires expressed via UI buttons (or equivalent API calls) for blocked and buildable queue items. This plugin deals with specifically Queue.BlockedItem and Queue.BuildableItem classes which both descend from Queue.NotWaitingItem and follow similar default ordering semantics based on initial scheduling time (per Queue.NotWaitingItem.buildableStartMilliseconds). Healthy Queue items do not normally spend significant time in other life cycle phases, so adding support for their (different) sorting approaches makes little sense.
As a base-line default case, when no explicit desires have been made, it preserves the order of default Jenkins sorter (or a queue sorting plugin that would have been considered previously per registration order) by remembering the originalQueueSorter reference.