Search in sources :

Example 1 with RaftServicePreJoinOp

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;
}
Also used : RaftServicePreJoinOp(com.hazelcast.cp.internal.raftop.metadata.RaftServicePreJoinOp)

Aggregations

RaftServicePreJoinOp (com.hazelcast.cp.internal.raftop.metadata.RaftServicePreJoinOp)1