Interface WebJobPrioritization

    • Method Detail

      • getName

        java.lang.String getName()
        Get name.
        Returns:
      • setName

        void setName​(java.lang.String name)
        Set name.
        Parameters:
        name - -
      • getPriorityLowerBound

        int getPriorityLowerBound()
        Get priority lower limit.
        Returns:
      • setPriorityLowerBound

        void setPriorityLowerBound​(int lowerBound)
        Set priority lower bound of the queue
        Parameters:
        lowerBound - -
      • getPriorityUpperBound

        int getPriorityUpperBound()
        Get priority upper limit.
        Returns:
      • setPriorityUpperBound

        void setPriorityUpperBound​(int upperBound)
        Set priority upper bound of the queue
        Parameters:
        upperBound - -
      • getPriorityLowBound

        int getPriorityLowBound()
        Get priority low limit.
        Returns:
      • setPriorityLowBound

        void setPriorityLowBound​(int lowBound)
        Set priority low bound of the queue. Obsolete property.
        Parameters:
        lowBound - -
      • getThreadCount

        int getThreadCount()
        Get thread count.
        Returns:
      • setThreadCount

        void setThreadCount​(int threadCount)
        Set thread count.
        Parameters:
        threadCount - -
      • getInitialThreadCount

        int getInitialThreadCount()
        Get initial thread count.
        Returns:
      • setInitialThreadCount

        void setInitialThreadCount​(int initialThreadCount)
        Set initial thread count.
        Parameters:
        initialThreadCount - -
      • getMaxThreadCount

        int getMaxThreadCount()
        Get max thread count.
        Returns:
      • setMaxThreadCount

        void setMaxThreadCount​(int maxThreadCount)
        Set max thread count for this queue.
        Parameters:
        maxThreadCount - -
      • getMinThreadCount

        int getMinThreadCount()
        Get minimal thread count.
        Returns:
      • setMinThreadCount

        void setMinThreadCount​(int minThreadCount)
        Set minimal thread count for this queue.
        Parameters:
        minThreadCount - -
      • getPriorityScheme

        int getPriorityScheme()
        Get Priority scheme, with value defined in (Default = 1, Random = 2).
        Returns:
      • setPriorityScheme

        void setPriorityScheme​(int scheme)
        Set priority scheme.
        Parameters:
        scheme - -
      • getServiceScheme

        int getServiceScheme()
        Get Service scheme, with value defined in (Default = 1, FixedThread = 2, HighestPriorityFirst = 3, WeightedShare = 4).
        Returns:
      • setServiceScheme

        void setServiceScheme​(int serviceScheme)
        Set service scheme.
        Parameters:
        serviceScheme - - backward compatible.
      • getWebJobPrioritizations

        java.util.List<WebJobPrioritization> getWebJobPrioritizations()
        Get list of sub queues which defines job queues by priorities
        Returns:
      • getPriorityMap

        JobPriorityMap getPriorityMap()
        Get job priority map.
        Returns:
      • setPriorityMap

        void setPriorityMap​(JobPriorityMap map)
        Set job priority map.
        Parameters:
        map - - job priority map defining task dispatching rules.
      • getPriorityWeights

        java.util.List<java.lang.Integer> getPriorityWeights()
        Get priority weight.
        Returns:
      • getItemByName

        WebJobPrioritization getItemByName​(java.lang.String name)
        Get sub-queue by name.
        Parameters:
        name - - get sub-queue specified by name.
        Returns:
      • hasNamedItem

        boolean hasNamedItem​(java.lang.String name)
        Check if named sub-queue exists.
        Parameters:
        name - - check if named sub-queue exists.
        Returns:
      • getItemIndexByName

        int getItemIndexByName​(java.lang.String name)
        Get index of named sub-queue.
        Parameters:
        name - - get index of sub-queue specified by name.
        Returns:
      • populateFromLeanXML

        void populateFromLeanXML​(org.w3c.dom.Node jobPrioritizationRoot)
                          throws WebObjectsException
        Populate from DBRole lean XML
        Parameters:
        jobPrioritizationRoot - - Root node of job prioritization tagged "q"
        Throws:
        WebObjectsException
      • saveToLeanXML

        void saveToLeanXML​(org.w3c.dom.Node jobQueues)
                    throws WebObjectsException
        Save this to XML Node specified by the parameter.
        Parameters:
        jobQueues - - org.w3c.dom node to persist this
        Throws:
        WebObjectsException