public class QueueHotFolderListenerImpl extends 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(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(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(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 String |
getResubmitQueueEntry(JDFNode jdfRoot)
hack: assume that qeid=jobID unless we have a generalID
|
boolean |
hotFile(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,
File hotFile,
int iMessage) |
public QueueHotFolderListenerImpl(QueueHotFolderListener qhfl, JDFJMF jmf)
qhfl - jmf - the list of commands - if null create submit + resubmitpublic boolean hotFile(File hotFile)
HotFolderListenerhotFile in interface HotFolderListenerhotFile - HotFolderListener.hotFile(java.io.File)public boolean processSingle(JDFNode jdfRoot, File hotFile, int iMessage)
jdfRoot - hotFile - iMessage - protected void extractReturnParams(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(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(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 fileCopyright © 2015. All rights reserved.