public class ReplicationHostAddress
extends java.lang.Object
The ReplicationHostAddress can be used to refer to the current site, or to a remote site in the replication group.
Used in the ReplicationManagerSiteConfig.setAddress
,
ReplicationManagerSiteConfig.getAddress
and the ReplicationManagerSite.getAddress
methods.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
host
The name component of the site address.
|
int |
port
The network port component of the site address.
|
Constructor and Description |
---|
ReplicationHostAddress()
Create a ReplicationHostAddress with default settings.
|
ReplicationHostAddress(java.lang.String host,
int port)
Create a ReplicationHostAddress with user defined host and port information.
|
public int port
public java.lang.String host
public ReplicationHostAddress()
This is likely not what you want. The current default is host: localhost and port 0.
Only use this constructor if you plan to configure the object fields manually after construction.
public ReplicationHostAddress(java.lang.String host, int port)