| 
 | 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.ReplicationManagerSite
public class ReplicationManagerSite
A ReplicationManagerSite handle is used to manage a site in a replication group.
ReplicationManagerSite handles are opened using the Environment.getReplicationManagerSite method.
| Method Summary | |
|---|---|
|  void | close()Close the site. | 
|  ReplicationHostAddress | getAddress()Get the address of the site. | 
|  boolean | getBootstrapHelper()Return if the site is a helper for the local site. | 
|  ReplicationManagerSiteConfig | getConfig()Get the address and configuration of the site. | 
|  int | getEid()Get the environment id of the site. | 
|  boolean | getGroupCreator()Return if the site is a group creator. | 
|  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 to local site. | 
|  void | remove()Remove the site. | 
|  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 | 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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public void close()
           throws DatabaseException
DatabaseException
public ReplicationHostAddress getAddress()
                                  throws DatabaseException
DatabaseException
public ReplicationManagerSiteConfig getConfig()
                                       throws DatabaseException
DatabaseException
public int getEid()
           throws DatabaseException
DatabaseException
public void setBootstrapHelper(boolean helper)
                        throws DatabaseException
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.
DatabaseException
public boolean getBootstrapHelper()
                           throws DatabaseException
DatabaseException
public void setGroupCreator(boolean groupCreator)
                     throws DatabaseException
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 to be a group creator.
DatabaseException
public boolean getGroupCreator()
                        throws DatabaseException
DatabaseException
public void setLegacy(boolean legacy)
               throws DatabaseException
legacy - If true, specify the site in a legacy group.
DatabaseException
public boolean getLegacy()
                  throws DatabaseException
DatabaseException
public void setLocalSite(boolean localSite)
                  throws DatabaseException
localSite - If true, it is local site.
DatabaseException
public boolean getLocalSite()
                     throws DatabaseException
DatabaseException
public void setPeer(boolean peer)
             throws DatabaseException
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.
DatabaseException
public boolean getPeer()
                throws DatabaseException
DatabaseException
public void remove()
            throws DatabaseException
DatabaseException| 
 | Berkeley DB version 5.3.28 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||