|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.apps.SynchronizeFromRemoteSCP
public class SynchronizeFromRemoteSCP
A class for synchronizing the contents of a local database of DICOM objects with a remote SCP.
The class has no public methods other than the constructor and a main method that is useful as a utility. The constructor establishes an association, sends hierarchical C-FIND requests at the STUDY, SERIES and IMAGE levels to determine what is available on the remote AE, then attempts to retrieve anything not present locally at the highest level possible. E.g., if a study is not present, a retrieve of the entire study is requested.
The main method is also useful in its own right as a command-line utility. For example:
java -cp ./pixelmed.jar:./lib/additional/hsqldb.jar:./lib/additional/commons-codec-1.3.jar:./lib/additional/jmdns.jar \
com.pixelmed.apps.SynchronizeFromRemoteSCP \
/tmp/dicomsync/database /tmp/dicomsync \
graytoo 4006 GRAYTOO_DIV_4006 \
11112 US \
1
| Constructor Summary | |
|---|---|
SynchronizeFromRemoteSCP(DatabaseInformationModel databaseInformationModel,
File savedInstancesFolder,
String remoteHost,
int remotePort,
String remoteAE,
int localPort,
String localAE,
int verbosityLevel,
int debugLevel)
Synchronize the contents of a local database of DICOM objects with a remote SCP. |
|
| Method Summary | |
|---|---|
static void |
main(String[] arg)
Synchronize the contents of a local database of DICOM objects with a remote SCP. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizeFromRemoteSCP(DatabaseInformationModel databaseInformationModel,
File savedInstancesFolder,
String remoteHost,
int remotePort,
String remoteAE,
int localPort,
String localAE,
int verbosityLevel,
int debugLevel)
throws DicomException,
DicomNetworkException,
IOException,
InterruptedException
Synchronize the contents of a local database of DICOM objects with a remote SCP.
Queries the remote SCP for everything it has and retrieves all instances not already present in the specified local database.
databaseInformationModel - the local database (will be created if does not already exist)savedInstancesFolder - where to save retrieved instances (must already exist)remoteHost - remotePort - remoteAE - localPort - local port for DICOM listener ... must already be known to remote AElocalAE - local AET for DICOM listener ... must already be known to remote AEverbosityLevel - debugLevel -
DicomException
DicomNetworkException
IOException
InterruptedException| Method Detail |
|---|
public static void main(String[] arg)
Synchronize the contents of a local database of DICOM objects with a remote SCP.
Queries the remote SCP for everything it has and retrieves all instances not already present in the specified local database.
Will register the supplied local AE and port with Bonjour if supported (this is specific to the main() method; the constructor of the class itself does not do this).
arg - array of 7 or 8 strings - the fully qualified path of the database file prefix, the fully qualified path of the saved incoming files folder,
the remote hostname, remote port, and remote AE Title, our port, our AE Title, and optionally a verbosity level, and optionally an integer debug level
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||