use of com.hazelcast.cache.CacheNotExistsException in project hazelcast by hazelcast.
the class AbstractCacheAllPartitionsTask method getOperationProvider.
protected CacheOperationProvider getOperationProvider(String name) {
ICacheService service = getService(CacheService.SERVICE_NAME);
CacheConfig cacheConfig = service.getCacheConfig(name);
if (cacheConfig == null) {
throw new CacheNotExistsException("Cache config for cache " + name + " has not been created yet!");
}
return service.getCacheOperationProvider(name, cacheConfig.getInMemoryFormat());
}
use of com.hazelcast.cache.CacheNotExistsException in project hazelcast by hazelcast.
the class AbstractCacheMessageTask method getOperationProvider.
protected CacheOperationProvider getOperationProvider(String name) {
ICacheService service = getService(CacheService.SERVICE_NAME);
final CacheConfig cacheConfig = service.getCacheConfig(name);
if (cacheConfig == null) {
throw new CacheNotExistsException("Cache " + name + " is already destroyed or not created yet, on " + nodeEngine.getLocalMember());
}
final InMemoryFormat inMemoryFormat = cacheConfig.getInMemoryFormat();
return service.getCacheOperationProvider(name, inMemoryFormat);
}
Aggregations