use of com.hazelcast.internal.nearcache.impl.DefaultNearCache in project hazelcast by hazelcast.
the class MemberMapRecordStateStressTest method assertFinalRecordStateIsReadPermitted.
private void assertFinalRecordStateIsReadPermitted(HazelcastInstance member, NearCache nearCache) {
InternalSerializationService ss = getSerializationService(member);
DefaultNearCache unwrap = (DefaultNearCache) nearCache.unwrap(DefaultNearCache.class);
for (int i = 0; i < KEY_SPACE; i++) {
Data key = ss.toData(i);
AbstractNearCacheRecordStore nearCacheRecordStore = (AbstractNearCacheRecordStore) unwrap.getNearCacheRecordStore();
NearCacheRecord record = nearCacheRecordStore.getRecord(key);
if (record != null) {
assertEquals(record.toString(), READ_PERMITTED, record.getRecordState());
}
}
}
use of com.hazelcast.internal.nearcache.impl.DefaultNearCache in project hazelcast by hazelcast.
the class ClientCacheNearCacheRecordStateStressTest method assertFinalRecordStateIsReadPermitted.
private static void assertFinalRecordStateIsReadPermitted(Cache clientCache) {
NearCachedClientCacheProxy proxy = (NearCachedClientCacheProxy) clientCache;
DefaultNearCache nearCache = (DefaultNearCache) proxy.getNearCache().unwrap(DefaultNearCache.class);
assertNearCacheRecordStates(nearCache, KEY_SPACE);
}
use of com.hazelcast.internal.nearcache.impl.DefaultNearCache in project hazelcast by hazelcast.
the class MapNearCacheRecordStateStressTest method assertFinalRecordStateIsReadPermitted.
private static void assertFinalRecordStateIsReadPermitted(IMap memberMap) {
NearCachedMapProxyImpl proxy = (NearCachedMapProxyImpl) memberMap;
DefaultNearCache nearCache = (DefaultNearCache) proxy.getNearCache().unwrap(DefaultNearCache.class);
assertNearCacheRecordStates(nearCache, KEY_SPACE);
}
Aggregations