zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject svn commit: r1711694 - in /zookeeper/trunk: CHANGES.txt src/java/main/org/apache/zookeeper/server/ObserverBean.java
Date Sat, 31 Oct 2015 22:18:39 GMT
Author: michim
Date: Sat Oct 31 22:18:39 2015
New Revision: 1711694

URL: http://svn.apache.org/viewvc?rev=1711694&view=rev
Log:
ZOOKEEPER-2142: JMX ObjectName is incorrect for observers (Edward Ribeiro via michim)

Modified:
    zookeeper/trunk/CHANGES.txt
    zookeeper/trunk/src/java/main/org/apache/zookeeper/server/ObserverBean.java

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1711694&r1=1711693&r2=1711694&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Sat Oct 31 22:18:39 2015
@@ -193,6 +193,9 @@ BUGFIXES:
   ZOOKEEPER-2302: Some test cases are not running because wrongly named
   (Arshad Mohammad via fpj)
 
+  ZOOKEEPER-2142: JMX ObjectName is incorrect for observers (Edward Ribeiro
+  via michim)
+
 IMPROVEMENTS:
   ZOOKEEPER-1660 Documentation for Dynamic Reconfiguration (Reed Wanderman-Milne via shralex)
 
 

Modified: zookeeper/trunk/src/java/main/org/apache/zookeeper/server/ObserverBean.java
URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/ObserverBean.java?rev=1711694&r1=1711693&r2=1711694&view=diff
==============================================================================
--- zookeeper/trunk/src/java/main/org/apache/zookeeper/server/ObserverBean.java (original)
+++ zookeeper/trunk/src/java/main/org/apache/zookeeper/server/ObserverBean.java Sat Oct 31
22:18:39 2015
@@ -34,6 +34,10 @@ public class ObserverBean extends ZooKee
         this.observer = observer;
     }
 
+    public String getName() {
+        return "Observer";
+    }
+
     public int getPendingRevalidationCount() {
        return this.observer.getPendingRevalidationsCount(); 
     }



Mime
View raw message