protected void setReplyProcessor(DirectReplyProcessor p) { this.processor = p; this.processorId = p.getProcessorId(); if (this.isSevereAlertCompatible()) { p.enableSevereAlertProcessing(); } }
EntryEventImpl event, PartitionedRegion r, DirectReplyProcessor processor) this.processorId = processor == null? 0 : processor.getProcessorId(); this.notificationOnly = true;
/** * 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; }
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; }
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; }
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; }
RemoteRemoveAllMessage(EntryEventImpl event, Set recipients, DirectReplyProcessor p, RemoveAllEntryData[] removeAllData, int removeAllDataCount, boolean useOriginRemote, int processorType, boolean possibleDuplicate) { super(recipients, event.getRegion().getFullPath(), p); this.resetRecipients(); if (recipients != null) { setRecipients(recipients); } this.processor = p; this.processorId = p==null? 0 : p.getProcessorId(); if (p != null && this.isSevereAlertCompatible()) { p.enableSevereAlertProcessing(); } this.removeAllData = removeAllData; this.removeAllDataCount = removeAllDataCount; this.posDup = possibleDuplicate; this.eventId = event.getEventId(); this.callbackArg = event.getCallbackArgument(); }
RemotePutAllMessage(EntryEventImpl event, Set recipients, DirectReplyProcessor p, PutAllEntryData[] putAllData, int putAllDataCount, boolean useOriginRemote, int processorType, boolean possibleDuplicate, boolean skipCallbacks) { super(recipients, event.getRegion().getFullPath(), p); this.resetRecipients(); if (recipients != null) { setRecipients(recipients); } this.processor = p; this.processorId = p==null? 0 : p.getProcessorId(); if (p != null && this.isSevereAlertCompatible()) { p.enableSevereAlertProcessing(); } this.putAllData = putAllData; this.putAllDataCount = putAllDataCount; // this.useOriginRemote = useOriginRemote; // this.processorType = processorType; this.posDup = possibleDuplicate; this.eventId = event.getEventId(); this.skipCallbacks = skipCallbacks; this.callbackArg = event.getCallbackArgument(); this.isPutDML = event.isPutDML(); }
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(); }
protected void initMessage(CacheOperationMessage msg, DirectReplyProcessor p) { msg.regionPath = getRegion().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 = getRegion().getEnableAsyncConflation(); }