Search in sources :

Example 1 with MetadataRaftGroupManager

use of com.hazelcast.cp.internal.MetadataRaftGroupManager in project hazelcast by hazelcast.

the class MetadataRaftGroupOp method run.

@Override
public final Object run(CPGroupId groupId, long commitIndex) throws Exception {
    RaftService service = getService();
    MetadataRaftGroupManager metadataGroupManager = service.getMetadataGroupManager();
    checkTrue(metadataGroupManager.getMetadataGroupId().equals(groupId), "Cannot perform CP Subsystem management call on " + groupId);
    return run(metadataGroupManager, commitIndex);
}
Also used : MetadataRaftGroupManager(com.hazelcast.cp.internal.MetadataRaftGroupManager) RaftService(com.hazelcast.cp.internal.RaftService)

Example 2 with MetadataRaftGroupManager

use of com.hazelcast.cp.internal.MetadataRaftGroupManager in project hazelcast by hazelcast.

the class RaftServicePreJoinOp method run.

@Override
public void run() {
    RaftService service = getService();
    MetadataRaftGroupManager metadataGroupManager = service.getMetadataGroupManager();
    metadataGroupManager.handleMetadataGroupId(metadataGroupId);
    if (discoveryCompleted) {
        metadataGroupManager.disableDiscovery();
    }
}
Also used : MetadataRaftGroupManager(com.hazelcast.cp.internal.MetadataRaftGroupManager) RaftService(com.hazelcast.cp.internal.RaftService)

Aggregations

MetadataRaftGroupManager (com.hazelcast.cp.internal.MetadataRaftGroupManager)2 RaftService (com.hazelcast.cp.internal.RaftService)2