+ "<th>Last Update</th>"
+ "</tr>\n";
for (int i = 0; i < counters.length; i++)
{
MessageCounter counter = counters[i];
String type = counter.isDestinationTopic() ? "Topic" : "Queue";
String subscription = counter.getDestinationSubscription();
if (subscription == null)
{
subscription = "-";
}
String durableStr = "-"; // makes no sense for a queue
if (counter.isDestinationTopic())
{
durableStr = Boolean.toString(counter.isDestinationDurable());
}
ret += "<tr bgcolor=\"#" + (i % 2 == 0 ? "FFFFFF" : "F0F0F0") + "\">";
ret += "<td>" + type + "</td>";
ret += "<td>" + counter.getDestinationName() + "</td>";
ret += "<td>" + subscription + "</td>";
ret += "<td>" + durableStr + "</td>";
ret += "<td>" + counter.getCount() + "</td>";
ret += "<td>" + MessageCounterHelper.prettify(counter.getCountDelta()) + "</td>";
ret += "<td>" + MessageCounterHelper.prettify(counter.getMessageCount()) + "</td>";
ret += "<td>" + MessageCounterHelper.prettify(counter.getMessageCountDelta()) + "</td>";
ret += "<td>" + MessageCounterHelper.asDate(counter.getLastAddedMessageTime()) + "</td>";
ret += "<td>" + MessageCounterHelper.asDate(counter.getLastUpdate()) + "</td>";
ret += "</tr>\n";
}
ret += "</table>\n";