private HARegion(String regionName, RegionAttributes attrs, LocalRegion parentRegion, InternalCache cache) { super(regionName, attrs, parentRegion, cache, new InternalRegionArguments().setDestroyLockFlag(true).setRecreateFlag(false) .setSnapshotInputStream(null).setImageTarget(null)); this.haRegionStats = new DummyCachePerfStats(); }
protected SerialGatewaySenderQueueMetaRegion(String regionName, RegionAttributes attrs, LocalRegion parentRegion, InternalCache cache, AbstractGatewaySender sender) { super(regionName, attrs, parentRegion, cache, new InternalRegionArguments().setDestroyLockFlag(true).setRecreateFlag(false) .setSnapshotInputStream(null).setImageTarget(null) .setIsUsedForSerialGatewaySenderQueue(true).setSerialGatewaySender(sender)); this.sender = sender; }
public ParallelGatewaySenderQueueMetaRegion(String regionName, RegionAttributes attrs, LocalRegion parentRegion, InternalCache cache, AbstractGatewaySender pgSender) { super(regionName, attrs, parentRegion, cache, new InternalRegionArguments().setDestroyLockFlag(true).setRecreateFlag(false) .setSnapshotInputStream(null).setImageTarget(null) .setIsUsedForParallelGatewaySenderQueue(true) .setParallelGatewaySender((AbstractGatewaySender) pgSender)); this.sender = (AbstractGatewaySender) pgSender; }
this.region = gemCache.createVMRegion(this.regionName, ra, new InternalRegionArguments().setInternalMetaRegion(meta).setDestroyLockFlag(true) .setSnapshotInputStream(null).setImageTarget(null) .setIsUsedForSerialGatewaySenderQueue(true).setInternalRegion(true) .setSerialGatewaySender(sender));
protected <K, V> Region<K, V> createRegion(final String regionName, final RegionAttributes<K, V> attributes) { // Create InternalRegionArguments to set isUsedForMetaRegion true to suppress xml generation // (among other things) InternalRegionArguments ira = new InternalRegionArguments().setDestroyLockFlag(true).setRecreateFlag(false) .setSnapshotInputStream(null).setImageTarget(null).setIsUsedForMetaRegion(true); // Create the region try { return this.cache.createVMRegion(regionName, attributes, ira); } catch (Exception e) { InternalGemFireError ige = new InternalGemFireError( "unexpected exception"); ige.initCause(e); throw ige; } }
@Override public <K, V> Region<K, V> basicCreateRegion(String name, RegionAttributes<K, V> attrs) throws RegionExistsException, TimeoutException { try { InternalRegionArguments ira = new InternalRegionArguments().setDestroyLockFlag(true) .setRecreateFlag(false).setSnapshotInputStream(null).setImageTarget(null); if (attrs instanceof UserSpecifiedRegionAttributes) { ira.setIndexes(((UserSpecifiedRegionAttributes) attrs).getIndexes()); } return createVMRegion(name, attrs, ira); } catch (IOException | ClassNotFoundException e) { // only if loading snapshot, not here throw new InternalGemFireError( "unexpected exception", e); } }
/** * * Returns an instance of HARegion after it has properly initialized * * @param regionName name of the region to be created * @param cache the cache that owns this region * @param ra attributes of the region * @return an instance of an HARegion * @throws RegionExistsException if a region of the same name exists in the same Cache */ public static HARegion getInstance(String regionName, InternalCache cache, HARegionQueue hrq, RegionAttributes ra) throws TimeoutException, RegionExistsException, IOException, ClassNotFoundException { HARegion haRegion = new HARegion(regionName, ra, null, cache); haRegion.setOwner(hrq); Region region = cache.createVMRegion(regionName, ra, new InternalRegionArguments().setInternalMetaRegion(haRegion).setDestroyLockFlag(true) .setSnapshotInputStream(null).setInternalRegion(true).setImageTarget(null)); return (HARegion) region; }
prQ = (PartitionedRegion) cache.createVMRegion(prQName, ra, new InternalRegionArguments().setInternalMetaRegion(meta).setDestroyLockFlag(true) .setSnapshotInputStream(null).setImageTarget(null));
boolean getDestroyLock = false; InternalRegionArguments internalRegionArguments = new InternalRegionArguments() .setDestroyLockFlag(getDestroyLock).setSnapshotInputStream(inputStream) .setImageTarget(imageTarget).setRecreateFlag(true); if (this instanceof BucketRegion) {
prQ = (PartitionedRegion) cache.createVMRegion(prQName, ra, new InternalRegionArguments().setInternalMetaRegion(meta).setDestroyLockFlag(true) .setInternalRegion(true).setSnapshotInputStream(null).setImageTarget(null));
private static String createClientMessagesRegion(RegionAttributes attr, InternalCache cache, int capacity, int port) { // generating unique name in VM for ClientMessagesRegion String regionName = generateNameForClientMsgsRegion(port); try { cache.createVMRegion(regionName, attr, new InternalRegionArguments().setDestroyLockFlag(true).setRecreateFlag(false) .setSnapshotInputStream(null).setImageTarget(null).setIsUsedForMetaRegion(true)); } catch (RegionExistsException ree) { InternalGemFireError assErr = new InternalGemFireError("unexpected exception"); assErr.initCause(ree); throw assErr; } catch (IOException e) { // only if loading snapshot, not here InternalGemFireError assErr = new InternalGemFireError("unexpected exception"); assErr.initCause(e); throw assErr; } catch (ClassNotFoundException e) { // only if loading snapshot, not here InternalGemFireError assErr = new InternalGemFireError("unexpected exception"); assErr.initCause(e); throw assErr; } return regionName; }
if (this.dynamicRegionList == null) { InternalRegionArguments ira = new InternalRegionArguments().setDestroyLockFlag(true) .setInternalRegion(true).setSnapshotInputStream(null).setImageTarget(null); AttributesFactory af = new AttributesFactory(); if (this.config.getPersistBackup()) {