/** * Gets filtered group ids. */ private Set<Integer> getCacheGroupIds() { Collection<CacheGroupContext> groups = ignite.context().cache().cacheGroups(); Set<Integer> grpIds = new HashSet<>(); if (F.isEmpty(arg.getExcludeCaches())) { for (CacheGroupContext grp : groups) { if (!grp.systemCache() && !grp.isLocal()) grpIds.add(grp.groupId()); } return grpIds; } for (CacheGroupContext grp : groups) { if (!grp.systemCache() && !grp.isLocal() && !isGrpExcluded(grp)) grpIds.add(grp.groupId()); } return grpIds; }
/** * @param grp Cache group. * @param topNodes Topology nodes. * @return Validation result. */ protected final CacheGroupValidation validateCacheGroup(CacheGroupContext grp, Collection<ClusterNode> topNodes) { Collection<Integer> lostParts = grp.isLocal() ? Collections.<Integer>emptyList() : grp.topology().lostPartitions(); boolean valid = true; if (!grp.systemCache()) { TopologyValidator validator = grp.topologyValidator(); if (validator != null) valid = validator.validate(topNodes); } return new CacheGroupValidation(valid, lostParts); }
if (!grp.systemCache() && !grp.isLocal()) grpIds.add(grp.groupId());
if (!grp.systemCache() && !grp.isLocal()) grpIds.add(grp.groupId());
/** * @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); } } }
if (systemCache()) { statHolderIdx = IoStatisticsHolderNoOp.INSTANCE; statHolderData = IoStatisticsHolderNoOp.INSTANCE;
if (!grp.systemCache() && !U.IGNITE_MBEANS_DISABLED) { try { U.registerMBean(ctx.config().getMBeanServer(), ctx.igniteInstanceName(), CACHE_GRP_METRICS_MBEAN_GRP,
if (!grp.systemCache() && !grp.isLocal()) grpIds.add(grp.groupId());
if (!grp.systemCache() && !grp.isLocal()) grpIds.add(grp.groupId());
/** * @param grp Cache group. * @param topNodes Topology nodes. * @return Validation result. */ protected final CacheValidation validateCacheGroup(CacheGroupContext grp, Collection<ClusterNode> topNodes) { Collection<Integer> lostParts = grp.isLocal() ? Collections.<Integer>emptyList() : grp.topology().lostPartitions(); boolean valid = true; if (!grp.systemCache()) { TopologyValidator validator = grp.topologyValidator(); if (validator != null) valid = validator.validate(topNodes); } return new CacheValidation(valid, lostParts); }
if (!grp.systemCache() && !grp.isLocal()) grpIds.add(grp.groupId());
/** * @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); } } }
if (!grp.systemCache() && !U.IGNITE_MBEANS_DISABLED) { try { U.registerMBean(ctx.config().getMBeanServer(), ctx.igniteInstanceName(), CACHE_GRP_METRICS_MBEAN_GRP,