org.cip4.jdflib.util.hotfolder
Class QueueHotFolder

java.lang.Object
  extended by org.cip4.jdflib.util.hotfolder.StorageHotFolder
      extended by org.cip4.jdflib.util.hotfolder.QueueHotFolder

public class QueueHotFolder
extends StorageHotFolder

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

Author:
Rainer Prosi

Field Summary
 
Fields inherited from class org.cip4.jdflib.util.hotfolder.StorageHotFolder
hf, log
 
Constructor Summary
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
 
Method Summary
 QueueHotFolderListener getQueueListener()
           
 String toString()
           
 
Methods inherited from class org.cip4.jdflib.util.hotfolder.StorageHotFolder
addListener, copyCompleted, getHfDirectory, restart, setErrorStorage, setMaxStore, setOKStorage, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 to
ext - the file extensions that are moved - if null no filtering
hfListener - 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
Method Detail

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getQueueListener

public QueueHotFolderListener getQueueListener()
Returns:
the theQueueListener


Copyright © 2013. All Rights Reserved.