Package com.sleepycat.db
Class ReplicationHostAddress
java.lang.Object
com.sleepycat.db.ReplicationHostAddress
A simple wrapper class to hold information needed to define
a host in a replication group.
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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a ReplicationHostAddress with default settings.ReplicationHostAddress(String host, int port) Create a ReplicationHostAddress with user defined host and port information. -
Method Summary
-
Field Details
-
port
public int portThe network port component of the site address. -
host
The name component of the site address. Can be a fully qualified name, or a dotted format address in String format.
-
-
Constructor Details
-
ReplicationHostAddress
public ReplicationHostAddress()Create a ReplicationHostAddress with default settings.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.
-
ReplicationHostAddress
Create a ReplicationHostAddress with user defined host and port information.
-
-
Method Details