public boolean isInactive(Fqn fqn) { Region region = getRegion(fqn, false); return region == null ? defaultInactive : !region.isActive(); }
protected void deactivateLocalNode() { org.jboss.cache.Region jbcRegion = jbcCache.getRegion(regionFqn, false); if (jbcRegion != null && jbcRegion.isActive()) { jbcRegion.deactivate(); jbcRegion.unregisterContextClassLoader(); } }
public List<Region> getAllRegions(Region.Type type) { List<Region> regions; if (type != ANY) { regions = new ArrayList<Region>(); // we need to loop thru the regions and only select specific regions to rtn. for (Region r : regionsRegistry.values()) { if ((type == EVICTION && r.getEvictionRegionConfig() != null) || (type == MARSHALLING && r.isActive() && r.getClassLoader() != null)) { regions.add(r); } } } else { // put all regions regions = new ArrayList<Region>(regionsRegistry.values()); } Collections.sort(regions); return regions; }
protected void deactivateLocalNode() { org.jboss.cache.Region jbcRegion = jbcCache.getRegion(regionFqn, false); if (jbcRegion != null && jbcRegion.isActive()) { jbcRegion.deactivate(); jbcRegion.unregisterContextClassLoader(); } }
public boolean hasRegion(Fqn fqn, Region.Type type) { Region r = regionsRegistry.get(fqn); if (r == null) return false; switch (type) { case ANY: return true; case EVICTION: return r.getEvictionRegionConfig() != null; case MARSHALLING: return r.isActive() && r.getClassLoader() != null; } // should never reach here? return false; }
if ( !jbcRegion.isActive() ) { jbcRegion.activate();
if ( !jbcRegion.isActive() ) { jbcRegion.activate();