Example #1
0
  /** 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());
  }
Example #2
0
 void onRunFinished(Stats stats) {
   summaryLabel.setText(
       "Started " + stats.getStartTime() + "; finished " + stats.getFinishTime() + ".");
 }
Example #3
0
 void onRunStarted(Stats stats) {
   summaryLabel.setText("Started " + stats.getStartTime());
 }