use of com.sleepycat.je.rep.ReplicationGroup in project qpid-broker-j by apache.
the class ReplicatedEnvironmentFacade method populateExistingRemoteReplicationNodes.
private void populateExistingRemoteReplicationNodes() {
try {
ReplicationGroup group = getEnvironment().getGroup();
Set<ReplicationNode> nodes = new HashSet<>(group.getElectableNodes());
String localNodeName = getNodeName();
for (ReplicationNode replicationNode : nodes) {
String discoveredNodeName = replicationNode.getName();
if (!discoveredNodeName.equals(localNodeName)) {
_remoteReplicationNodes.put(replicationNode.getName(), replicationNode);
}
}
} catch (RuntimeException e) {
// should never happen
handleDatabaseException("Exception on discovery of existing nodes", e);
}
}
Aggregations