@Override public String toString() { StringBuffer sb = new StringBuffer(); sb.append("PutAllReplyMessage ") .append("processorid=").append(this.processorId) .append(" returning ").append(this.result) .append(" exception=").append(getException()) .append(" versions= ").append(this.versions); return sb.toString(); }
@Override public StringBuilder getStringBuilder() { StringBuilder sb = super.getStringBuilder(); if (getException() == null) { sb.append(" returning result=").append(this.result); } sb.append(" versions=").append(this.versions); return sb; } }
/** * 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); }