diff --git a/activemq-console/src/main/java/org/apache/activemq/console/command/DstatCommand.java b/activemq-console/src/main/java/org/apache/activemq/console/command/DstatCommand.java index c7b5f1003c..a0ccc367b0 100644 --- a/activemq-console/src/main/java/org/apache/activemq/console/command/DstatCommand.java +++ b/activemq-console/src/main/java/org/apache/activemq/console/command/DstatCommand.java @@ -81,13 +81,13 @@ public class DstatCommand extends AbstractJmxCommand { } } - private void displayAllDestinations() throws IOException, Exception { + private void displayAllDestinations() throws Exception { String query = JmxMBeansUtil.createQueryString(queryString, "*"); List queueList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query); - final String header = "%20s %10s %10s %10s %10s"; - final String tableRow = "%20s %10d %10d %10d %10d"; + final String header = "%-60s %10s %10s %10s %10s"; + final String tableRow = "%-60s %10d %10d %10d %10d"; context.print(String.format(Locale.US, header, "Name", "Pending", "Consumers", "Enqueued", "Dequeued")); @@ -106,13 +106,13 @@ public class DstatCommand extends AbstractJmxCommand { } } - private void displayQueueStats() throws IOException, Exception { + private void displayQueueStats() throws Exception { String query = JmxMBeansUtil.createQueryString(queryString, "Queue"); List queueList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query); - final String header = "%20s %10s %10s %10s %10s"; - final String tableRow = "%20s %10d %10d %10d %10d"; + final String header = "%-60s %10s %10s %10s %10s"; + final String tableRow = "%-60s %10d %10d %10d %10d"; context.print(String.format(Locale.US, header, "Name", "Pending", "Consumers", "Enqueued", "Dequeued")); @@ -131,13 +131,13 @@ public class DstatCommand extends AbstractJmxCommand { } } - private void displayTopicStats() throws IOException, Exception { + private void displayTopicStats() throws Exception { String query = JmxMBeansUtil.createQueryString(queryString, "Topic"); List topicsList = JmxMBeansUtil.queryMBeans(createJmxConnection(), query); - final String header = "%20s %10s %10s %10s"; - final String tableRow = "%20s %10d %10d %10d"; + final String header = "%-60s %10s %10s %10s"; + final String tableRow = "%-60s %10d %10d %10d"; context.print(String.format(Locale.US, header, "Name", "Consumers", "Enqueued", "Dequeued")); diff --git a/activemq-karaf/src/main/resources/OSGI-INF/blueprint/activemq-karaf.xml b/activemq-karaf/src/main/resources/OSGI-INF/blueprint/activemq-karaf.xml index 436f45befe..1a5d561d77 100644 --- a/activemq-karaf/src/main/resources/OSGI-INF/blueprint/activemq-karaf.xml +++ b/activemq-karaf/src/main/resources/OSGI-INF/blueprint/activemq-karaf.xml @@ -19,135 +19,161 @@ --> - - - - - - - - - - org.apache.felix.service.command.Function - org.apache.karaf.shell.console.CompletableFunction - - - - - - + + + + + + - - - - - + + + org.apache.felix.service.command.Function + org.apache.karaf.shell.console.CompletableFunction + + + + + + - - - - - - + + + + + - - - org.apache.felix.service.command.Function - org.apache.karaf.shell.console.CompletableFunction - - - - - - + + + + + + - - - - - + + + org.apache.felix.service.command.Function + org.apache.karaf.shell.console.CompletableFunction + + + + + + - - - - - - + + + + + - - - org.apache.felix.service.command.Function - org.apache.karaf.shell.console.CompletableFunction - - - - - - + + + + + + - - - - - + + + org.apache.felix.service.command.Function + org.apache.karaf.shell.console.CompletableFunction + + + + + + - - - - - - + + + + + - - - org.apache.felix.service.command.Function - org.apache.karaf.shell.console.CompletableFunction - - - - - - + + + + + + - - - - - + + + org.apache.felix.service.command.Function + org.apache.karaf.shell.console.CompletableFunction + + + + + + - - - - - - + + + + + - - - org.apache.felix.service.command.Function - org.apache.karaf.shell.console.CompletableFunction - - - - - - + + + + + + - - - - - + + + org.apache.felix.service.command.Function + org.apache.karaf.shell.console.CompletableFunction + + + + + + + + + + + + + + + + + + + + + + + org.apache.felix.service.command.Function + org.apache.karaf.shell.console.CompletableFunction + + + + + + + + + + + +