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 the
JobRestriction
from Job Restrictions Plugin
making it possible to restrict Node usage based on priority.- Since:
- 3.3
- Author:
- Magnus Sandberg
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTake
(Queue.BuildableItem buildableItem) boolean
int
int
Methods inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
all, allDescriptors, getDescriptor
-
Constructor Details
-
PrioritySorterRestriction
@DataBoundConstructor public PrioritySorterRestriction(int fromPriority, int toPriority)
-
-
Method Details
-
getFromPriority
public int getFromPriority() -
getToPriority
public int getToPriority() -
canTake
- Specified by:
canTake
in classcom.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
-
canTake
- Specified by:
canTake
in classcom.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
-