From 89f793efb0dc184117aa196eeb4238fe6046bd0b Mon Sep 17 00:00:00 2001 From: "Jonas B. Lim" Date: Wed, 17 Oct 2007 08:47:38 +0000 Subject: [PATCH] updates for https://issues.apache.org/activemq/browse/AMQ-1311 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@585413 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/activemq/broker/jmx/BrokerView.java | 4 ++++ .../java/org/apache/activemq/broker/jmx/BrokerViewMBean.java | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java index ec8cd8b0f6..de23693349 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java @@ -53,6 +53,10 @@ public class BrokerView implements BrokerViewMBean { public String getBrokerId() { return broker.getBrokerId().toString(); } + + public String getBrokerName() { + return broker.getBrokerName(); + } public void gc() throws Exception { brokerService.getBroker().gc(); diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java index 5f6d90f257..f206911776 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java @@ -26,6 +26,11 @@ public interface BrokerViewMBean extends Service { * @return The unique id of the broker. */ String getBrokerId(); + + /** + * @return The name of the broker. + */ + String getBrokerName(); /** * The Broker will fush it's caches so that the garbage collector can