[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188283#comment-13188283
 ] 

[email protected] commented on BOOKKEEPER-95:
---------------------------------------------------------



bq.  On 2012-01-17 17:12:20, Ivan Kelly wrote:
bq.  > The bulk of the code in this patch could be removed if zookeeper's 
ZKMBeanRegistry was updated to allow easy extension. Have you looked at 
changing the ZK code? Of course, we'd need to continue to use the code in this 
patch until a version of zookeeper with the change is released, but i think it 
would make things cleaner.

yes. updating zookeeper MBeanRegistry would be better.

currently a hard coded DOMAIN is used in zookeeper MBeanRegistry#makeObjectName.

so it would be easy to extends MBeanRegistry#makeObjectName(path, bean) to 
MBeanRegistry#makeObjectName(domain, path, bean) to make things easier.


bq.  On 2012-01-17 17:12:20, Ivan Kelly wrote:
bq.  > 
bookkeeper-server/src/main/java/org/apache/bookkeeper/jmx/BKMBeanRegistry.java, 
line 39
bq.  > <https://reviews.apache.org/r/3451/diff/1/?file=67674#file67674line39>
bq.  >
bq.  >     Why is this static?

the code follows what zookeeper MBeanRegistry did. it tried to make 
MBeanRegistry a singleton. so it return instance in a static method 
#getInstance.


- Sijie


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/3451/#review4424
-----------------------------------------------------------


On 2012-01-11 01:04:57, Sijie Guo wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/3451/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-01-11 01:04:57)
bq.  
bq.  
bq.  Review request for bookkeeper.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  we can extends/reuses zookeeper JMX until to monitor and manage bookie 
server
bq.  
bq.  
bq.  This addresses bug BOOKKEEPER-95.
bq.      https://issues.apache.org/jira/browse/BOOKKEEPER-95
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    
bookkeeper-server/src/main/java/org/apache/bookkeeper/jmx/BKMBeanInfo.java 
PRE-CREATION 
bq.    
bookkeeper-server/src/main/java/org/apache/bookkeeper/jmx/BKMBeanRegistry.java 
PRE-CREATION 
bq.  
bq.  Diff: https://reviews.apache.org/r/3451/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Sijie
bq.  
bq.


                
> extends zookeeper JMX to monitor and manage bookie server
> ---------------------------------------------------------
>
>                 Key: BOOKKEEPER-95
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-95
>             Project: Bookkeeper
>          Issue Type: Sub-task
>          Components: bookkeeper-server
>    Affects Versions: 4.0.0
>            Reporter: Sijie Guo
>            Assignee: Sijie Guo
>             Fix For: 4.1.0
>
>         Attachments: BOOKKEEPER-95.patch, BOOKKEEPER-95.patch
>
>
> we can extends/reuses zookeeper JMX until to monitor and manage bookie server

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to