public final void dmProcess(final DM dm) { // TODO: because startTime uses getTimeStamp replyMessageTime // ends up measuring both messageProcessingScheduleTime and // processedMessagesTime. I'm not sure this was intended. // I've added this info to the stat description so update it // if the startTime changes. final long startTime = getTimestamp(); ReplyProcessor21 processor = ReplyProcessor21.getProcessor(processorId); try { this.process(dm, processor); if (DistributionStats.enableClockStats) { dm.getStats().incReplyMessageTime(DistributionStats.getStatTime()-startTime); } } catch (RuntimeException ex) { if (processor != null) { processor.cancel(getSender(), ex); } throw ex; } }
public final void dmProcess(final DM dm) { // TODO: because startTime uses getTimeStamp replyMessageTime // ends up measuring both messageProcessingScheduleTime and // processedMessagesTime. I'm not sure this was intended. // I've added this info to the stat description so update it // if the startTime changes. final long startTime = getTimestamp(); ReplyProcessor21 processor = ReplyProcessor21.getProcessor(processorId); try { this.process(dm, processor); if (DistributionManager.VERBOSE) { LogWriterI18n logger = dm.getLoggerI18n(); logger.info(LocalizedStrings.ReplyMessage_0__PROCESSED__1, new Object[] {processor, this}); } if (this.timeStatsEnabled) { dm.getStats().incReplyMessageTime( DistributionStats.getStatTimeNoCheck() - startTime); } } catch (RuntimeException ex) { if (processor != null) { processor.cancel(getSender(), ex); } throw ex; } }