Search in sources :

Example 11 with RaftService

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

the class TriggerLeaderElectionOp method run.

@Override
public void run() {
    RaftService service = getService();
    service.handleTriggerLeaderElection(groupId, request, target);
}
Also used : RaftService(com.hazelcast.cp.internal.RaftService)

Example 12 with RaftService

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

the class VoteResponseOp method run.

@Override
public void run() {
    RaftService service = getService();
    service.handleVoteResponse(groupId, voteResponse, target);
}
Also used : RaftService(com.hazelcast.cp.internal.RaftService)

Example 13 with RaftService

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

the class CreateRaftGroupMessageTask method processMessage.

@Override
protected void processMessage() {
    RaftService service = nodeEngine.getService(RaftService.SERVICE_NAME);
    service.createRaftGroupForProxyAsync(parameters).whenCompleteAsync(this);
}
Also used : RaftService(com.hazelcast.cp.internal.RaftService)

Example 14 with RaftService

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

the class AppendSuccessResponseOp method run.

@Override
public void run() {
    RaftService service = getService();
    service.handleAppendResponse(groupId, appendResponse, target);
}
Also used : RaftService(com.hazelcast.cp.internal.RaftService)

Example 15 with RaftService

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

the class PreVoteResponseOp method run.

@Override
public void run() {
    RaftService service = getService();
    service.handlePreVoteResponse(groupId, voteResponse, target);
}
Also used : RaftService(com.hazelcast.cp.internal.RaftService)

Aggregations

RaftService (com.hazelcast.cp.internal.RaftService)27 RaftGroupId (com.hazelcast.cp.internal.RaftGroupId)4 UuidUtil.newUnsecureUUID (com.hazelcast.internal.util.UuidUtil.newUnsecureUUID)3 NodeEngineImpl (com.hazelcast.spi.impl.NodeEngineImpl)3 PartitionSpecificRunnable (com.hazelcast.spi.impl.PartitionSpecificRunnable)3 OperationServiceImpl (com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl)3 Accessors.getNodeEngineImpl (com.hazelcast.test.Accessors.getNodeEngineImpl)3 Map (java.util.Map)3 UUID (java.util.UUID)3 CountDownLatch (java.util.concurrent.CountDownLatch)3 Test (org.junit.Test)3 CPGroupDestroyedException (com.hazelcast.cp.exception.CPGroupDestroyedException)2 NotLeaderException (com.hazelcast.cp.exception.NotLeaderException)2 MetadataRaftGroupManager (com.hazelcast.cp.internal.MetadataRaftGroupManager)2 RaftInvocationManager (com.hazelcast.cp.internal.RaftInvocationManager)2 RaftOp (com.hazelcast.cp.internal.RaftOp)2 TryLockOp (com.hazelcast.cp.internal.datastructures.lock.operation.TryLockOp)2 ExpireWaitKeysOp (com.hazelcast.cp.internal.datastructures.spi.blocking.operation.ExpireWaitKeysOp)2 RaftNode (com.hazelcast.cp.internal.raft.impl.RaftNode)2 BiTuple (com.hazelcast.internal.util.BiTuple)2