public class ReplicationGroup extends Object
ReplicatedEnvironment
or a ReplicationGroupAdmin
.Constructor and Description |
---|
ReplicationGroup(com.sleepycat.je.rep.impl.RepGroupImpl repGroupImpl) |
Modifier and Type | Method and Description |
---|---|
Set<ReplicationNode> |
getArbiterNodes()
Returns the subset of nodes in the group that participates in elections
but does not have a copy of the data and cannot become a master.
|
Set<ReplicationNode> |
getDataNodes()
Returns the subset of nodes in the group that store replication data.
|
Set<ReplicationNode> |
getElectableNodes()
Returns the subset of nodes in the group with replicated environments
that participate in elections and can become masters, ignoring node
priority.
|
ReplicationNode |
getMember(String nodeName)
Get administrative information about a node by its node name.
|
Set<ReplicationNode> |
getMonitorNodes()
Returns the subset of nodes in the group that monitor group membership
but do not maintain replicated environments.
|
String |
getName()
Returns the name associated with the group.
|
Set<ReplicationNode> |
getNodes()
Returns the set of all nodes in the group.
|
com.sleepycat.je.rep.impl.RepGroupImpl |
getRepGroupImpl() |
Set<ReplicationNode> |
getSecondaryNodes()
Returns the subset of nodes in the group with replicated environments
that do not participate in elections and cannot become masters.
|
String |
toString()
Returns a formatted version of the information held in a
ReplicationGroup.
|
public ReplicationGroup(com.sleepycat.je.rep.impl.RepGroupImpl repGroupImpl)
public String getName()
public Set<ReplicationNode> getNodes()
Note that SECONDARY nodes will only be included in the result when this method is called for a replicated environment that is the master.
NodeType
public Set<ReplicationNode> getElectableNodes()
NodeType
public Set<ReplicationNode> getSecondaryNodes()
Note that SECONDARY nodes will only be returned when this method is called for a replicated environment that is the master.
NodeType
public Set<ReplicationNode> getMonitorNodes()
NodeType
public Set<ReplicationNode> getDataNodes()
Note that SECONDARY nodes will only be included in the result when this method is called for a replicated environment that is the master.
NodeType
public Set<ReplicationNode> getArbiterNodes()
NodeType
public ReplicationNode getMember(String nodeName)
Note that SECONDARY nodes will only be returned when this method is called for a replicated environment that is the master.
nodeName
- the node name to be used in the lookuppublic com.sleepycat.je.rep.impl.RepGroupImpl getRepGroupImpl()
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.