protected Set getRecipients() { CacheDistributionAdvisor advisor = getRegion() .getCacheDistributionAdvisor(); this.originalRecipients = advisor.adviseCacheOp(); return this.originalRecipients; }
protected Set getRecipients() { CacheDistributionAdvisor advisor = getRegion() .getCacheDistributionAdvisor(); this.originalRecipients = advisor.adviseCacheOp(); return this.originalRecipients; }
@SuppressWarnings({ "unchecked", "rawtypes" }) public Set<DistributedMember> getMembers(Region r) { if (r instanceof DistributedRegion) { DistributedRegion d = (DistributedRegion) r; return (Set)d.getDistributionAdvisor().adviseCacheOp(); } else if (r instanceof PartitionedRegion) { PartitionedRegion p = (PartitionedRegion) r; return p.getRegionAdvisor().adviseAllPRNodes(); } else { return Collections.emptySet(); } }
public Set<DistributedMember> getMembers(Region r) { if (r instanceof DistributedRegion) { DistributedRegion d = (DistributedRegion) r; return d.getDistributionAdvisor().adviseCacheOp(); } else if (r instanceof PartitionedRegion) { PartitionedRegion p = (PartitionedRegion) r; return p.getRegionAdvisor().adviseAllPRNodes(); } else { return Collections.EMPTY_SET; } }
public static VersionTag findVersionTag(LocalRegion r, EventID eventId, boolean isBulkOp) { DM dm = r.getDistributionManager(); Set recipients; if (r instanceof DistributedRegion) { recipients = ((DistributedRegion)r).getDistributionAdvisor().adviseCacheOp(); } else { recipients = ((PartitionedRegion)r).getRegionAdvisor().adviseDataStore(); } ResultReplyProcessor processor = new ResultReplyProcessor(dm, recipients); FindVersionTagMessage msg = new FindVersionTagMessage(recipients, processor.getProcessorId(), r.getFullPath(), eventId, isBulkOp); dm.putOutgoing(msg); try { processor.waitForReplies(); } catch (InterruptedException e) { dm.getCancelCriterion().checkCancelInProgress(e); Thread.currentThread().interrupt(); return null; } return processor.getVersionTag(); }
public static VersionTag findVersionTag(LocalRegion r, EventID eventId, boolean isPutAll) { DM dm = r.getDistributionManager(); Set recipients; if (r instanceof DistributedRegion) { recipients = ((DistributedRegion)r).getDistributionAdvisor().adviseCacheOp(); } else { recipients = ((PartitionedRegion)r).getRegionAdvisor().adviseDataStore(); } ResultReplyProcessor processor = new ResultReplyProcessor(dm, recipients); FindVersionTagMessage msg = new FindVersionTagMessage(recipients, processor.getProcessorId(), r.getFullPath(), eventId, isPutAll); dm.putOutgoing(msg); try { processor.waitForReplies(); } catch (InterruptedException e) { dm.getCancelCriterion().checkCancelInProgress(e); Thread.currentThread().interrupt(); return null; } return processor.getVersionTag(); }
/** pause local operations so that a clear() can be performed and flush comm channels to the given member */ public void lockLocallyForClear(DM dm, InternalDistributedMember locker) { RegionVersionVector rvv = getVersionVector(); if (rvv != null) { // block new operations from being applied to the region map rvv.lockForClear(getFullPath(), dm, locker); //Check for region destroyed after we have locked, to make sure //we don't continue a clear if the region has been destroyed. checkReadiness(); // wait for current operations to if (!locker.equals(dm.getDistributionManagerId())) { Set<InternalDistributedMember> mbrs = getDistributionAdvisor().adviseCacheOp(); StateFlushOperation.flushTo(mbrs, this); } } }
/** pause local operations so that a clear() can be performed and flush comm channels to the given member */ public void lockLocallyForClear(DM dm, InternalDistributedMember locker) { RegionVersionVector rvv = getVersionVector(); if (rvv != null) { // block new operations from being applied to the region map rvv.lockForClear(getFullPath(), dm, locker); //Check for region destroyed after we have locked, to make sure //we don't continue a clear if the region has been destroyed. checkReadiness(); // wait for current operations to if (!locker.equals(dm.getDistributionManagerId())) { Set<InternalDistributedMember> mbrs = getDistributionAdvisor().adviseCacheOp(); StateFlushOperation.flushTo(mbrs, this); } } }
return advisor.adviseUpdate(event); return advisor.adviseCacheOp(); return advisor.adviseCacheOp(); return advisor.adviseCacheOp();
public void run() { CacheDistributionAdvisor advisor = ((DistributedRegion)proxy .getHARegionQueue().getRegion()).getCacheDistributionAdvisor(); Set members = advisor.adviseCacheOp(); // Send client blacklist message ClientBlacklistProcessor.sendBlacklistedClient(proxy.getProxyID(), dm, members); // close the proxy for slow receiver. proxy.close(false, false); removeClientProxy(proxy); if (PoolImpl.AFTER_QUEUE_DESTROY_MESSAGE_FLAG) { ClientServerObserver bo = ClientServerObserverHolder.getInstance(); bo.afterQueueDestroyMessage(); } // send remove from blacklist. RemoveClientFromBlacklistMessage rcm = new RemoveClientFromBlacklistMessage(); rcm.setProxyID(proxy.getProxyID()); dm.putOutgoing(rcm); blackListedClients.remove(proxy.getProxyID()); } });
public void run() { CacheDistributionAdvisor advisor = ((DistributedRegion)proxy .getHARegionQueue().getRegion()).getCacheDistributionAdvisor(); Set members = advisor.adviseCacheOp(); // Send client blacklist message ClientBlacklistProcessor.sendBlacklistedClient(proxy.getProxyID(), dm, members); // close the proxy for slow receiver. proxy.close(false, false); removeClientProxy(proxy); if (PoolImpl.AFTER_QUEUE_DESTROY_MESSAGE_FLAG) { BridgeObserver bo = BridgeObserverHolder.getInstance(); bo.afterQueueDestroyMessage(); } // send remove from blacklist. RemoveClientFromBlacklistMessage rcm = new RemoveClientFromBlacklistMessage(); rcm.setProxyID(proxy.getProxyID()); dm.putOutgoing(rcm); blackListedClients.remove(proxy.getProxyID()); } });
&& !((DistributedRegion)this).scope.isDistributedNoAck() && ((DistributedRegion)this).getCacheDistributionAdvisor() .adviseCacheOp().size() > 0) { extractDelta = true;
&& !((DistributedRegion)this).scope.isDistributedNoAck() && ((DistributedRegion)this).getCacheDistributionAdvisor() .adviseCacheOp().size() > 0) { extractDelta = true;