|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.apps.WatchFolderAndSend
public class WatchFolderAndSend
A class for watching a folder and sending any DICOM files that appear to a pre-configured network remote Storage SCP AE.
The class has no public methods other than the constructor and a main method that is useful as a utility.
For example:
java -cp ./pixelmed.jar \
com.pixelmed.apps.WatchFolderAndSend \
watchthisfolder \
graytoo 11112 GRAYTOO_DV_11112
or, with a GUI:
java -cp ./pixelmed.jar \
com.pixelmed.apps.WatchFolderAndSend
| Nested Class Summary | |
|---|---|
protected class |
WatchFolderAndSend.OurMultipleInstanceTransferStatusHandlerWithFileName
|
| Field Summary | |
|---|---|
protected static int |
intervalAfterLastModificationWithinWhichDoNotSendFileYet
|
protected static String |
localnameForRemoteAE
|
protected static String |
propertiesFileName
|
protected static String |
propertiesFilePath
|
protected static int |
sleepTimeBetweenCheckingForFolderContent
|
| Constructor Summary | |
|---|---|
WatchFolderAndSend(String watchedFolderName,
String remoteHost,
int remotePort,
String remoteAE,
String localAE,
int verbosityLevel,
int debugLevel,
MessageLogger logger)
Watch a folder and send any DICOM files that appear to a network remote Storage SCP AE. |
|
| Method Summary | |
|---|---|
protected static ApplicationEntity |
getPropertiesEditInDialogAndSave(int debugLevel)
|
static void |
main(String[] arg)
Watch a folder and send any DICOM files that appear to a network remote Storage SCP AE. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int sleepTimeBetweenCheckingForFolderContent
protected static int intervalAfterLastModificationWithinWhichDoNotSendFileYet
protected static String propertiesFileName
protected static String localnameForRemoteAE
protected static String propertiesFilePath
| Constructor Detail |
|---|
public WatchFolderAndSend(String watchedFolderName,
String remoteHost,
int remotePort,
String remoteAE,
String localAE,
int verbosityLevel,
int debugLevel,
MessageLogger logger)
throws DicomException,
DicomNetworkException,
IOException,
InterruptedException
Watch a folder and send any DICOM files that appear to a network remote Storage SCP AE.
Removes files only after successful send attempt, and leaves them and retries if connection or send fails.
Tries not to send files that are still being modified.
Does NOT RECURSE into sub-folders, only processes file in supplied directory itself.
watchedFolderName - remoteHost - remotePort - remoteAE - localAE - verbosityLevel - debugLevel - logger -
DicomException
DicomNetworkException
IOException
InterruptedException| Method Detail |
|---|
protected static ApplicationEntity getPropertiesEditInDialogAndSave(int debugLevel)
public static void main(String[] arg)
Watch a folder and send any DICOM files that appear to a network remote Storage SCP AE.
arg - none if parameters are to be requested through a graphical interface, otherwise an array of 4 to 7 strings - the fully qualified path of the watched folder,
the remote hostname, remote port, and remote AE Title and optionally our AE Title, a verbosity level, and an integer debug level
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||