/** Updates the labels in the UI based on the values in {@link #stats}. */ void updateStatsLabels(Stats stats) { messageSendBytes.setText("" + stats.getSentBytes() + " bytes"); messageSendCount.setText("" + stats.getSentMessages()); inFlightCount.setText("" + stats.getInflightMessages()); inFlightAvg.setText("" + renderer.render(stats.getAverageWaitTime()) + " ms/resp"); messageRecvBytes.setText("" + stats.getReceivedBytes() + " bytes"); messageRecvCount.setText("" + stats.getReceivedMessages()); }
void onRunFinished(Stats stats) { summaryLabel.setText( "Started " + stats.getStartTime() + "; finished " + stats.getFinishTime() + "."); }
void onRunStarted(Stats stats) { summaryLabel.setText("Started " + stats.getStartTime()); }