@Extension
@Symbol(value="throttleJobProperty")
public static final class ThrottleJobProperty.DescriptorImpl
extends hudson.model.JobPropertyDescriptor
Constructor and Description |
---|
DescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addThrottledPipelineForCategory(String runId,
String flowNodeId,
String category,
hudson.model.TaskListener listener) |
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doCheckCategoryName(String value) |
hudson.util.FormValidation |
doCheckMaxConcurrentPerNode(String value) |
hudson.util.FormValidation |
doCheckMaxConcurrentTotal(String value) |
hudson.util.ListBoxModel |
doFillCategoryItems() |
List<ThrottleJobProperty.ThrottleCategory> |
getCategories() |
ThrottleJobProperty.ThrottleCategory |
getCategoryByName(String categoryName) |
String |
getDisplayName() |
Map<String,List<String>> |
getThrottledPipelinesForCategory(String category) |
boolean |
isApplicable(Class<? extends hudson.model.Job> jobType) |
boolean |
isMatrixProject(hudson.model.Job job) |
void |
load() |
void |
removeAllFromPipelineRunForCategory(String runId,
String category,
hudson.model.TaskListener listener) |
void |
removeThrottledPipelineForCategory(String runId,
String flowNodeId,
String category,
hudson.model.TaskListener listener) |
void |
save() |
void |
setCategories(List<ThrottleJobProperty.ThrottleCategory> categories) |
all, getPropertyDescriptors, newInstance
addHelpFileRedirect, 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, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
public boolean isApplicable(Class<? extends hudson.model.Job> jobType)
isApplicable
in class hudson.model.JobPropertyDescriptor
public boolean isMatrixProject(hudson.model.Job job)
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
hudson.model.Descriptor.FormException
public hudson.util.FormValidation doCheckCategoryName(@QueryParameter String value)
public hudson.util.FormValidation doCheckMaxConcurrentPerNode(@QueryParameter String value)
public hudson.util.FormValidation doCheckMaxConcurrentTotal(@QueryParameter String value)
public ThrottleJobProperty.ThrottleCategory getCategoryByName(String categoryName)
public void setCategories(List<ThrottleJobProperty.ThrottleCategory> categories)
public List<ThrottleJobProperty.ThrottleCategory> getCategories()
public hudson.util.ListBoxModel doFillCategoryItems()
public void load()
load
in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
public void save()
save
in interface hudson.model.Saveable
save
in class hudson.model.Descriptor<hudson.model.JobProperty<?>>
@Nonnull public Map<String,List<String>> getThrottledPipelinesForCategory(@Nonnull String category)
public void addThrottledPipelineForCategory(@Nonnull String runId, @Nonnull String flowNodeId, @Nonnull String category, hudson.model.TaskListener listener)
public void removeThrottledPipelineForCategory(@Nonnull String runId, @Nonnull String flowNodeId, @Nonnull String category, hudson.model.TaskListener listener)
Copyright © 2016–2020. All rights reserved.