Class 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
    • Constructor Detail

      • QueueHotFolder

        public QueueHotFolder​(java.io.File _hotFolderDir,
                              java.io.File _storageDir,
                              java.lang.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
      • QueueHotFolder

        public QueueHotFolder​(java.io.File _hotFolderDir,
                              java.io.File _storageDir,
                              java.lang.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 to
        ext - the file extensions that are moved - if null no filtering
        hfListenerImpl -