/** * Get the region corresponding to given path; will return an uninitialized * region also instead of waiting for it to initialize. If the "throwIfFound" * flag is true then throw a RegionDestroyedException if region was not found. */ @SuppressWarnings("unchecked") public static <K, V> Region<K, V> getRegionByPath(String regionPath, boolean throwIfNotFound) { if (throwIfNotFound) { return getRegionByPath(regionPath); } else { return getGemFireCache().getRegionByPath(regionPath, false); } }
/** * Get the region corresponding to given path; will return an uninitialized * region also instead of waiting for it to initialize. If the "throwIfFound" * flag is true then throw a RegionDestroyedException if region was not found. */ @SuppressWarnings("unchecked") public static <K, V> Region<K, V> getRegionByPath(String regionPath, boolean throwIfNotFound) { if (throwIfNotFound) { return getRegionByPath(regionPath); } else { return getGemFireCache().getRegionByPath(regionPath, false); } }
/** * Get the region corresponding to given path; will return an uninitialized * region also instead of waiting for it to initialize. If the "throwIfFound" * flag is true then throw a RegionDestroyedException if region was not found. */ @SuppressWarnings("unchecked") public static <K, V> Region<K, V> getRegionByPath(String regionPath, boolean throwIfNotFound) { if (throwIfNotFound) { return getRegionByPath(regionPath); } else { return getGemFireCache().getRegionByPath(regionPath, false); } }
/** * Given a region path, get the associated hdfs store. */ private static ArrayList<HDFSStoreImpl> getHDFSStore(String regionPath) { ArrayList<HDFSStoreImpl> destinationhdfsStores = new ArrayList<HDFSStoreImpl>(); LocalRegion region = Misc.getGemFireCache().getRegionByPath(regionPath, false); if (region == null) {// no region associated return destinationhdfsStores; } if (region.getHDFSStoreName() == null) return destinationhdfsStores; HDFSStoreImpl hdfsStore = Misc.getGemFireCache().findHDFSStore(region.getHDFSStoreName()); if (hdfsStore != null) destinationhdfsStores.add(hdfsStore); return destinationhdfsStores; }
/** * Given a region path, get the associated hdfs store. */ private static ArrayList<HDFSStoreImpl> getHDFSStore(String regionPath) { ArrayList<HDFSStoreImpl> destinationhdfsStores = new ArrayList<HDFSStoreImpl>(); LocalRegion region = Misc.getGemFireCache().getRegionByPath(regionPath, false); if (region == null) {// no region associated return destinationhdfsStores; } if (region.getHDFSStoreName() == null) return destinationhdfsStores; HDFSStoreImpl hdfsStore = Misc.getGemFireCache().findHDFSStore(region.getHDFSStoreName()); if (hdfsStore != null) destinationhdfsStores.add(hdfsStore); return destinationhdfsStores; }
/** * Given a region path, get the associated hdfs store. */ private static ArrayList<HDFSStoreImpl> getHDFSStore(String regionPath) { ArrayList<HDFSStoreImpl> destinationhdfsStores = new ArrayList<HDFSStoreImpl>(); LocalRegion region = Misc.getGemFireCache().getRegionByPath(regionPath, false); if (region == null) {// no region associated return destinationhdfsStores; } if (region.getHDFSStoreName() == null) return destinationhdfsStores; HDFSStoreImpl hdfsStore = Misc.getGemFireCache().findHDFSStore(region.getHDFSStoreName()); if (hdfsStore != null) destinationhdfsStores.add(hdfsStore); return destinationhdfsStores; }
/** * Get the region corresponding to given path; will return an uninitialized * region also instead of waiting for it to initialize. Throw a * RegionDestroyedException if region was not found. */ public static LocalRegion getRegionByPath(String regionPath) { final LocalRegion region = getGemFireCache().getRegionByPath(regionPath, false); if (region != null) { return region; } else { throw new RegionDestroyedException( LocalizedStrings.Region_CLOSED_OR_DESTROYED .toLocalizedString(regionPath), regionPath); } }
/** * Get the region corresponding to given path; will return an uninitialized * region also instead of waiting for it to initialize. Throw a * RegionDestroyedException if region was not found. */ public static LocalRegion getRegionByPath(String regionPath) { final LocalRegion region = getGemFireCache().getRegionByPath(regionPath, false); if (region != null) { return region; } else { throw new RegionDestroyedException( LocalizedStrings.Region_CLOSED_OR_DESTROYED .toLocalizedString(regionPath), regionPath); } }
/** * Get the region corresponding to given path; will return an uninitialized * region also instead of waiting for it to initialize. Throw a * RegionDestroyedException if region was not found. */ public static LocalRegion getRegionByPath(String regionPath) { final LocalRegion region = getGemFireCache().getRegionByPath(regionPath, false); if (region != null) { return region; } else { throw new RegionDestroyedException( LocalizedStrings.Region_CLOSED_OR_DESTROYED .toLocalizedString(regionPath), regionPath); } }
public LocalRegion getRegionByPathForProcessing(String path) { LocalRegion result = getRegionByPath(path); if (result == null) { stopper.checkCancelInProgress(null); int oldLevel = LocalRegion.setThreadInitLevelRequirement(LocalRegion.ANY_INIT); // go through // initialization // latches try { String[] pathParts = parsePath(path); LocalRegion root; synchronized (this.rootRegions) { root = (LocalRegion) this.rootRegions.get(pathParts[0]); if (root == null) return null; } if (logger.isDebugEnabled()) { logger.debug("GemFireCache.getRegion, calling getSubregion on root({}): {}", pathParts[0], pathParts[1]); } result = (LocalRegion) root.getSubregion(pathParts[1], true); } finally { LocalRegion.setThreadInitLevelRequirement(oldLevel); } } return result; }
stopper.checkCancelInProgress(null); LocalRegion result = getRegionByPath(path);
return cache.getRegionByPath(this.fullPath, false); case IS_PR: try {
public final LocalRegion getRegionByPathForProcessing(String path) { LocalRegion result = getRegionByPath(path, false); if (result == null) { stopper.checkCancelInProgress(null); int oldLevel = LocalRegion.setThreadInitLevelRequirement(LocalRegion.ANY_INIT); // go through // initialization // latches try { String[] pathParts = parsePath(path); LocalRegion root; synchronized (this.rootRegions) { root = (LocalRegion) this.rootRegions.get(pathParts[0]); if (root == null) return null; } LogWriterI18n logger = getLoggerI18n(); if (logger.fineEnabled()) { logger.fine("GemFireCache.getRegion, calling getSubregion on root(" + pathParts[0] + "): " + pathParts[1]); } result = (LocalRegion) root.getSubregion(pathParts[1], true, false); } finally { LocalRegion.setThreadInitLevelRequirement(oldLevel); } } return result; }
region = cache.getRegionByPath(this.colocatedRegionName, false); }else{ region = cache.getRegion(this.colocatedRegionName);
case IS_RR: try { return cache != null ? cache.getRegionByPath( this.fullPath, false) : null; } catch (RegionDestroyedException | CancelException e) {
stopper.checkCancelInProgress(null); LocalRegion result = getRegionByPath(path);
.getRegionName()); if (rlr == null) { rlr = new TXRegionLockRequestImpl(cache.getRegionByPath(txOp .getRegionName())); lockReq.addLocalRequest(rlr);
stopper.checkCancelInProgress(null); LocalRegion result = getRegionByPath(path, false);
stopper.checkCancelInProgress(null); LocalRegion result = getRegionByPath(path, returnUnInitializedRegion);
.getRegionByPath(tablePath, false); if (masterRegion == null) { {if (true) throw StandardException.newException(SQLState.LANG_TABLE_NOT_FOUND,