Class HealthStrategy
- java.lang.Object
-
- jenkins.advancedqueue.priority.PriorityStrategy
-
- jenkins.advancedqueue.priority.strategy.AbstractStaticPriorityStrategy
-
- jenkins.advancedqueue.priority.strategy.HealthStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<PriorityStrategy>
public class HealthStrategy extends AbstractStaticPriorityStrategy
- Since:
- 2.5
- Author:
- Magnus Sandberg
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HealthStrategy.HealthStrategyDescriptor
-
Nested classes/interfaces inherited from class jenkins.advancedqueue.priority.strategy.AbstractStaticPriorityStrategy
AbstractStaticPriorityStrategy.AbstractStaticPriorityStrategyDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description HealthStrategy(int priority, String selection, String health)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHealth()
String
getSelection()
boolean
isApplicable(Queue.Item item)
Method that checks if strategy can assign a priority to the providedQueue.Item
The caller guaranties that theQueue.Item.task
is aJob
-
Methods inherited from class jenkins.advancedqueue.priority.strategy.AbstractStaticPriorityStrategy
getDescriptor, getPriority, getPriority, numberPrioritiesUpdates, setPriority
-
Methods inherited from class jenkins.advancedqueue.priority.PriorityStrategy
all
-
-
-
-
Method Detail
-
getSelection
public String getSelection()
-
getHealth
public String getHealth()
-
isApplicable
public boolean isApplicable(Queue.Item item)
Description copied from class:PriorityStrategy
Method that checks if strategy can assign a priority to the providedQueue.Item
The caller guaranties that theQueue.Item.task
is aJob
- Specified by:
isApplicable
in classPriorityStrategy
- Parameters:
item
- theQueue.Item
to check- Returns:
true
if thePriorityStrategy
is applicable elsefalse
-
-