@Override public String createFormattedOutput() { final StringBuilder sb = new StringBuilder(30); sb.append("min: ") .append(this.getMinimalResponseTime()) .append(this.timeUnitShortname) .append(", avg: ") .append(Math.round(this.getAverageResponseTime())) .append(this.timeUnitShortname) .append(", max: ") .append(this.getMaximalResponseTime()) .append(this.timeUnitShortname) .append(",\\ntotal: ") .append(this.getTotalResponseTime()) .append(this.timeUnitShortname); return sb.toString(); }
@Override public void processMessage(final AbstractMessage message, final DependencyGraphNode<?> sourceNode, final DependencyGraphNode<?> targetNode, final TimeUnit timeunit) { // Ignore internal executions if (sourceNode.equals(targetNode)) { return; } ResponseTimeDecoration timeDecoration = targetNode.getDecoration(ResponseTimeDecoration.class); if (timeDecoration == null) { timeDecoration = new ResponseTimeDecoration(timeunit, this.displayTimeunit); targetNode.addDecoration(timeDecoration); } timeDecoration.registerExecution(message.getReceivingExecution()); }