https://issues.apache.org/jira/browse/AMQ-5289 - memory % stat was removed from dstat command. Bring it back

This commit is contained in:
Dejan Bosanac 2016-03-24 12:15:03 +01:00
parent c53b99c14d
commit 0f4a9b78b1
1 changed files with 6 additions and 6 deletions

View File

@ -81,8 +81,8 @@ public class DstatCommand extends AbstractJmxCommand {
String query = JmxMBeansUtil.createQueryString(queryString, "*");
List queueList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query);
final String header = "%-50s %10s %10s %10s %10s %10s %10s";
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d";
final String header = "%-50s %10s %10s %10s %10s %10s %10s %10s";
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d %10d";
// sort list so the names is A..Z
Collections.sort(queueList, new ObjectInstanceComparator());
@ -118,8 +118,8 @@ public class DstatCommand extends AbstractJmxCommand {
String query = JmxMBeansUtil.createQueryString(queryString, "Queue");
List queueList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query);
final String header = "%-50s %10s %10s %10s %10s %10s %10s";
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d";
final String header = "%-50s %10s %10s %10s %10s %10s %10s %10s";
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d %10d";
context.print(String.format(Locale.US, header, "Name", "Queue Size", "Producer #", "Consumer #", "Enqueue #", "Dequeue #", "Forward #", "Memory %"));
@ -154,8 +154,8 @@ public class DstatCommand extends AbstractJmxCommand {
String query = JmxMBeansUtil.createQueryString(queryString, "Topic");
List topicsList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query);
final String header = "%-50s %10s %10s %10s %10s %10s %10s";
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d";
final String header = "%-50s %10s %10s %10s %10s %10s %10s %10s";
final String tableRow = "%-50s %10d %10d %10d %10d %10d %10d %10d";
// sort list so the names is A..Z
Collections.sort(topicsList, new ObjectInstanceComparator());