@Override protected void initializeMessageQueue(String id ) { Set<Region> targetRs = new HashSet<Region>(); for (LocalRegion region : ((GemFireCacheImpl)((ParallelGatewaySenderImpl)sender).getCache()) .getApplicationRegions()) { if (region.getAllGatewaySenderIds().contains(id)) { targetRs.add(region); } } if (getLogger().fineEnabled()) { getLogger().fine("The target Regions are(PGSEP) " + targetRs); } if (sender.getIsHDFSQueue()) this.queue = new HDFSParallelGatewaySenderQueue(this.sender, targetRs, this.index, this.nDispatcher); else this.queue = new ParallelGatewaySenderQueue(this.sender, targetRs, this.index, this.nDispatcher); if(((ParallelGatewaySenderQueue)queue).localSize() > 0) { ((ParallelGatewaySenderQueue)queue).notifyEventProcessorIfRequired(); } }
((GemFireCacheImpl)getCache()).gatewaySenderStopped(this);
final GemFireCacheImpl cache = (GemFireCacheImpl)getCache(); cache.getPdxRegistry().gatewaySenderStarted(this); new UpdateAttributesProcessor(this).distribute(false);
GemFireCacheImpl cache = (GemFireCacheImpl)this.sender.getCache(); Region region = (PartitionedRegion)cache.getRegion(regionPath); if (region != null && !region.isDestroyed()) {
.getCache()).getApplicationRegions()) { if (pr.getAllGatewaySenderIds().contains(sender.getId())) { targetRs.add(pr);
return; GemFireCacheImpl cache = (GemFireCacheImpl)sender.getCache(); final String prQName = sender.getId() + QSTRING + convertPathToName(userRegion.getFullPath()); prQ = (PartitionedRegion)cache.getRegion(prQName);
return; GemFireCacheImpl cache = (GemFireCacheImpl)sender.getCache(); boolean isAccessor = (userPR.getLocalMaxMemory() == 0);