public class MCremoteApplication
extends java.lang.Object
This class is used to specify the information required when requesting associations with other applications.
There are two ways to load the information in an instance of this class: from the toolkit's application configuration file (mergecom.app) or dynamically by specifying the required information in the constructor call.
Instances of this class can be used by multiple threads concurrently.
Constructor and Description |
---|
MCremoteApplication(java.lang.String AETitle)
Initializes a new remote application object based on configured values for the host name, port and service list.
|
MCremoteApplication(java.lang.String AETitle,
java.lang.String hostNameOrIP,
int port,
MCproposedContextList services)
Initializes a new dynamic remote application object.
|
MCremoteApplication(java.lang.String AETitle,
java.lang.String hostNameOrIP,
int port,
java.lang.String serviceListName)
Initializes a new dynamic remote application object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAETitle()
Gets the Application Entity Title of the remote application.
|
java.lang.String |
getHostName()
Gets the host name or IP address of the remote application.
|
int |
getPort()
Gets the remote application's port number,
|
MCproposedContextList |
getServices()
Gets the list of services proposed in an association request to the remote application.
|
public MCremoteApplication(java.lang.String AETitle)
AETitle
- The Application Entity Title of the remote application as configured in the mergecom.app file.MCexception
- If the AETitle
parameter is invalid.public MCremoteApplication(java.lang.String AETitle, java.lang.String hostNameOrIP, int port, MCproposedContextList services)
AETitle
- The Application Entity Title of the remote application.hostNameOrIP
- The host name or the IP address of the remote application's.port
- The port number the remote application is listening on.services
- The list of services the toolkit will propose to the remote application when
initiating an association with this remote application.MCexception
- If a parameters is null
or invalid.public MCremoteApplication(java.lang.String AETitle, java.lang.String hostNameOrIP, int port, java.lang.String serviceListName)
AETitle
- The Application Entity Title of the remote application.hostNameOrIP
- The host name or the IP address of the remote application's.port
- The port number the remote application is listening on.serviceListName
- The name of the service list the toolkit will propose to the remote application
when initiating an association with this remote application.public java.lang.String getAETitle()
public java.lang.String getHostName()
public int getPort()
public MCproposedContextList getServices()