/** * @param grp Cache group. */ private void stopCacheGroup(CacheGroupContext grp) { grp.stopGroup(); U.stopLifecycleAware(log, grp.configuredUserObjects()); cleanup(grp); }
/** * @param grp Cache group. */ private void cleanup(CacheGroupContext grp) { CacheConfiguration cfg = grp.config(); for (Object obj : grp.configuredUserObjects()) cleanup(cfg, obj, false); if (!grp.systemCache() && !U.IGNITE_MBEANS_DISABLED) { try { ctx.config().getMBeanServer().unregisterMBean(U.makeMBeanName(ctx.igniteInstanceName(), CACHE_GRP_METRICS_MBEAN_GRP, grp.cacheOrGroupName())); } catch (Throwable e) { U.error(log, "Failed to unregister MBean for cache group: " + grp.name(), e); } } }
); for (Object obj : grp.configuredUserObjects()) prepare(cfg, obj, false); U.startLifecycleAware(grp.configuredUserObjects());
/** * @param grp Cache group. */ private void stopCacheGroup(CacheGroupContext grp) { grp.stopGroup(); U.stopLifecycleAware(log, grp.configuredUserObjects()); cleanup(grp); }
/** * @param grp Cache group. */ private void cleanup(CacheGroupContext grp) { CacheConfiguration cfg = grp.config(); for (Object obj : grp.configuredUserObjects()) cleanup(cfg, obj, false); if (!grp.systemCache() && !U.IGNITE_MBEANS_DISABLED) { try { ctx.config().getMBeanServer().unregisterMBean(U.makeMBeanName(ctx.igniteInstanceName(), CACHE_GRP_METRICS_MBEAN_GRP, grp.cacheOrGroupName())); } catch (Throwable e) { U.error(log, "Failed to unregister MBean for cache group: " + grp.name(), e); } } }
); for (Object obj : grp.configuredUserObjects()) prepare(cfg, obj, false); U.startLifecycleAware(grp.configuredUserObjects());