Class AbstractStaticPriorityStrategy
- java.lang.Object
-
- jenkins.advancedqueue.priority.PriorityStrategy
-
- jenkins.advancedqueue.priority.strategy.AbstractStaticPriorityStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<PriorityStrategy>
- Direct Known Subclasses:
CLICauseStrategy
,HealthStrategy
,UserIdCauseStrategy
public abstract class AbstractStaticPriorityStrategy extends PriorityStrategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractStaticPriorityStrategy.AbstractStaticPriorityStrategyDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description AbstractStaticPriorityStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor<PriorityStrategy>
getDescriptor()
int
getPriority()
int
getPriority(Queue.Item item)
Method that that return the priority that should be used for thisQueue.Item
, this method is only called idPriorityStrategy.isApplicable(Queue.Item)
returned true The caller garanties that theQueue.Item.task
is aJob
void
numberPrioritiesUpdates(int oldNumberOfPriorities, int newNumberOfPriorities)
void
setPriority(int priority)
-
Methods inherited from class jenkins.advancedqueue.priority.PriorityStrategy
all, isApplicable
-
-
-
-
Method Detail
-
getDescriptor
public Descriptor<PriorityStrategy> getDescriptor()
-
numberPrioritiesUpdates
public void numberPrioritiesUpdates(int oldNumberOfPriorities, int newNumberOfPriorities)
- Specified by:
numberPrioritiesUpdates
in classPriorityStrategy
-
getPriority
public int getPriority()
-
setPriority
public void setPriority(int priority)
-
getPriority
public int getPriority(Queue.Item item)
Description copied from class:PriorityStrategy
Method that that return the priority that should be used for thisQueue.Item
, this method is only called idPriorityStrategy.isApplicable(Queue.Item)
returned true The caller garanties that theQueue.Item.task
is aJob
- Specified by:
getPriority
in classPriorityStrategy
- Parameters:
item
- theQueue.Item
to check- Returns:
- the priority to be used by the provided
Queue.Item
-
-