use of com.hazelcast.cluster.impl.ClusterServiceImpl in project orientdb by orientechnologies.
the class ServerRun method rejoin.
public void rejoin(final ServerRun... serverIds) {
final Node currentNode = getHazelcastNode(((OHazelcastPlugin) server.getDistributedManager()).getHazelcastInstance());
for (ServerRun s : serverIds) {
final Node otherNode = getHazelcastNode(((OHazelcastPlugin) s.server.getDistributedManager()).getHazelcastInstance());
final ClusterServiceImpl clusterService = currentNode.getClusterService();
clusterService.merge(otherNode.address);
}
}
Aggregations