use of com.hazelcast.cp.internal.raftop.metadata.CreateRaftNodeOp in project hazelcast by hazelcast.
the class RaftInvocationManager method triggerRaftNodeCreation.
void triggerRaftNodeCreation(CPGroupSummary group) {
for (CPMember groupMember : group.members()) {
if (groupMember.equals(raftService.getLocalCPMember())) {
ExecutionService executionService = nodeEngine.getExecutionService();
executionService.execute(CP_SUBSYSTEM_EXECUTOR, () -> raftService.createRaftNode(group.id(), group.initialMembers()));
} else {
Operation op = new CreateRaftNodeOp(group.id(), group.initialMembers());
OperationService operationService = nodeEngine.getOperationService();
operationService.send(op, groupMember.getAddress());
}
}
}
Aggregations