use of com.hazelcast.cp.internal.raftop.metadata.RaftServicePreJoinOp in project hazelcast by hazelcast.
the class RaftService method getPreJoinOperation.
@Override
public Operation getPreJoinOperation() {
if (!cpSubsystemEnabled) {
return null;
}
boolean master = nodeEngine.getClusterService().isMaster();
boolean discoveryCompleted = metadataGroupManager.isDiscoveryCompleted();
RaftGroupId metadataGroupId = metadataGroupManager.getMetadataGroupId();
return master ? new RaftServicePreJoinOp(discoveryCompleted, metadataGroupId) : null;
}
Aggregations