Package com.pixelmed.network
Class NetworkConfigurationFromMulticastDNS
- java.lang.Object
-
- com.pixelmed.network.NetworkConfigurationSource
-
- com.pixelmed.network.NetworkConfigurationFromMulticastDNS
-
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:
- DNS Self-Discovery (aka. Apple's Bonjour)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classNetworkConfigurationFromMulticastDNS.OurJmDNSServiceListener-
Nested classes/interfaces inherited from class com.pixelmed.network.NetworkConfigurationSource
NetworkConfigurationSource.DumpNetworkApplicationInformation
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.jmdns.JmDNSjmDNS-
Fields inherited from class com.pixelmed.network.NetworkConfigurationSource
debugLevel, DefaultDumpInfoInterval, DefaultSourceRefreshInterval, dumper, timer
-
-
Constructor Summary
Constructors Constructor Description NetworkConfigurationFromMulticastDNS(int debugLevel)Construct an instance capable of handling dynamic configuration information but do not start anything yet.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateDiscovery(int refreshInterval)Start DNS Self-Discovery, if possible.voiddeActivateDiscovery()Stop DNS Self-Discovery.static voidmain(java.lang.String[] arg)Utility that activates a dynamic configuration listener and dumps its contents periodically.voidregisterDicomService(java.lang.String calledApplicationEntityTitle, int port, java.lang.String primaryDeviceType)Register a DICOM service on the local host.voidregisterWADOService(java.lang.String instanceName, int port, java.lang.String path)Register a WADO service on the local host.voidunregisterAllServices()Unregister all services that have been registered.-
Methods inherited from class com.pixelmed.network.NetworkConfigurationSource
activateDiscovery, activateDumper, activateDumper, close, deActivateDumper, getNetworkApplicationInformation
-
-
-
-
Method Detail
-
activateDiscovery
public void activateDiscovery(int refreshInterval)
Start DNS Self-Discovery, if possible.
Requires
javax.jmdnspackage to be in class path.- Specified by:
activateDiscoveryin classNetworkConfigurationSource- Parameters:
refreshInterval- is ignored completely, since DNS-SD over mDNS is asynchronous
-
deActivateDiscovery
public void deActivateDiscovery()
Stop DNS Self-Discovery.
- Specified by:
deActivateDiscoveryin classNetworkConfigurationSource
-
unregisterAllServices
public void unregisterAllServices()
Unregister all services that have been registered.
-
registerDicomService
public void registerDicomService(java.lang.String calledApplicationEntityTitle, int port, java.lang.String primaryDeviceType)Register a DICOM service on the local host.
- Parameters:
calledApplicationEntityTitle- the AET of the DICOM serviceport- the port that the service listens onprimaryDeviceType- the primaryDeviceType, or null if none
-
registerWADOService
public void registerWADOService(java.lang.String instanceName, int port, java.lang.String path)Register a WADO service on the local host.
- Parameters:
instanceName- the instance name for the serviceport- the port that the service listens onpath- the path TXT parameter of the http service
-
main
public static void main(java.lang.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.
- Parameters:
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 primaryDeviceType
-
-