Class PrioritySorterRestriction
- java.lang.Object
-
- com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
-
- jenkins.advancedqueue.jobrestrictions.PrioritySorterRestriction
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction>
,Serializable
public class PrioritySorterRestriction extends com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
Extends theJobRestriction
from Job Restrictions Plugin making it possible to restrict Node usage based on priority.- Since:
- 3.3
- Author:
- Magnus Sandberg
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrioritySorterRestriction.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description PrioritySorterRestriction(int fromPriority, int toPriority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTake(Queue.BuildableItem buildableItem)
boolean
canTake(Run run)
int
getFromPriority()
int
getToPriority()
-
-
-
Method Detail
-
getFromPriority
public int getFromPriority()
-
getToPriority
public int getToPriority()
-
canTake
public boolean canTake(Queue.BuildableItem buildableItem)
- Specified by:
canTake
in classcom.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
-
canTake
public boolean canTake(Run run)
- Specified by:
canTake
in classcom.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
-
-