Class ThrottleJobProperty
- java.lang.Object
-
- hudson.model.JobProperty<Job<?,?>>
-
- hudson.plugins.throttleconcurrents.ThrottleJobProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
public class ThrottleJobProperty extends JobProperty<Job<?,?>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThrottleJobProperty.DescriptorImpl
static class
ThrottleJobProperty.NodeLabeledPair
static class
ThrottleJobProperty.ThrottleCategory
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.JobProperty
owner
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description ThrottleJobProperty(Integer maxConcurrentPerNode, Integer maxConcurrentTotal, List<String> categories, boolean throttleEnabled, String throttleOption, boolean limitOneJobWithMatchingParams, String paramsToUseForLimit, ThrottleMatrixProjectOptions matrixOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThrottleJobProperty.DescriptorImpl
fetchDescriptor()
List<String>
getCategories()
ThrottleMatrixProjectOptions
getMatrixOptions()
Integer
getMaxConcurrentPerNode()
Integer
getMaxConcurrentTotal()
List<String>
getParamsToCompare()
String
getParamsToUseForLimit()
boolean
getThrottleEnabled()
String
getThrottleOption()
boolean
isLimitOneJobWithMatchingParams()
boolean
isThrottleMatrixBuilds()
Check if the build throttlesMatrixProject
s.boolean
isThrottleMatrixConfigurations()
Check if the build throttlesMatrixConfiguration
s.Object
readResolve()
Migrates deprecated/obsolete data.protected void
setOwner(Job<?,?> owner)
-
Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure
-
-
-
-
Constructor Detail
-
ThrottleJobProperty
@DataBoundConstructor public ThrottleJobProperty(Integer maxConcurrentPerNode, Integer maxConcurrentTotal, List<String> categories, boolean throttleEnabled, String throttleOption, boolean limitOneJobWithMatchingParams, String paramsToUseForLimit, @CheckForNull ThrottleMatrixProjectOptions matrixOptions)
-
-
Method Detail
-
readResolve
public Object readResolve()
Migrates deprecated/obsolete data.- Returns:
- Migrated version of the config
-
setOwner
protected void setOwner(Job<?,?> owner)
- Overrides:
setOwner
in classJobProperty<Job<?,?>>
-
getThrottleEnabled
public boolean getThrottleEnabled()
-
isLimitOneJobWithMatchingParams
public boolean isLimitOneJobWithMatchingParams()
-
getThrottleOption
public String getThrottleOption()
-
getMaxConcurrentPerNode
public Integer getMaxConcurrentPerNode()
-
getMaxConcurrentTotal
public Integer getMaxConcurrentTotal()
-
getParamsToUseForLimit
public String getParamsToUseForLimit()
-
getMatrixOptions
@CheckForNull public ThrottleMatrixProjectOptions getMatrixOptions()
-
isThrottleMatrixBuilds
public boolean isThrottleMatrixBuilds()
Check if the build throttlesMatrixProject
s.- Returns:
true
ifMatrixProject
s should be throttled- Since:
- 1.8.3
-
isThrottleMatrixConfigurations
public boolean isThrottleMatrixConfigurations()
Check if the build throttlesMatrixConfiguration
s.- Returns:
true
ifMatrixRun
s should be throttled- Since:
- 1.8.3
-
fetchDescriptor
public static ThrottleJobProperty.DescriptorImpl fetchDescriptor()
-
-