/** * @return {@code True} if starting system caches. */ public boolean systemCachesStarting() { if (cachesToStart != null) { for (CacheActionData data : cachesToStart.values()) { if (CU.isSystemCache(data.request().cacheName())) return true; } } return false; }
/** * @return {@code True} if this is cache group for one of system caches. */ public boolean systemCache() { return !sharedGroup() && CU.isSystemCache(ccfg.getName()); }
@Override public boolean apply(IgniteInternalCache<?, ?> c) { return !CU.isSystemCache(c.name()) && !DataStructuresProcessor.isDataStructureCache(c.name()); } }
/** * @param op Operation to check. * @throws SecurityException If security check failed. */ public void checkSecurity(SecurityPermission op) throws SecurityException { if (CU.isSystemCache(name())) return; ctx.security().authorize(name(), op, null); }
/** {@inheritDoc} */ @Override public void preProcessCacheConfiguration(CacheConfiguration ccfg) { if (FORCE_MVCC && ccfg.getAtomicityMode() == TRANSACTIONAL && !CU.isSystemCache(ccfg.getName())) { ccfg.setAtomicityMode(TRANSACTIONAL_SNAPSHOT); //noinspection unchecked ccfg.setNearConfiguration(null); } if (ccfg.getAtomicityMode() == TRANSACTIONAL_SNAPSHOT) { if (!mvccSupported) throw new IgniteException("Cannot start MVCC transactional cache. " + "MVCC is unsupported by the cluster."); mvccEnabled = true; } }
/** * Prepares configuration for warmup. * * @param gridCfg Original grid configuration. * @return Prepared configuration or {@code null} if no caches found. */ private IgniteConfiguration prepareConfiguration(IgniteConfiguration gridCfg) { if (F.isEmpty(gridCfg.getCacheConfiguration())) return null; IgniteConfiguration cp = new IgniteConfiguration(); cp.setConnectorConfiguration(null); Collection<CacheConfiguration> reduced = new ArrayList<>(); for (CacheConfiguration ccfg : gridCfg.getCacheConfiguration()) { if (CU.isSystemCache(ccfg.getName())) continue; if (!matches(reduced, ccfg)) { CacheConfiguration ccfgCp = new CacheConfiguration(ccfg); ccfgCp.setCacheStoreFactory(null); ccfgCp.setWriteBehindEnabled(false); reduced.add(ccfgCp); } } if (F.isEmpty(reduced)) return null; CacheConfiguration[] res = new CacheConfiguration[reduced.size()]; reduced.toArray(res); cp.setCacheConfiguration(res); return cp; }
if (CU.isSystemCache(cacheName)) memPlcName = "sysMemPlc"; else if (memPlcName == null && cfg.getDataStorageConfiguration() != null)
enabled = qryProcEnabled || (isIndexingSpiEnabled() && !CU.isSystemCache(cacheName));
/** * @param ig Ignite. * @param cacheNames Cache names. */ protected void checkDescriptors(IgniteEx ig, Set<String> cacheNames) { Collection<DynamicCacheDescriptor> descs = ig.context().cache().cacheDescriptors().values(); assertEquals("Node name: " + ig.name(), cacheNames.size() + 1, descs.size()); int systemCnt = 0; for (DynamicCacheDescriptor desc : descs) if (!CU.isSystemCache(desc.cacheName())) assertTrue(desc.cacheName(), cacheNames.contains(desc.cacheName())); else systemCnt++; assertEquals(1, systemCnt); }
/** * @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(); }
if (!CU.isUtilityCache(cache.name()) && !CU.isSystemCache(cache.name())) { registerMbean(cache.localMxBean(), cache.name(), false); registerMbean(cache.clusterMxBean(), cache.name(), false);
!CU.isSystemCache(cc.getName()) && !(c.getMarshaller() instanceof BinaryMarshaller)) throw new IgniteCheckedException("Cache can be started in PRIVATE or ISOLATED deployment mode only when" + " BinaryMarshaller is used [depMode=" + ctx.config().getDeploymentMode() + ", marshaller=" +
/** * @return {@code True} if starting system caches. */ public boolean systemCachesStarting() { if (cachesToStart != null) { for (CacheActionData data : cachesToStart.values()) { if (CU.isSystemCache(data.request().cacheName())) return true; } } return false; }
/** * @return {@code True} if this is cache group for one of system caches. */ public boolean systemCache() { return !sharedGroup() && CU.isSystemCache(ccfg.getName()); }
@Override public boolean apply(IgniteInternalCache<?, ?> c) { return !CU.isSystemCache(c.name()) && !DataStructuresProcessor.isDataStructureCache(c.name()); } }
/** * @param op Operation to check. * @throws SecurityException If security check failed. */ public void checkSecurity(SecurityPermission op) throws SecurityException { if (CU.isSystemCache(name())) return; ctx.security().authorize(name(), op, null); }
/** * Prepares configuration for warmup. * * @param gridCfg Original grid configuration. * @return Prepared configuration or {@code null} if no caches found. */ private IgniteConfiguration prepareConfiguration(IgniteConfiguration gridCfg) { if (F.isEmpty(gridCfg.getCacheConfiguration())) return null; IgniteConfiguration cp = new IgniteConfiguration(); cp.setConnectorConfiguration(null); Collection<CacheConfiguration> reduced = new ArrayList<>(); for (CacheConfiguration ccfg : gridCfg.getCacheConfiguration()) { if (CU.isSystemCache(ccfg.getName())) continue; if (!matches(reduced, ccfg)) { CacheConfiguration ccfgCp = new CacheConfiguration(ccfg); ccfgCp.setCacheStoreFactory(null); ccfgCp.setWriteBehindEnabled(false); reduced.add(ccfgCp); } } if (F.isEmpty(reduced)) return null; CacheConfiguration[] res = new CacheConfiguration[reduced.size()]; reduced.toArray(res); cp.setCacheConfiguration(res); return cp; }
if (CU.isSystemCache(cacheName)) memPlcName = "sysMemPlc"; else if (memPlcName == null && cfg.getDataStorageConfiguration() != null)
enabled = qryProcEnabled || (isIndexingSpiEnabled() && !CU.isSystemCache(cacheName));
/** * @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(); }