Class JobPriorityDefn


  • public class JobPriorityDefn
    extends java.lang.Object
    Class to define a rule to diapatch jobs into job queues.
    • Constructor Detail

      • JobPriorityDefn

        public JobPriorityDefn()
    • Method Detail

      • getName

        public java.lang.String getName()
        Get name of job priority map entry.
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
        Set name of job priority map entry.
        Parameters:
        name - - name of the entry
      • getReportCost

        public int getReportCost()
        Get report cost.
        Returns:
        reportCost
      • setReportCost

        public void setReportCost​(int reportCost)
        Set report cost.
        Parameters:
        reportCost - - report cost
      • getRequestType

        public int getRequestType()
        Get job request type. Type is defined in EnumDSSJobRequestType at backend as EnumDSSJobRequestType{ { [hidden] DssJobRequestTypeReserved = -1, DssJobRequestAnyType, DssJobRequestTypeElement, DssJobRequestTypeObject, DssJobRequestTypeReport, DssJobRequestTypeDocument, DssJobRequestBatchRequest } }
        Returns:
        requestType
      • setRequestType

        public void setRequestType​(int requestType)
        Set job request type
        Parameters:
        requestType - - request type
      • getPriority

        public int getPriority()
        Get priority for this entry of job priority map.
        Returns:
        priority
      • setPriority

        public void setPriority​(int priority)
        Set priority.
        Parameters:
        priority - - priority
      • getReportCostUpperLimit

        public int getReportCostUpperLimit()
        Get report cost upper limit for this entry.
        Returns:
        reportCostUpperLimit
      • setReportCostUpperLimit

        public void setReportCostUpperLimit​(int reportCostUpperLimit)
        Set report cost upper limit.
        Parameters:
        reportCostUpperLimit - - report cost upper limit
      • getReportCostLowerLimit

        public int getReportCostLowerLimit()
        Get report cost lower limit.
        Returns:
        reportCostLowerCost
      • setReportCostLowerLimit

        public void setReportCostLowerLimit​(int reportCostLowerLimit)
        Set report cost lower limit
        Parameters:
        reportCostLowerLimit - - report cost lower limit
      • getProjectId

        public java.lang.String getProjectId()
        Get project ID of this entry of job priority map.
        Returns:
        projectId
      • setProjectId

        public void setProjectId​(java.lang.String projectId)
        Set project ID.
        Parameters:
        projectId - - project ID
      • getUserId

        public java.lang.String getUserId()
        Get user object DSSID of this entry. User object can represents a user or a user group.
        Returns:
        userId
      • setUserId

        public void setUserId​(java.lang.String userId)
        Set user object DSSID.
        Parameters:
        userId - - user or user group ID
      • getApplicationType

        public int getApplicationType()
        Get application type. Seems backend uses EnumDSSApplication, which is different from EnumDSSXMLApplicationType with the following value: reserved -1, agent 0 web 1 scheduler 2 custom 3 NCS 9 javaDesktop 21
        Returns:
        appType
      • setApplicationType

        public void setApplicationType​(int type)
        Set application type.
        Parameters:
        type - - application type
      • saveToLeanXML

        protected void saveToLeanXML​(org.w3c.dom.Element elementNode)