public class ReplicationManagerSite
extends java.lang.Object
Environment.getReplicationManagerSite
method.Modifier and Type | Method | Description |
---|---|---|
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.
|
public void close() throws DatabaseException
DatabaseException
- if a failure occurs.public ReplicationHostAddress getAddress() throws DatabaseException
DatabaseException
- if a failure occurs.public ReplicationManagerSiteConfig getConfig() throws DatabaseException
DatabaseException
- if a failure occurs.public int getEid() throws DatabaseException
DatabaseException
- if a failure occurs.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
- if a failure occurs.public boolean getBootstrapHelper() throws DatabaseException
DatabaseException
- if a failure occurs.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
- if a failure occurs.public boolean getGroupCreator() throws DatabaseException
DatabaseException
- if a failure occurs.public void setLegacy(boolean legacy) throws DatabaseException
legacy
- If true, specify the site in a legacy group.DatabaseException
- if a failure occurs.public boolean getLegacy() throws DatabaseException
DatabaseException
- if a failure occurs.public void setLocalSite(boolean localSite) throws DatabaseException
localSite
- If true, it is local site.DatabaseException
- if a failure occurs.public boolean getLocalSite() throws DatabaseException
DatabaseException
- if a failure occurs.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
- if a failure occurs.public boolean getPeer() throws DatabaseException
DatabaseException
- if a failure occurs.public void remove() throws DatabaseException
DatabaseException
- if a failure occurs.Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.