Package jenkins.branch
Class RateLimitBranchProperty.JobPropertyImpl
- java.lang.Object
-
- hudson.model.JobProperty<Job<?,?>>
-
- jenkins.branch.RateLimitBranchProperty.JobPropertyImpl
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
- Enclosing class:
- RateLimitBranchProperty
public static class RateLimitBranchProperty.JobPropertyImpl extends JobProperty<Job<?,?>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RateLimitBranchProperty.JobPropertyImpl.DescriptorImpl
Our descriptor.-
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 JobPropertyImpl(RateLimitBranchProperty.Throttle throttle)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Gets the maximum builds within the duration.long
getDuration()
Gets the duration.String
getDurationName()
Gets the duration name.long
getMillisecondsBetweenBuilds()
Returns the minimum time between builds required to enforce the throttle.RateLimitBranchProperty.Throttle
getThrottle()
Returns theRateLimitBranchProperty.Throttle
.boolean
isUserBoost()
Gets the user boost setting.-
Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
-
-
-
-
Constructor Detail
-
JobPropertyImpl
@DataBoundConstructor public JobPropertyImpl(RateLimitBranchProperty.Throttle throttle)
Constructor.- Parameters:
throttle
- the throttle.
-
-
Method Detail
-
getCount
public int getCount()
Gets the maximum builds within the duration.- Returns:
- the maximum builds within the duration.
-
getDurationName
public String getDurationName()
Gets the duration name.- Returns:
- the duration name.
-
isUserBoost
public boolean isUserBoost()
Gets the user boost setting.- Returns:
- the user boost setting.
-
getDuration
public long getDuration()
Gets the duration.- Returns:
- the duration.
-
getThrottle
public RateLimitBranchProperty.Throttle getThrottle()
Returns theRateLimitBranchProperty.Throttle
.- Returns:
- the
RateLimitBranchProperty.Throttle
ornull
if there is none.
-
getMillisecondsBetweenBuilds
public long getMillisecondsBetweenBuilds()
Returns the minimum time between builds required to enforce the throttle.- Returns:
- the minimum time between builds required to enforce the throttle.
-
-