Package cz.mendelu.xotradov
Class SimpleQueueSorter
java.lang.Object
hudson.model.queue.QueueSorter
cz.mendelu.xotradov.SimpleQueueSorter
- All Implemented Interfaces:
ExtensionPoint
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
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
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.queue.QueueSorter
DEFAULT_BLOCKED_ITEM_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidExtension of this class overQueueSorter: a way to sort anyQueue.NotWaitingItem(e.g.Methods inherited from class hudson.model.queue.QueueSorter
all, installDefaultQueueSorter
-
Constructor Details
-
SimpleQueueSorter
-
-
Method Details
-
sortBuildableItems
- Specified by:
sortBuildableItemsin classQueueSorter
-
sortBlockedItems
- Overrides:
sortBlockedItemsin classQueueSorter
-
sortNotWaitingItems
Extension of this class overQueueSorter: a way to sort anyQueue.NotWaitingItem(e.g. covering bothQueue.BlockedItemandQueue.BuildableItem) in the same space of priority desires. -
getSimpleQueueComparator
-