Package org.cip4.jdflib.util.hotfolder
Class QueueHotFolderListenerImpl
java.lang.Object
org.cip4.jdflib.util.hotfolder.QueueHotFolderListenerImpl
- All Implemented Interfaces:
HotFolderListener
hot folder listener that submits to a queue
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextractResubmitParams(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 insufficientprotected voidextractReturnParams(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 insufficientprotected voidextractSubmitParams(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 insufficientprotected StringgetResubmitQueueEntry(JDFNode jdfRoot) hack: assume that qeid=jobID unless we have a generalIDbooleanthis 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 failbooleanprocessSingle(JDFNode jdfRoot, File hotFile, int iMessage)
-
Field Details
-
log
protected final org.apache.commons.logging.Log log
-
-
Constructor Details
-
QueueHotFolderListenerImpl
- Parameters:
qhfl-jmf- the list of commands - if null create submit + resubmit
-
-
Method Details
-
hotFile
Description copied from interface:HotFolderListenerthis 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:
hotFilein interfaceHotFolderListener- Parameters:
hotFile-- Returns:
- true if all went well, else false
- See Also:
-
processSingle
- Parameters:
jdfRoot-hotFile-iMessage-- Returns:
-
extractReturnParams
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 templatejdfRoot- the root jdf node of the dropped file
-
extractSubmitParams
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 templatejdfRoot- the root jdfnode of the dropped file
-
extractResubmitParams
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 templatejdfRoot- the root jdfnode of the dropped file
-
getResubmitQueueEntry
hack: assume that qeid=jobID unless we have a generalID- Parameters:
jdfRoot-- Returns:
-