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);
}
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"));
}
Aggregations