public class NetworkConfigurationFromMulticastDNS extends NetworkConfigurationSource
This class provides a dynamic registry of DICOM network parameters possibly federated from various sources.
Supported sources of information include:
| Modifier and Type | Class and Description |
|---|---|
protected class |
NetworkConfigurationFromMulticastDNS.OurJmDNSServiceListener |
NetworkConfigurationSource.DumpNetworkApplicationInformation| Modifier and Type | Field and Description |
|---|---|
protected javax.jmdns.JmDNS |
jmDNS |
DefaultDumpInfoInterval, DefaultSourceRefreshInterval, dumper, timer| Constructor and Description |
|---|
NetworkConfigurationFromMulticastDNS()
Construct an instance capable of handling dynamic configuration information but do not start anything yet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateDiscovery(int refreshInterval)
Start DNS Self-Discovery, if possible.
|
void |
deActivateDiscovery()
Stop DNS Self-Discovery.
|
static void |
main(String[] arg)
Utility that activates a dynamic configuration listener and dumps its contents periodically.
|
void |
registerDicomService(String calledApplicationEntityTitle,
int port,
String primaryDeviceType)
Register a DICOM service on the local host.
|
void |
registerWADOService(String instanceName,
int port,
String path)
Register a WADO service on the local host.
|
void |
unregisterAllServices()
Unregister all services that have been registered.
|
activateDiscovery, activateDumper, activateDumper, close, deActivateDumper, getNetworkApplicationInformationpublic NetworkConfigurationFromMulticastDNS()
Construct an instance capable of handling dynamic configuration information but do not start anything yet.
public void activateDiscovery(int refreshInterval)
Start DNS Self-Discovery, if possible.
Requires javax.jmdns package to be in class path.
activateDiscovery in class NetworkConfigurationSourcerefreshInterval - is ignored completely, since DNS-SD over mDNS is asynchronouspublic void deActivateDiscovery()
Stop DNS Self-Discovery.
deActivateDiscovery in class NetworkConfigurationSourcepublic static void main(String[] arg)
Utility that activates a dynamic configuration listener and dumps its contents periodically.
Additionally, will register a DICOM service on the local machine, if parameters of that service are supplied.
arg - 2 or 3 arguments if a service is to be registered, the AET of the DICOM service,the port that the service listens on, and optionally the primaryDeviceTypepublic void registerDicomService(String calledApplicationEntityTitle, int port, String primaryDeviceType)
Register a DICOM service on the local host.
calledApplicationEntityTitle - the AET of the DICOM serviceport - the port that the service listens onprimaryDeviceType - the primaryDeviceType, or null if nonepublic void registerWADOService(String instanceName, int port, String path)
Register a WADO service on the local host.
instanceName - the instance name for the serviceport - the port that the service listens onpath - the path TXT parameter of the http servicepublic void unregisterAllServices()
Unregister all services that have been registered.