Class QueueHotFolderListenerImpl

  • All Implemented Interfaces:
    HotFolderListener

    public class QueueHotFolderListenerImpl
    extends java.lang.Object
    implements HotFolderListener
    hot folder listener that submits to a queue
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.logging.Log log  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void extractResubmitParams​(java.lang.String stringURL, JDFCommand newCommand, JDFNode jdfRoot)
      overwrite this method in case you want to customize the hotfolder for submitqueentry and parametrizing the QueueSubmissionParams template is insufficient
      protected void extractReturnParams​(java.lang.String stringURL, JDFCommand newCommand, JDFNode jdfRoot)
      overwrite this method in case you want to customize the hotfolder for returnqueueentryparams and paramtetrizing the ReturnQueueEntryParams template is insufficient
      protected void extractSubmitParams​(java.lang.String stringURL, JDFCommand newCommand, JDFNode jdfRoot)
      overwrite this method in case you want to customize the hotfolder for submitqueentry and parametrizing the QueueSubmissionParams template is insufficient
      protected java.lang.String getResubmitQueueEntry​(JDFNode jdfRoot)
      hack: assume that qeid=jobID unless we have a generalID
      boolean hotFile​(java.io.File hotFile)
      this interface function is called whenever a new or modified file has stabilized in the hotFolder note: make sure to close all streams so that deleting temp files does not fail
      boolean processSingle​(JDFNode jdfRoot, java.io.File hotFile, int iMessage)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        protected final org.apache.commons.logging.Log log
    • Constructor Detail

      • QueueHotFolderListenerImpl

        public QueueHotFolderListenerImpl​(QueueHotFolderListener qhfl,
                                          JDFJMF jmf)
        Parameters:
        qhfl -
        jmf - the list of commands - if null create submit + resubmit
    • Method Detail

      • hotFile

        public boolean hotFile​(java.io.File hotFile)
        Description copied from interface: HotFolderListener
        this interface function is called whenever a new or modified file has stabilized in the hotFolder note: make sure to close all streams so that deleting temp files does not fail
        Specified by:
        hotFile in interface HotFolderListener
        Parameters:
        hotFile -
        Returns:
        true if all went well, else false
        See Also:
        HotFolderListener.hotFile(java.io.File)
      • processSingle

        public boolean processSingle​(JDFNode jdfRoot,
                                     java.io.File hotFile,
                                     int iMessage)
        Parameters:
        jdfRoot -
        hotFile -
        iMessage -
        Returns:
      • extractReturnParams

        protected void extractReturnParams​(java.lang.String stringURL,
                                           JDFCommand newCommand,
                                           JDFNode jdfRoot)
        overwrite this method in case you want to customize the hotfolder for returnqueueentryparams and paramtetrizing the ReturnQueueEntryParams template is insufficient
        Parameters:
        stringURL - the file url of the hotfolder jdf in the local storage directory (NOT the hf)
        newCommand - the command that was generated from the template
        jdfRoot - the root jdf node of the dropped file
      • extractSubmitParams

        protected void extractSubmitParams​(java.lang.String stringURL,
                                           JDFCommand newCommand,
                                           JDFNode jdfRoot)
        overwrite this method in case you want to customize the hotfolder for submitqueentry and parametrizing the QueueSubmissionParams template is insufficient
        Parameters:
        stringURL - the file url of the hotfolder jdf in the local storage directory (NOT the hf)
        newCommand - the command that was generated from the template
        jdfRoot - the root jdfnode of the dropped file
      • extractResubmitParams

        protected void extractResubmitParams​(java.lang.String stringURL,
                                             JDFCommand newCommand,
                                             JDFNode jdfRoot)
        overwrite this method in case you want to customize the hotfolder for submitqueentry and parametrizing the QueueSubmissionParams template is insufficient
        Parameters:
        stringURL - the file url of the hotfolder jdf in the local storage directory (NOT the hf)
        newCommand - the command that was generated from the template
        jdfRoot - the root jdfnode of the dropped file
      • getResubmitQueueEntry

        protected java.lang.String getResubmitQueueEntry​(JDFNode jdfRoot)
        hack: assume that qeid=jobID unless we have a generalID
        Parameters:
        jdfRoot -
        Returns: