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 | Description |
---|---|---|
java.lang.String |
host |
The name component of the site address.
|
int |
port |
The network port component of the site address.
|
Constructor | 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.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
toString() |
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)
host
- the host nameport
- the portCopyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.