/** * Processes this message. This method is invoked by the receiver * of the message. * @param dm the distribution manager that is processing the message. */ @Override public void process(final DM dm, final ReplyProcessor21 rp) { final long startTime = getTimestamp(); if (rp == null) { if (logger.isTraceEnabled(LogMarker.DM)) { logger.trace(LogMarker.DM, "{}: processor not found", this); } return; } if (rp instanceof PutAllResponse) { PutAllResponse processor = (PutAllResponse)rp; processor.setResponse(this); } rp.process(this); if (logger.isTraceEnabled(LogMarker.DM)) { logger.trace(LogMarker.DM, "{} processed {}", rp, this); } dm.getStats().incReplyMessageTime(NanoTimer.getTime()-startTime); }
/** * Processes this message. This method is invoked by the receiver * of the message. * @param dm the distribution manager that is processing the message. */ @Override public void process(final DM dm, final ReplyProcessor21 rp) { final long startTime = getTimestamp(); LogWriterI18n l = dm.getLoggerI18n(); if (DistributionManager.VERBOSE) { l.fine("PutAllReplyMessage process invoking reply processor with id=" + this.processorId + ":exception=" + getException()); } //dm.getLogger().warning("PutAllResponse processor is " + ReplyProcessor21.getProcessor(this.processorId)); if (rp == null) { if (DistributionManager.VERBOSE) { l.fine(this.toString() + ": processor not found"); } return; } if (rp instanceof PutAllResponse) { PutAllResponse processor = (PutAllResponse)rp; processor.setResponse(this); } rp.process(this); if (DistributionManager.VERBOSE) { l.info(LocalizedStrings.PutMessage_0__PROCESSED__1, new Object[] {rp, this}); } dm.getStats().incReplyMessageTime(NanoTimer.getTime()-startTime); }