Package org.cip4.jdflib.util.hotfolder
Class QueueHotFolder
java.lang.Object
org.cip4.jdflib.util.hotfolder.StorageHotFolder
org.cip4.jdflib.util.hotfolder.QueueHotFolder
a hotfolder that emulates JMF queue functionality by applying a specific queue submission or queue return message to any file that is dropped into it
-
Constructor Summary
ConstructorsConstructorDescriptionQueueHotFolder(File _hotFolderDir, File _storageDir, String ext, QueueHotFolderListenerImpl hfListenerImpl) new constructo that allows you to override QueueHotFolderListenerImplQueueHotFolder(File _hotFolderDir, File _storageDir, String ext, QueueHotFolderListener hfListener, JDFJMF _queueCommand) constructor for a simple queue based hotfolder watcher that is automagically started in its own thread -
Method Summary
Methods inherited from class org.cip4.jdflib.util.hotfolder.StorageHotFolder
addListener, copyCompleted, copyCompleted, getHfDirectory, getListener, getMaxConcurrent, getRetry, getStabilizeTime, isProcessAux, isSynchronous, restart, setErrorStorage, setMaxAux, setMaxCheck, setMaxConcurrent, setMaxStore, setOKStorage, setProcessAux, setRetry, setStabilizeTime, setSynchronous, stop
-
Constructor Details
-
QueueHotFolder
public QueueHotFolder(File _hotFolderDir, File _storageDir, String ext, QueueHotFolderListener hfListener, JDFJMF _queueCommand) constructor for a simple queue based hotfolder watcher that is automagically started in its own thread- Parameters:
_hotFolderDir- the hot folder directory to watch_storageDir- the storage directory where hot files are moved toext- the file extensions that are moved - if null no filteringhfListener- callback that receives the generated JMF - the location of the stored file will be found in the standard command parameters_queueCommand- the jmf template that will be used to generate a new message, null creates an empty SubmitQueueEntry template
-
QueueHotFolder
public QueueHotFolder(File _hotFolderDir, File _storageDir, String ext, QueueHotFolderListenerImpl hfListenerImpl) new constructo that allows you to override QueueHotFolderListenerImpl- Parameters:
_hotFolderDir- the hot folder directory to watch_storageDir- the storage directory where hot files are moved toext- the file extensions that are moved - if null no filteringhfListenerImpl-
-
-
Method Details
-
toString
- Overrides:
toStringin classStorageHotFolder- See Also:
-
getQueueListener
- Returns:
- the theQueueListener
-