public class QueueHotFolderListenerImpl extends java.lang.Object implements HotFolderListener
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
QueueHotFolderListenerImpl(QueueHotFolderListener qhfl,
JDFJMF jmf) |
| Modifier and Type | Method and 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) |
public QueueHotFolderListenerImpl(QueueHotFolderListener qhfl, JDFJMF jmf)
qhfl - jmf - the list of commands - if null create submit + resubmitpublic boolean hotFile(java.io.File hotFile)
HotFolderListenerhotFile in interface HotFolderListenerhotFile - HotFolderListener.hotFile(java.io.File)public boolean processSingle(JDFNode jdfRoot, java.io.File hotFile, int iMessage)
jdfRoot - hotFile - iMessage - protected void extractReturnParams(java.lang.String stringURL,
JDFCommand newCommand,
JDFNode jdfRoot)
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 fileprotected void extractSubmitParams(java.lang.String stringURL,
JDFCommand newCommand,
JDFNode jdfRoot)
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 fileprotected void extractResubmitParams(java.lang.String stringURL,
JDFCommand newCommand,
JDFNode jdfRoot)
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 fileprotected java.lang.String getResubmitQueueEntry(JDFNode jdfRoot)
jdfRoot -