CountStatistic cStat = (CountStatistic) statistic;
long count = cStat.getCount();
mbeanStat.add(new String[] { "Count",
Long.toString(count) });
} else if (statistic instanceof TimeStatistic) {
TimeStatistic tStat = (TimeStatistic) statistic;
long count = tStat.getCount();
mbeanStat.add(new String[] { "Count",
Long.toString(count) });
String maxTime = TimeUtils.formatDuration(tStat.getMaxTime());
mbeanStat.add(new String[] { "Max Time",
maxTime });
String minTime = TimeUtils.formatDuration(tStat.getMinTime());
mbeanStat.add(new String[] { "Min Time",
minTime });
long totalTime = tStat.getTotalTime();
mbeanStat.add(new String[] { "Total Time",
Long.toString(totalTime) });
} else if (statistic instanceof BoundedRangeStatistic) {
BoundedRangeStatistic brStat = (BoundedRangeStatistic) statistic;
long upperBound = brStat.getUpperBound();