@SuppressWarnings("unchecked") @Override public Region<K,V> createSubregion(Region<?,?> parent, String name) throws RegionExistsException { return ((LocalRegion)parent).createSubregion(name, createRegionAttributes()); }
@SuppressWarnings("unchecked") @Override public Region<K,V> createSubregion(Region<?,?> parent, String name) throws RegionExistsException { return ((LocalRegion)parent).createSubregion(name, createRegionAttributes()); }
/** * Creates a sub-region in the {@link Cache} using * the configuration contained in this RegionFactory. Validation of the * provided attributes may cause exceptions to be thrown if there are problems * with the configuration data. * * @param parent * the existing region that will contain the created sub-region * @param name * the name of the region to create * * @return the region object * @throws RegionExistsException * if a region with the given name already exists in this cache * @throws RegionDestroyedException * if the parent region has been closed or destroyed * @throws CacheClosedException * if the cache is closed * @since 7.0 */ @SuppressWarnings("unchecked") public Region<K,V> createSubregion(Region<?,?> parent, String name) throws RegionExistsException { @SuppressWarnings("deprecation") RegionAttributes<K,V> ra = this.attrsFactory.create(); return ((LocalRegion)parent).createSubregion(name, ra); }
/** * Creates a sub-region in the {@link Cache} using * the configuration contained in this RegionFactory. Validation of the * provided attributes may cause exceptions to be thrown if there are problems * with the configuration data. * * @param parent * the existing region that will contain the created sub-region * @param name * the name of the region to create * * @return the region object * @throws RegionExistsException * if a region with the given name already exists in this cache * @throws RegionDestroyedException * if the parent region has been closed or destroyed * @throws CacheClosedException * if the cache is closed * @since 7.0 */ @SuppressWarnings("unchecked") public Region<K,V> createSubregion(Region<?,?> parent, String name) throws RegionExistsException { @SuppressWarnings("deprecation") RegionAttributes<K,V> ra = this.attrsFactory.create(); return ((LocalRegion)parent).createSubregion(name, ra); }
try { LocalRegion lr = (LocalRegion) root; return lr.createSubregion(name, attrs, internalArgs); } catch (IOException ioe) { AssertionError assErr = new AssertionError("unexpected exception");
public Region createSubregion(String subregionName, RegionAttributes regionAttributes) throws RegionExistsException, TimeoutException { try { return createSubregion(subregionName, regionAttributes, new InternalRegionArguments().setDestroyLockFlag(true) .setRecreateFlag(false)); } catch (IOException e) { // only happens when loading a snapshot, not here InternalGemFireError assErr = new InternalGemFireError(LocalizedStrings.LocalRegion_UNEXPECTED_EXCEPTION.toLocalizedString()); assErr.initCause(e); throw assErr; } catch (ClassNotFoundException e) { // only happens when loading a snapshot, not here InternalGemFireError assErr = new InternalGemFireError(LocalizedStrings.LocalRegion_UNEXPECTED_EXCEPTION.toLocalizedString()); assErr.initCause(e); throw assErr; } }
public Region createSubregion(String subregionName, RegionAttributes regionAttributes) throws RegionExistsException, TimeoutException { try { return createSubregion(subregionName, regionAttributes, new InternalRegionArguments().setDestroyLockFlag(true) .setRecreateFlag(false)); } catch (IOException e) { // only happens when loading a snapshot, not here InternalGemFireError assErr = new InternalGemFireError(LocalizedStrings.LocalRegion_UNEXPECTED_EXCEPTION.toLocalizedString()); assErr.initCause(e); throw assErr; } catch (ClassNotFoundException e) { // only happens when loading a snapshot, not here InternalGemFireError assErr = new InternalGemFireError(LocalizedStrings.LocalRegion_UNEXPECTED_EXCEPTION.toLocalizedString()); assErr.initCause(e); throw assErr; } }
newRegion = parent.createSubregion(this.regionName, attrs, iargs);
newRegion = parent.createSubregion(this.regionName, attrs, iargs);
bucketRegion = (BucketRegion)rootRegion.createSubregion(bucketRegionName, attributes, new InternalRegionArguments() .setPartitionedRegionBucketRedundancy(this.partitionedRegion.getRedundantCopies())
rgn = (LocalRegion)((LocalRegion)rootRegion).createSubregion( this.tableName, rattrs, this.iargs, skipRegionInitialization);
rgn = (LocalRegion)((LocalRegion)rootRegion).createSubregion( this.tableName, rattrs, this.iargs, skipRegionInitialization);
rgn = (LocalRegion)((LocalRegion)rootRegion).createSubregion( this.tableName, rattrs, this.iargs, skipRegionInitialization);
bucketRegion = (BucketRegion)rootRegion.createSubregion(bucketRegionName, attributes, new InternalRegionArguments() .setPartitionedRegionBucketRedundancy(this.partitionedRegion.getRedundantCopies())
public Region createSubregion(String subregionName, RegionAttributes regionAttributes, InternalRegionArguments internalRegionArgs, boolean skipInitialization) throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { checkReadiness(); LocalRegion newRegion = null; final InputStream snapshotInputStream = internalRegionArgs .getSnapshotInputStream(); final boolean getDestroyLock = internalRegionArgs.getDestroyLockFlag(); final InternalDistributedMember imageTarget = internalRegionArgs .getImageTarget(); try { if (getDestroyLock) acquireDestroyLock(); LocalRegion existing = null; try { if (isDestroyed()) { if (this.reinitialized_old) { throw new RegionReinitializedException(toString(), getFullPath()); } throw new RegionDestroyedException(toString(), getFullPath()); } validateRegionName(subregionName); validateSubregionAttributes(regionAttributes); String regionPath = calcFullPath(subregionName, this); // lock down the subregionsLock // to prevent other threads from adding a region to it in toRegion