[jboss-jira] [JBoss JIRA] Resolved: (JGRP-834) Protocol: dumpStats() should dump all JMX information

Vladimir Blagojevic (JIRA) jira-events at lists.jboss.org
Fri Oct 10 09:53:21 EDT 2008


     [ https://jira.jboss.org/jira/browse/JGRP-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Blagojevic resolved JGRP-834.
--------------------------------------

    Resolution: Done


Adjusted Protocol#dumpStats to dump all @ManagedAttribute annotated fields and @ManagedAttribute annotated read methods found in a class hierarchy of that Protocol.

> Protocol: dumpStats() should dump all JMX information
> -----------------------------------------------------
>
>                 Key: JGRP-834
>                 URL: https://jira.jboss.org/jira/browse/JGRP-834
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Bela Ban
>            Assignee: Vladimir Blagojevic
>            Priority: Minor
>             Fix For: 2.7
>
>
> Protocol.dumpStats() can be overridden by protocols, but few actually do this.
> Since we have now annotations to find all of the attrs exposed for JMX, we should do the following in Protocol.dumpStats():
> - Iterate though all protocols
> - For each protocol P:
>   - Find all JMX attributes
>   - For each attribute:
>     - Get the name and value (toString() or "null" if null)
>     - Add the name and value to the hashmap
> - Return the hashmap
> Protocols overriding dumpStats() will selectively override values already present in the hashmap

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list