ActivationManager manager = cache.getAdvancedCache().getComponentRegistry().getComponent(ActivationManager.class);
result.set(manager != null ? manager.getActivationCount() : 0);
break;
}
case CACHE_LOADER_LOADS: {
ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
.getInterceptorChain(), ActivationInterceptor.class);
result.set(interceptor != null ? interceptor.getCacheLoaderLoads() : 0);
break;
}
case CACHE_LOADER_MISSES: {
ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
.getInterceptorChain(), ActivationInterceptor.class);
result.set(interceptor != null ? interceptor.getCacheLoaderMisses() : 0);
break;
}
case CACHE_LOADER_STORES: {
CacheWriterInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()
.getInterceptorChain(), CacheWriterInterceptor.class);
result.set(interceptor != null ? interceptor.getWritesToTheStores() : 0);
break;
}
}
context.getResult().set(result);
}