/** {@inheritDoc} */ @Override public CacheMetricsMXBean localMxBean() { GridCacheContext<K, V> ctx = getContextSafe(); return ctx.cache().localMxBean(); }
/** * @param cctx Cache context. */ private void cleanup(GridCacheContext cctx) { CacheConfiguration cfg = cctx.config(); cleanup(cfg, cfg.getAffinity(), false); cleanup(cfg, cfg.getAffinityMapper(), false); cleanup(cfg, cfg.getEvictionFilter(), false); cleanup(cfg, cfg.getInterceptor(), false); cleanup(cfg, cctx.store().configuredStore(), false); if (!CU.isUtilityCache(cfg.getName()) && !CU.isSystemCache(cfg.getName())) { unregisterMbean(cctx.cache().localMxBean(), cfg.getName(), false); unregisterMbean(cctx.cache().clusterMxBean(), cfg.getName(), false); } cctx.cleanup(); }
registerMbean(cache.localMxBean(), cache.name(), false); registerMbean(cache.clusterMxBean(), cache.name(), false);
/** {@inheritDoc} */ @Override public CacheMetricsMXBean localMxBean() { return ctx.cache().localMxBean(); }
/** * @param cctx Cache context. */ private void cleanup(GridCacheContext cctx) { CacheConfiguration cfg = cctx.config(); cleanup(cfg, cfg.getAffinity(), false); cleanup(cfg, cfg.getAffinityMapper(), false); cleanup(cfg, cfg.getEvictionFilter(), false); cleanup(cfg, cfg.getInterceptor(), false); cleanup(cfg, cctx.store().configuredStore(), false); if (!CU.isUtilityCache(cfg.getName()) && !CU.isSystemCache(cfg.getName())) { unregisterMbean(cctx.cache().localMxBean(), cfg.getName(), false); unregisterMbean(cctx.cache().clusterMxBean(), cfg.getName(), false); } cctx.cleanup(); }
registerMbean(cache.localMxBean(), cache.name(), false); registerMbean(cache.clusterMxBean(), cache.name(), false);