use of com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore in project hazelcast by hazelcast.
the class ContainsValueOperation method run.
@Override
public void run() throws Exception {
ReplicatedMapService service = getService();
Collection<ReplicatedRecordStore> stores = service.getAllReplicatedRecordStores(name);
for (ReplicatedRecordStore store : stores) {
if (store.containsValue(value)) {
response = true;
break;
}
}
}
use of com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore in project hazelcast by hazelcast.
the class MergeOperation method run.
@Override
public void run() {
ReplicatedMapService service = getService();
ReplicatedRecordStore recordStore = service.getReplicatedRecordStore(name, true, getPartitionId());
for (ReplicatedMapMergeTypes<Object, Object> mergingEntry : mergingEntries) {
if (recordStore.merge(mergingEntry, mergePolicy)) {
hasMergedValues = true;
}
}
}
use of com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore in project hazelcast by hazelcast.
the class ReplicatedMapAbstractTest method getReplicatedRecord.
@SuppressWarnings("unchecked")
protected <K, V> ReplicatedRecord<K, V> getReplicatedRecord(ReplicatedMap<K, V> map, K key) throws Exception {
ReplicatedMapProxy<K, V> proxy = (ReplicatedMapProxy<K, V>) map;
ReplicatedMapService service = (ReplicatedMapService) REPLICATED_MAP_SERVICE.get(proxy);
ReplicatedRecordStore store = service.getReplicatedRecordStore(map.getName(), false, key);
return store.getReplicatedRecord(key);
}
use of com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore in project hazelcast by hazelcast.
the class ReplicatedMapTtlTest method assertAllTtlSchedulersEmpty.
private static void assertAllTtlSchedulersEmpty(ReplicatedMap map) {
String mapName = map.getName();
ReplicatedMapProxy replicatedMapProxy = (ReplicatedMapProxy) map;
ReplicatedMapService service = (ReplicatedMapService) replicatedMapProxy.getService();
Collection<ReplicatedRecordStore> stores = service.getAllReplicatedRecordStores(mapName);
for (ReplicatedRecordStore store : stores) {
assertTrue(((SecondsBasedEntryTaskScheduler) ((AbstractBaseReplicatedRecordStore) store).getTtlEvictionScheduler()).isEmpty());
}
}
use of com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore in project hazelcast by hazelcast.
the class ClientReplicatedMapTest method assertAllTtlSchedulersEmpty.
private static void assertAllTtlSchedulersEmpty(ReplicatedMap map) {
String mapName = map.getName();
ReplicatedMapProxy replicatedMapProxy = (ReplicatedMapProxy) map;
ReplicatedMapService service = (ReplicatedMapService) replicatedMapProxy.getService();
Collection<ReplicatedRecordStore> stores = service.getAllReplicatedRecordStores(mapName);
for (ReplicatedRecordStore store : stores) {
assertTrue(((SecondsBasedEntryTaskScheduler) ((AbstractBaseReplicatedRecordStore) store).getTtlEvictionScheduler()).isEmpty());
}
}
Aggregations