Class MultiBucketStrategy
- java.lang.Object
-
- jenkins.advancedqueue.sorter.SorterStrategy
-
- jenkins.advancedqueue.sorter.strategy.MultiBucketStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<SorterStrategy>
- Direct Known Subclasses:
AbsoluteStrategy
,FQBaseStrategy
public abstract class MultiBucketStrategy extends SorterStrategy
Implements a strategy with multiple buckets.- Since:
- 2.0
- Author:
- Oleg Nenashev
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiBucketStrategy.MultiBucketStrategyDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PRIORITIES_NUMBER
static int
DEFAULT_PRIORITY
-
Constructor Summary
Constructors Constructor Description MultiBucketStrategy()
MultiBucketStrategy(int numberOfPriorities, int defaultPriority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBoxModel
doFillDefaultPriorityItems()
int
getDefaultPriority()
Gets a default priority bucket to be used.int
getNumberOfPriorities()
Gets number of priority buckets to be used.-
Methods inherited from class jenkins.advancedqueue.sorter.SorterStrategy
all, getAllSorterStrategies, getDescriptor, getPrioritySorterStrategy, getSorterStrategy, onCanceledItem, onNewItem, onStartedItem
-
-
-
-
Field Detail
-
DEFAULT_PRIORITIES_NUMBER
public static final int DEFAULT_PRIORITIES_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNumberOfPriorities
public final int getNumberOfPriorities()
Description copied from class:SorterStrategy
Gets number of priority buckets to be used.- Specified by:
getNumberOfPriorities
in classSorterStrategy
-
getDefaultPriority
public final int getDefaultPriority()
Description copied from class:SorterStrategy
Gets a default priority bucket to be used.- Specified by:
getDefaultPriority
in classSorterStrategy
-
doFillDefaultPriorityItems
public ListBoxModel doFillDefaultPriorityItems()
-
-