Class JobPriorityMap


  • public class JobPriorityMap
    extends java.lang.Object
    JobPriorityMap, as part of Job prioritization, models rules to define how a job is dispatched to job queue. Each rule, implemented as JobPriorityDefn, specifies a priority of a job which matches criteria of report cost, project, application type, user or user group, request type.
    • Constructor Detail

    • Method Detail

      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • getDefaultPriority

        public int getDefaultPriority()
      • setDefaultPriority

        public void setDefaultPriority​(int defaultPriority)
      • getReportCostThresholdsCount

        public int getReportCostThresholdsCount()
      • getReportCostThresholds

        public java.util.List<java.lang.Integer> getReportCostThresholds()
      • getReportCostWeights

        public java.util.List<java.lang.Integer> getReportCostWeights()
      • getPriorityDefinitions

        public java.util.List<JobPriorityDefn> getPriorityDefinitions()
      • getItemByName

        public JobPriorityDefn getItemByName​(java.lang.String name)
        Get JobPriorityDefn by name.
        Parameters:
        name - - name of the JobPriorityDefn
        Returns:
        JobPriorityDefn - a rule
      • hasNamedItem

        public boolean hasNamedItem​(java.lang.String name)
        Check if named rule exists.
        Parameters:
        name - - name for checking
        Returns:
        true if found
      • getItemIndexByName

        public int getItemIndexByName​(java.lang.String name)
        Get 0-based index of item by name.
        Parameters:
        name - - name of JobPriorityDefn
        Returns:
        index
      • removeItem

        public void removeItem​(int index)