Class JobGroup


  • public class JobGroup
    extends Object
    Describes job group for Advanced Queue Sorter.
    Since:
    2.0
    Author:
    Magnus Sandberg, Oleg Nenashev
    • Constructor Detail

      • JobGroup

        @DataBoundConstructor
        public JobGroup()
    • Method Detail

      • getId

        public int getId()
        Returns:
        the id
      • setId

        @DataBoundSetter
        public void setId​(int id)
        Parameters:
        id - the id to set
      • getDescription

        @NonNull
        public String getDescription()
      • setDescription

        @DataBoundSetter
        public void setDescription​(String description)
      • getPriority

        public int getPriority()
        Returns:
        the priority
      • getView

        @Deprecated
        @CheckForNull
        public String getView()
        Deprecated.
        Used in 2.x now replaced with dynamic jobGroupStrategy, will return the view
        Returns:
        the viewName or null if the strategy is not ViewBasedJobInclusionStrategy
      • setPriority

        @DataBoundSetter
        public void setPriority​(int priority)
        Parameters:
        priority - the priority to set
      • setJobGroupStrategy

        @DataBoundSetter
        public void setJobGroupStrategy​(JobInclusionStrategy jobGroupStrategy)
      • isRunExclusive

        public boolean isRunExclusive()
      • setRunExclusive

        @DataBoundSetter
        public void setRunExclusive​(boolean runExclusive)
      • isUsePriorityStrategies

        public boolean isUsePriorityStrategies()
      • setUsePriorityStrategies

        @DataBoundSetter
        public void setUsePriorityStrategies​(boolean usePriorityStrategies)
      • setPriorityStrategies

        @DataBoundSetter
        public void setPriorityStrategies​(List<? extends PriorityStrategy> priorityStrategies)