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<?,?>>
  • Constructor Details

    • ThrottleJobProperty

      @DataBoundConstructor public ThrottleJobProperty(Integer maxConcurrentPerNode, Integer maxConcurrentTotal, List<String> categories, boolean throttleEnabled, String throttleOption, boolean limitOneJobWithMatchingParams, String paramsToUseForLimit, @CheckForNull ThrottleMatrixProjectOptions matrixOptions)
  • Method Details

    • readResolve

      public Object readResolve()
      Migrates deprecated/obsolete data.
      Returns:
      Migrated version of the config
    • setOwner

      protected void setOwner(Job<?,?> owner)
      Overrides:
      setOwner in class JobProperty<Job<?,?>>
    • getThrottleEnabled

      public boolean getThrottleEnabled()
    • isLimitOneJobWithMatchingParams

      public boolean isLimitOneJobWithMatchingParams()
    • getThrottleOption

      public String getThrottleOption()
    • getCategories

      public List<String> getCategories()
    • 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 throttles MatrixProjects.
      Returns:
      true if MatrixProjects should be throttled
      Since:
      1.8.3
    • isThrottleMatrixConfigurations

      public boolean isThrottleMatrixConfigurations()
      Check if the build throttles MatrixConfigurations.
      Returns:
      true if MatrixRuns should be throttled
      Since:
      1.8.3
    • getParamsToCompare

      public List<String> getParamsToCompare()
    • fetchDescriptor

      public static ThrottleJobProperty.DescriptorImpl fetchDescriptor()