| 
 | Berkeley DB version 5.3.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.db.ReplicationHostAddress
public class 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 | |
|---|---|
|  String | hostThe name component of the site address. | 
|  int | portThe network port component of the site address. | 
| Constructor Summary | |
|---|---|
| ReplicationHostAddress()Create a ReplicationHostAddress with default settings. | |
| ReplicationHostAddress(String host,
                       int port)Create a ReplicationHostAddress with user defined host and port information. | |
| Method Summary | |
|---|---|
|  boolean | equals(Object o) | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public int port
public String host
| Constructor Detail | 
|---|
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(String host,
                              int port)
| Method Detail | 
|---|
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Object| 
 | Berkeley DB version 5.3.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||