public class StorageHotFolder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HotFolder |
hf |
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
StorageHotFolder(File _hotFolderDir,
File storageDir,
String ext,
HotFolderListener hfListener)
constructor for a simple queue based hotfolder watcher that is automagically started in its own thread
|
| Modifier and Type | Method and Description |
|---|---|
org.cip4.jdflib.util.hotfolder.StorageHotFolderListener |
addListener(HotFolderListener _hfl,
String ext)
add a listener that also stores
|
void |
copyCompleted(File storedFile,
boolean ok)
copy any files to the ok or error files as set by the folder properties
|
File |
getHfDirectory() |
void |
restart()
restart this hot folder, create s a new listner thread and stops the old one
|
void |
setErrorStorage(File error)
set the directory for error done
|
void |
setMaxStore(int maxStore)
Setter for maxStore attribute.
|
void |
setOKStorage(File ok)
set the directory for successful done
|
void |
stop()
stop this hot folder
|
protected final HotFolder hf
protected final org.apache.commons.logging.Log log
public StorageHotFolder(File _hotFolderDir, File storageDir, String ext, HotFolderListener hfListener)
_hotFolderDir - the hot folder directory to watchstorageDir - the storage directory where hot files are moved toext - the comma separated list of 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 parameterspublic File getHfDirectory()
public void stop()
public void restart()
public org.cip4.jdflib.util.hotfolder.StorageHotFolderListener addListener(HotFolderListener _hfl, String ext)
_hfl - ext - public void setOKStorage(File ok)
ok - the local directory for ok files in the input hot folderpublic void copyCompleted(File storedFile, boolean ok)
storedFile - ok - public void setErrorStorage(File error)
error - the local directory for error files in the input hot folderpublic void setMaxStore(int maxStore)
maxStore - the maxStore to setCopyright © 2015. All rights reserved.