Class ThrottleJobProperty.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<JobProperty<?>>
-
- hudson.model.JobPropertyDescriptor
-
- hudson.plugins.throttleconcurrents.ThrottleJobProperty.DescriptorImpl
-
- Enclosing class:
- ThrottleJobProperty
@Extension @Symbol("throttleJobProperty") public static final class ThrottleJobProperty.DescriptorImpl extends JobPropertyDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
-
Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors, newInstance
-
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, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<JobProperty<?>>
-
isApplicable
public boolean isApplicable(Class<? extends Job> jobType)
- Overrides:
isApplicable
in classJobPropertyDescriptor
-
isMatrixProject
public boolean isMatrixProject(Job<?,?> job)
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<JobProperty<?>>
- Throws:
Descriptor.FormException
-
doCheckCategoryName
public FormValidation doCheckCategoryName(@QueryParameter String value)
-
doCheckMaxConcurrentPerNode
public FormValidation doCheckMaxConcurrentPerNode(@QueryParameter String value)
-
doCheckMaxConcurrentTotal
public FormValidation doCheckMaxConcurrentTotal(@QueryParameter String value)
-
getCategoryByName
public ThrottleJobProperty.ThrottleCategory getCategoryByName(String categoryName)
-
setCategories
public void setCategories(List<ThrottleJobProperty.ThrottleCategory> categories)
-
getCategories
public List<ThrottleJobProperty.ThrottleCategory> getCategories()
-
doFillCategoryItems
public ListBoxModel doFillCategoryItems(@AncestorInPath Item item)
-
load
public void load()
- Overrides:
load
in classDescriptor<JobProperty<?>>
-
save
public void save()
- Specified by:
save
in interfaceSaveable
- Overrides:
save
in classDescriptor<JobProperty<?>>
-
getThrottledPipelinesForCategory
@NonNull public Map<String,List<String>> getThrottledPipelinesForCategory(@NonNull String category)
-
addThrottledPipelineForCategory
public void addThrottledPipelineForCategory(@NonNull String runId, @NonNull String flowNodeId, @NonNull String category, TaskListener listener)
-
removeThrottledPipelineForCategory
public void removeThrottledPipelineForCategory(@NonNull String runId, @NonNull String flowNodeId, @NonNull String category, TaskListener listener)
-
removeAllFromPipelineRunForCategory
public void removeAllFromPipelineRunForCategory(@NonNull String runId, @NonNull String category, TaskListener listener)
-
-