Class JDFQueueEntry

    • Constructor Detail

      • JDFQueueEntry

        public JDFQueueEntry​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                             java.lang.String qualifiedName)
        Constructor for JDFQueueEntry
        Parameters:
        myOwnerDocument -
        qualifiedName -
      • JDFQueueEntry

        public JDFQueueEntry​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                             java.lang.String myNamespaceURI,
                             java.lang.String qualifiedName)
        Constructor for JDFQueueEntry
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
      • JDFQueueEntry

        public JDFQueueEntry​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                             java.lang.String myNamespaceURI,
                             java.lang.String qualifiedName,
                             java.lang.String myLocalName)
        Constructor for JDFQueueEntry
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        myLocalName -
    • Method Detail

      • toString

        public java.lang.String toString()
        toString()
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • setPartMapVector

        public void setPartMapVector​(VJDFAttributeMap vParts)
        set all parts to those define in vParts
        Overrides:
        setPartMapVector in class JDFElement
        Parameters:
        vParts - vector of attribute maps for the parts
      • setPartMap

        public void setPartMap​(JDFAttributeMap mPart)
        set all parts to those defined by mPart
        Overrides:
        setPartMap in class JDFElement
        Parameters:
        mPart - attribute map for the part to set
      • removePartMap

        public void removePartMap​(JDFAttributeMap mPart)
        remove the part defined in mPart
        Overrides:
        removePartMap in class JDFElement
        Parameters:
        mPart - attribute map for the part to remove
      • matchesNodeIdentifier

        public boolean matchesNodeIdentifier​(NodeIdentifier ni)
        return true if this qe matches the input node identifier
        Parameters:
        ni -
        Returns:
      • matchesQueueFilter

        @Deprecated
        public boolean matchesQueueFilter​(JDFQueueFilter filter)
        Deprecated.
        use QueueFilter.matches
        return true if this qe matches the input QueueFilter
        Parameters:
        filter -
        Returns:
      • hasPartMap

        public boolean hasPartMap​(JDFAttributeMap mPart)
        check whether the part defined by mPart is included
        Overrides:
        hasPartMap in class JDFElement
        Parameters:
        mPart - attribute map to look for
        Returns:
        boolean - returns true if the part exists
      • sortQueue

        @Deprecated
        public void sortQueue​(int oldVal)
        Deprecated.
        call JDFQueue.sortChildren()
        sort this into the queue based on current values assumes presorted queue
        Parameters:
        oldVal - - the previous sort value, use -1 to sort from back
      • getNextQueueEntry

        public JDFQueueEntry getNextQueueEntry()
        get the next sibling queueentry
        Returns:
      • getPreviousQueueEntry

        public JDFQueueEntry getPreviousQueueEntry()
        get the previous sibling queueentry
        Returns:
      • getNextStatusVector

        public java.util.Vector<JDFAutoQueueEntry.EnumQueueEntryStatus> getNextStatusVector()
        get the vector of valid next @Status values for this queue entry based on the current status based on the table of valid queue entry transitions
        Returns:
        Vector the vector of valid new stati
      • isCompleted

        public boolean isCompleted()
        Returns:
        true if this entry is completed
        Since:
        110420 removed suspended from the list as suspended is NOT a completed end state
      • getSortPriority

        @Deprecated
        public int getSortPriority()
        Deprecated.
        return a value based on QueueEntryStatus and Priority to sort the queue
        Returns:
        int a priority for sorting - low = back
      • getSortPriority

        @Deprecated
        public static int getSortPriority​(JDFAutoQueueEntry.EnumQueueEntryStatus status,
                                          int priority)
        Deprecated.
        return a value based on QueueEntryStatus and Priority to sort the queue the status is the major order whereas the priority is used to order within regions of identical status
        Parameters:
        status -
        priority -
        Returns:
        int a priority for sorting - low value = back of queue, high value = front of queue
      • setFromJDF

        public void setFromJDF​(JDFNode jdf)
        populates this queuentry with the relevant parameters extracted from a JDF jobid, partmap, jobpartid etc.
        Parameters:
        jdf -
      • compareTo

        public int compareTo​(KElement arg0)
        Specified by:
        compareTo in interface java.lang.Comparable<KElement>
        Parameters:
        arg0 -
        Returns:
        See Also:
        Comparable.compareTo(java.lang.Object)