|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.util.hotfolder.StorageHotFolder
public class StorageHotFolder
a hotfolder that handles storage of "hotfolded" data
| Field Summary | |
|---|---|
protected HotFolder |
hf
|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final HotFolder hf
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
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 parameters| Method Detail |
|---|
public 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 folder
public 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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||