Search in sources :

Example 1 with TestFragmentIncrementOperation

use of com.hazelcast.internal.partition.service.fragment.TestFragmentIncrementOperation in project hazelcast by hazelcast.

the class PartitionCorrectnessTestSupport method fillData.

void fillData(HazelcastInstance hz) {
    NodeEngine nodeEngine = getNode(hz).nodeEngine;
    OperationService operationService = nodeEngine.getOperationService();
    for (int i = 0; i < partitionCount; i++) {
        operationService.invokeOnPartition(null, new TestIncrementOperation(), i);
        for (String name : NAMESPACES) {
            operationService.invokeOnPartition(null, new TestFragmentIncrementOperation(name), i);
        }
    }
}
Also used : NodeEngine(com.hazelcast.spi.impl.NodeEngine) TestIncrementOperation(com.hazelcast.internal.partition.service.TestIncrementOperation) TestFragmentIncrementOperation(com.hazelcast.internal.partition.service.fragment.TestFragmentIncrementOperation) OperationService(com.hazelcast.spi.impl.operationservice.OperationService)

Aggregations

TestIncrementOperation (com.hazelcast.internal.partition.service.TestIncrementOperation)1 TestFragmentIncrementOperation (com.hazelcast.internal.partition.service.fragment.TestFragmentIncrementOperation)1 NodeEngine (com.hazelcast.spi.impl.NodeEngine)1 OperationService (com.hazelcast.spi.impl.operationservice.OperationService)1