Search in sources :

Example 31 with ReplicatedMapService

use of com.hazelcast.replicatedmap.impl.ReplicatedMapService in project hazelcast by hazelcast.

the class AbstractBaseReplicatedRecordStoreTest method setUp.

@Before
public void setUp() {
    HazelcastInstance instance = createHazelcastInstance();
    NodeEngineImpl nodeEngine = getNodeEngineImpl(instance);
    ReplicatedMapService service = new ReplicatedMapService(nodeEngine);
    recordStore = new TestReplicatedRecordStore("recordStore", service, 0);
    recordStoreSameAttributes = new TestReplicatedRecordStore("recordStore", service, 0);
    recordStoreSameAttributes.storageRef.set(recordStore.storageRef.get());
    recordStoreOtherStorage = new TestReplicatedRecordStore("recordStore", service, 0);
    recordStoreOtherName = new TestReplicatedRecordStore("otherRecordStore", service, 0);
}
Also used : NodeEngineImpl(com.hazelcast.spi.impl.NodeEngineImpl) HazelcastInstance(com.hazelcast.core.HazelcastInstance) ReplicatedMapService(com.hazelcast.replicatedmap.impl.ReplicatedMapService) Before(org.junit.Before)

Example 32 with ReplicatedMapService

use of com.hazelcast.replicatedmap.impl.ReplicatedMapService in project hazelcast by hazelcast.

the class TimedMemberStateTest method testReplicatedMapGetStats.

@Test
public void testReplicatedMapGetStats() {
    NodeEngineImpl nodeEngine = getNodeEngineImpl(hz);
    hz.getReplicatedMap("replicatedMap");
    ReplicatedMapService replicatedMapService = nodeEngine.getService(ReplicatedMapService.SERVICE_NAME);
    assertNotNull(replicatedMapService.getStats().get("replicatedMap"));
}
Also used : NodeEngineImpl(com.hazelcast.spi.impl.NodeEngineImpl) ReplicatedMapService(com.hazelcast.replicatedmap.impl.ReplicatedMapService) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test) ParallelTest(com.hazelcast.test.annotation.ParallelTest)

Aggregations

ReplicatedMapService (com.hazelcast.replicatedmap.impl.ReplicatedMapService)32 ReplicatedRecordStore (com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore)17 ILogger (com.hazelcast.logging.ILogger)6 Data (com.hazelcast.nio.serialization.Data)6 ReplicatedMapEventPublishingService (com.hazelcast.replicatedmap.impl.ReplicatedMapEventPublishingService)6 HazelcastInstance (com.hazelcast.core.HazelcastInstance)5 Test (org.junit.Test)5 ReplicatedRecord (com.hazelcast.replicatedmap.impl.record.ReplicatedRecord)4 ParallelTest (com.hazelcast.test.annotation.ParallelTest)4 QuickTest (com.hazelcast.test.annotation.QuickTest)4 Config (com.hazelcast.config.Config)3 NodeEngineImpl (com.hazelcast.spi.impl.NodeEngineImpl)3 SerializationService (com.hazelcast.spi.serialization.SerializationService)3 ArrayList (java.util.ArrayList)3 QueueService (com.hazelcast.collection.impl.queue.QueueService)2 DistributedExecutorService (com.hazelcast.executor.impl.DistributedExecutorService)2 MapService (com.hazelcast.map.impl.MapService)2 MultiMapService (com.hazelcast.multimap.impl.MultiMapService)2 Address (com.hazelcast.nio.Address)2 PartitionContainer (com.hazelcast.replicatedmap.impl.PartitionContainer)2