Search in sources :

Example 1 with CacheRecordStore

use of com.hazelcast.cache.impl.CacheRecordStore in project hazelcast by hazelcast.

the class CacheRecordStoreTestSupport method createCacheRecordStore.

protected ICacheRecordStore createCacheRecordStore(HazelcastInstance instance, String cacheName, int partitionId, InMemoryFormat inMemoryFormat) {
    NodeEngine nodeEngine = getNodeEngineImpl(instance);
    ICacheService cacheService = getCacheService(instance);
    CacheConfig cacheConfig = createCacheConfig(cacheName, inMemoryFormat);
    cacheService.putCacheConfigIfAbsent(cacheConfig);
    return new CacheRecordStore(CACHE_NAME_PREFIX + cacheName, partitionId, nodeEngine, (AbstractCacheService) cacheService);
}
Also used : NodeEngine(com.hazelcast.spi.impl.NodeEngine) ICacheRecordStore(com.hazelcast.cache.impl.ICacheRecordStore) CacheRecordStore(com.hazelcast.cache.impl.CacheRecordStore) ICacheService(com.hazelcast.cache.impl.ICacheService) CacheConfig(com.hazelcast.config.CacheConfig)

Aggregations

CacheRecordStore (com.hazelcast.cache.impl.CacheRecordStore)1 ICacheRecordStore (com.hazelcast.cache.impl.ICacheRecordStore)1 ICacheService (com.hazelcast.cache.impl.ICacheService)1 CacheConfig (com.hazelcast.config.CacheConfig)1 NodeEngine (com.hazelcast.spi.impl.NodeEngine)1