Package jenkins.advancedqueue
Class PriorityConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- jenkins.advancedqueue.PriorityConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Action
,Describable<GlobalConfiguration>
,ModelObject
,RootAction
,Saveable
,Loadable
,OnMaster
,IconSpec
@Extension public class PriorityConfiguration extends GlobalConfiguration implements RootAction, IconSpec
- Since:
- 2.0
- Author:
- Magnus Sandberg
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description PriorityConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckJobPattern(String value)
void
doPriorityConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
static PriorityConfiguration
get()
String
getDisplayName()
String
getIconClassName()
String
getIconFileName()
JobGroup
getJobGroup(int id)
JobGroup
getJobGroup(PriorityConfigurationCallback priorityCallback, Job<?,?> job)
List<JobGroup>
getJobGroups()
DescriptorExtensionList<JobInclusionStrategy,Descriptor<JobInclusionStrategy>>
getJobInclusionStrategyDescriptors()
ListBoxModel
getPriorities()
PriorityConfigurationCallback
getPriority(Queue.Item item, PriorityConfigurationCallback priorityCallback)
ExtensionList<Descriptor<PriorityStrategy>>
getPriorityStrategyDescriptors()
String
getUrlName()
void
setJobGroups(List<JobGroup> jobGroups)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getIconClassName
public String getIconClassName()
- Specified by:
getIconClassName
in interfaceIconSpec
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classDescriptor<GlobalConfiguration>
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getJobGroup
public JobGroup getJobGroup(int id)
-
getPriorityStrategyDescriptors
public ExtensionList<Descriptor<PriorityStrategy>> getPriorityStrategyDescriptors()
-
getJobInclusionStrategyDescriptors
public DescriptorExtensionList<JobInclusionStrategy,Descriptor<JobInclusionStrategy>> getJobInclusionStrategyDescriptors()
-
getPriorities
public ListBoxModel getPriorities()
-
doPriorityConfigSubmit
public void doPriorityConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
doCheckJobPattern
public FormValidation doCheckJobPattern(@QueryParameter String value) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
getPriority
public PriorityConfigurationCallback getPriority(Queue.Item item, PriorityConfigurationCallback priorityCallback)
-
getJobGroup
@CheckForNull public JobGroup getJobGroup(@NonNull PriorityConfigurationCallback priorityCallback, @NonNull Job<?,?> job)
-
get
public static PriorityConfiguration get()
-
-