public GemFireCacheImpl getCache() { return this.proxy.getCache(); }
/** * Initializes the PartitionedRegion - create the Global regions for storing * the PartitiotnedRegion configs. */ private void initializePartitionedRegion() { this.prRoot = PartitionedRegionHelper.getPRRoot(getCache()); }
/** * Initializes the PartitionedRegion - create the Global regions for storing * the PartitiotnedRegion configs. */ private void initializePartitionedRegion() { this.prRoot = PartitionedRegionHelper.getPRRoot(getCache()); }
public InternalDistributedSystem getSystem() { return this.partitionedRegion.getCache().getDistributedSystem(); }
protected RecoveryLock() { super(PartitionedRegion.this.getRegionIdentifier() + "-RecoveryLock", getCache(), false); }
public InternalDistributedSystem getSystem() { return this.partitionedRegion.getCache().getDistributedSystem(); }
public AsyncEventQueueImpl getHDFSEventQueue() { String asyncQId = getHDFSEventQueueName(); if(asyncQId == null) { return null; } final AsyncEventQueueImpl asyncQ = (AsyncEventQueueImpl)this.getCache().getAsyncEventQueue(asyncQId); return asyncQ; }
private void clearAllPartitionedRegion(PartitionedRegion pr) { Cache cache = pr.getCache(); Region allPR = PartitionedRegionHelper.getPRRoot(cache); allPR.clear(); }
private int getDestroyCount(PartitionedRegion pr) { return ((GemFireCacheImpl)pr.getCache()).getCachePerfStats().getDestroys(); } private int getCreateCount(PartitionedRegion pr) {
public AsyncEventQueueImpl getHDFSEventQueue() { String asyncQId = getHDFSEventQueueName(); if(asyncQId == null) { return null; } final AsyncEventQueueImpl asyncQ = (AsyncEventQueueImpl)this.getCache().getAsyncEventQueue(asyncQId); return asyncQ; }
public PRQueryProcessor(PartitionedRegionDataStore prDS, DefaultQuery query, Object[] parameters, List buckets) { Assert.assertTrue(!buckets.isEmpty(), "bucket list can not be empty. "); this._prds = prDS; this._bucketsToQuery = buckets; ((GemFireCacheImpl)prDS.partitionedRegion.getCache()).getLocalQueryService(); this.query = query; this.parameters = parameters; PRQueryExecutor.initializeExecutorService(); }
private static PartitionedRegion getColocatedPR( final PartitionedRegion partitionedRegion, final String colocatedWith) { logger.info(LocalizedMessage.create( LocalizedStrings.HOPLOG_0_COLOCATE_WITH_REGION_1_NOT_INITIALIZED_YET, new Object[] { partitionedRegion.getFullPath(), colocatedWith })); PartitionedRegion colocatedPR = (PartitionedRegion) partitionedRegion .getCache().getPartitionedRegion(colocatedWith, false); assert colocatedPR != null; return colocatedPR; } /** Whether to ignore missing parallel queues on restart
public PRQueryProcessor(PartitionedRegionDataStore prDS, DefaultQuery query, Object[] parameters, List<Integer> buckets) { Assert.assertTrue(!buckets.isEmpty(), "bucket list can not be empty. "); this._prds = prDS; this._bucketsToQuery = buckets; ((GemFireCacheImpl)prDS.partitionedRegion.getCache()).getLocalQueryService(); this.query = query; this.parameters = parameters; PRQueryExecutor.initializeExecutorService(); }
private void init() { execution = FunctionService.onMembers(region.getCache().getDistributedSystem()); int totalNumBuckets = region.getPartitionAttributes().getTotalNumBuckets(); routingKeySet = new CopyOnWriteArraySet(); for (int i = 0; i < totalNumBuckets; i++) { routingKeySet.add(i); } }
public void fillInProfile(Profile profile) { LogWriterI18n l = this.partitionedRegion.getCache().getLoggerI18n(); if (l.fineEnabled()) { l.fine("ProxyBucketRegion filling in profile: " + profile); } BucketRegion bucket = this.realBucket; if (bucket != null) { bucket.fillInProfile(profile); } }
private static PartitionedRegion getColocatedPR( final PartitionedRegion partitionedRegion, final String colocatedWith) { LogWriterI18n logger = partitionedRegion.getLogWriterI18n(); logger.info( LocalizedStrings.HOPLOG_0_COLOCATE_WITH_REGION_1_NOT_INITIALIZED_YET, new Object[] { partitionedRegion.getFullPath(), colocatedWith }); PartitionedRegion colocatedPR = (PartitionedRegion) partitionedRegion .getCache().getPartitionedRegion(colocatedWith, false); assert colocatedPR != null; return colocatedPR; }
@Override protected boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion pr, long startTime) throws CacheException { // This call has come to an uninitialized region. if(pr == null || !pr.isInitialized()) { return true; } LogWriterI18n l = pr.getCache().getLoggerI18n(); if (DistributionManager.VERBOSE) { l.fine("DestroyRegionOnDataStore operateOnRegion: " + pr.getFullPath()); } pr.destroyRegion(callbackArg); return true; }
public void addGatewaySenderId(String gatewaySenderId) { super.addGatewaySenderId(gatewaySenderId); new UpdateAttributesProcessor(this).distribute(); ((PartitionedRegion)this).distributeUpdatedProfileOnSenderCreation(); GatewaySender sender = getCache().getGatewaySender(gatewaySenderId); if (sender!= null && sender.isParallel() && sender.isRunning()) { AbstractGatewaySender senderImpl = (AbstractGatewaySender)sender; ((ConcurrentParallelGatewaySenderQueue)senderImpl.getQueues().toArray( new RegionQueue[1])[0]).addShadowPartitionedRegionForUserPR(this); } }
public void addAsyncEventQueueId(String asyncEventQueueId) { super.addAsyncEventQueueId(asyncEventQueueId); new UpdateAttributesProcessor(this).distribute(); ((PartitionedRegion)this).distributeUpdatedProfileOnSenderCreation(); GatewaySender sender = getCache().getGatewaySender(AsyncEventQueueImpl.getSenderIdFromAsyncEventQueueId(asyncEventQueueId)); if (sender!= null && sender.isParallel() && sender.isRunning()) { AbstractGatewaySender senderImpl = (AbstractGatewaySender)sender; ((ConcurrentParallelGatewaySenderQueue)senderImpl.getQueues().toArray( new RegionQueue[1])[0]).addShadowPartitionedRegionForUserPR(this); } }