| 
 | 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.ReplicationManagerSiteConfig
public class ReplicationManagerSiteConfig
Specifies the attributes of a site in the replication group.
| Constructor Summary | |
|---|---|
| ReplicationManagerSiteConfig()An instance created using the default constructor is initialized with the system's default settings. | |
| ReplicationManagerSiteConfig(String host,
                             long port)Configure the host and port for a site in replication group. | |
| Method Summary | |
|---|---|
|  ReplicationHostAddress | getAddress()Return the address of the site. | 
|  boolean | getBootstrapHelper()Return if the site is a helper for the local site. | 
|  boolean | getGroupCreator()Return if the site is a group creator. | 
|  String | getHost()Return the host of the site. | 
|  boolean | getLegacy()Return if the site is in a legacy group. | 
|  boolean | getLocalSite()Return if the site is the local site. | 
|  boolean | getPeer()Return if the site is peer. | 
|  long | getPort()Return the port of the site. | 
|  void | setAddress(ReplicationHostAddress address)Configure the address for a site in replication group. | 
|  void | setBootstrapHelper(boolean helper)Set the site to be a helper site. | 
|  void | setGroupCreator(boolean groupCreator)Set the site to be a group creator. | 
|  void | setHost(String host)Configure the host of the site. | 
|  void | setLegacy(boolean legacy)Specify the site in a legacy group. | 
|  void | setLocalSite(boolean localSite)Set the site to be the local site. | 
|  void | setPeer(boolean peer)Set the site to be peer to local site. | 
|  void | setPort(long port)Configure the port of the site. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ReplicationManagerSiteConfig()
public ReplicationManagerSiteConfig(String host,
                                    long port)
host - port - | Method Detail | 
|---|
public void setAddress(ReplicationHostAddress address)
address - public ReplicationHostAddress getAddress()
public void setHost(String host)
host - public String getHost()
public void setPort(long port)
port - public long getPort()
public void setBootstrapHelper(boolean helper)
A remote site may be used as a helper when the local site first joins the replication group. Once the local site has been established as a member of the group, this config setting is ignored.
helper - If true, the site will be a helper.public boolean getBootstrapHelper()
public void setGroupCreator(boolean groupCreator)
Only the local site could be applied as a group creator. The group creator would create the initial membership database, defining a replication group of just the one site, rather than trying to join an existing group when it starts for the first time.
groupCreator - If true, set the site a group creator.public boolean getGroupCreator()
public void setLegacy(boolean legacy)
legacy - If true, specify the site in a legacy group.public boolean getLegacy()
public void setLocalSite(boolean localSite)
localSite - If true, it is local site.public boolean getLocalSite()
public void setPeer(boolean peer)
A peer site may be used as a target for "client-to-client" synchronization messages. It only makes sense to specify this for a remote site.
peer - If true, it is peer to loca site.public boolean getPeer()
| 
 | Berkeley DB version 5.3.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||