Search in sources :

Example 1 with ClusterServiceImpl

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);
    }
}
Also used : Node(com.hazelcast.instance.Node) ClusterServiceImpl(com.hazelcast.cluster.impl.ClusterServiceImpl)

Aggregations

ClusterServiceImpl (com.hazelcast.cluster.impl.ClusterServiceImpl)1 Node (com.hazelcast.instance.Node)1