You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jl...@apache.org on 2007/10/17 10:47:40 UTC

svn commit: r585413 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx: BrokerView.java BrokerViewMBean.java

Author: jlim
Date: Wed Oct 17 01:47:38 2007
New Revision: 585413

URL: http://svn.apache.org/viewvc?rev=585413&view=rev
Log:
updates for https://issues.apache.org/activemq/browse/AMQ-1311

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java?rev=585413&r1=585412&r2=585413&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java Wed Oct 17 01:47:38 2007
@@ -53,6 +53,10 @@
     public String getBrokerId() {
         return broker.getBrokerId().toString();
     }
+    
+    public String getBrokerName() {
+        return broker.getBrokerName();
+    }    
 
     public void gc() throws Exception {
         brokerService.getBroker().gc();

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java?rev=585413&r1=585412&r2=585413&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java Wed Oct 17 01:47:38 2007
@@ -26,6 +26,11 @@
      * @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