public void registerProcessor() { if (processor != null) { this.processorId = this.processor.register(); } this.directAck = false; }
@Override protected void postFinish() { super.postFinish(); setReplyException(); }
protected void setReplyProcessor(DirectReplyProcessor p) { this.processor = p; this.processorId = p.getProcessorId(); if (this.isSevereAlertCompatible()) { p.enableSevereAlertProcessing(); } }
@Override public void process(DistributionMessage msg) { this.responseReceived = true; super.process(msg); } }
@Override protected boolean removeMember(InternalDistributedMember m, boolean departed) { if(isExpectingDirectReply()) { return true; } else { return super.removeMember(m, departed); } }
EntryEventImpl event, PartitionedRegion r, DirectReplyProcessor processor) this.processorId = processor == null? 0 : processor.getProcessorId(); this.notificationOnly = true;
LocalizedStrings.DirectChannel_VIEW_NO_LONGER_HAS_0_AS_AN_ACTIVE_MEMBER_SO_WE_WILL_NO_LONGER_WAIT_FOR_IT, c.getRemoteAddress())); processor.memberDeparted(c.getRemoteAddress(), true);
@Override public void process(DistributionMessage msg) { this.responseReceived = true; super.process(msg); } }
@Override protected boolean stillWaiting() { if(isExpectingDirectReply()) { return false; } else { return super.stillWaiting(); } }
/** * relay this message to another set of recipients for event notification * @param cacheOpRecipients recipients of associated bucket CacheOperationMessage * @param adjunctRecipients recipients who unconditionally get the message * @param filterRoutingInfo routing information for all recipients * @param event the event causing this message * @param r the region being operated on * @param processor the reply processor to be notified */ public Set relayToListeners(Set cacheOpRecipients, Set adjunctRecipients, FilterRoutingInfo filterRoutingInfo, EntryEventImpl event, PartitionedRegion r, DirectReplyProcessor processor) { LogWriterI18n log = r.getCache().getLoggerI18n(); this.processorId = processor == null? 0 : processor.getProcessorId(); this.notificationOnly = true; if(!adjunctRecipients.isEmpty()) { resetRecipients(); this.setFilterInfo(filterRoutingInfo); setRecipients(adjunctRecipients); if (DistributionManager.VERBOSE) { log.fine("Relaying partition message to other processes for listener notification"); } return r.getDistributionManager().putOutgoing(this); } return null; }
LocalizedStrings.DirectChannel_VIEW_NO_LONGER_HAS_0_AS_AN_ACTIVE_MEMBER_SO_WE_WILL_NO_LONGER_WAIT_FOR_IT, c.getRemoteAddress()); processor.memberDeparted(c.getRemoteAddress(), true);
public void registerProcessor() { if (processor != null) { this.processorId = this.processor.register(); } this.directAck = false; }
public void initMessage(PartitionedRegion r, Set recipients, boolean notifyOnly, DirectReplyProcessor p) { setInternalDs(r.getSystem()); setDirectAck(false); this.resetRecipients(); if (recipients != null) { setRecipients(recipients); } this.regionId = r.getPRId(); this.processor = p; this.processorId = p==null? 0 : p.getProcessorId(); if (p != null && this.isSevereAlertCompatible()) { p.enableSevereAlertProcessing(); } this.notificationOnly = notifyOnly; }
@Override protected void postFinish() { super.postFinish(); setReplyException(); }
@Override public void process(DistributionMessage msg) { this.responseReceived = true; super.process(msg); } }
@Override protected boolean stillWaiting() { if(isExpectingDirectReply()) { return false; } else { return super.stillWaiting(); } }
protected void initMessage(CacheOperationMessage msg, DirectReplyProcessor p) { final DistributedRegion region = getRegion(); msg.regionPath = region.getFullPath(); msg.processorId = p == null ? 0 : p.getProcessorId(); msg.processor = p; if (this.event.getOperation().isEntry()) { EntryEventImpl entryEvent = getEvent(); msg.callbackArg = entryEvent.getRawCallbackArgument(); msg.possibleDuplicate = entryEvent.isPossibleDuplicate(); VersionTag tag = entryEvent.getVersionTag(); msg.setInhibitNotificationsBit(entryEvent.inhibitAllNotifications()); if (tag != null && tag.hasValidVersion()) { msg.setVersionTag(tag); } } else { msg.callbackArg = ((RegionEventImpl)this.event).getRawCallbackArgument(); } msg.op = this.event.getOperation(); msg.owner = this; msg.regionAllowsConflation = region.getEnableAsyncConflation(); }
public void registerProcessor() { this.processorId = processor.register(); } }
public void initMessage(PartitionedRegion r, Set recipients, boolean notifyOnly, DirectReplyProcessor p) { setInternalDs(r.getSystem()); setDirectAck(false); this.resetRecipients(); if (recipients != null) { setRecipients(recipients); } this.regionId = r.getPRId(); this.processor = p; this.processorId = p==null? 0 : p.getProcessorId(); if (p != null && this.isSevereAlertCompatible()) { p.enableSevereAlertProcessing(); } this.notificationOnly = notifyOnly; }
@Override protected void postFinish() { super.postFinish(); setReplyException(); }