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

Felix Meschberger commented on SLING-2999:
------------------------------------------

I like this.

But why introduce a new namespace "mbean" ? To prevent collisions with the 
ObjectName properties ? Could this be solved without a namespace ?
                
> JMX Resource Provider
> ---------------------
>
>                 Key: SLING-2999
>                 URL: https://issues.apache.org/jira/browse/SLING-2999
>             Project: Sling
>          Issue Type: New Feature
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>
> For easier rendering of JMX mbeans within Sling,  a special resource provider 
> should make the JMX information available at 
> */system/sling/monitoring/mbeans* (Configurable)
> /system/sling/monitoring/mbeans  - resource type = sling:mbeans
>                                  + resource sub tree with all mbeans 
> An MBean has an object name which has
> * a domain
> * properties where type and name are very common
> The domain is converted into a sub path and the properties are converted to a 
> resource name. For example: _org.apache.sling:name=test,type=hello_ creates a 
> resource _org/apache/sling/name=test,type=hello_. The name can be obtained by 
> calling _ObjectName.getCanonicalKeyPropertyListString()_. The result might 
> need escaping (for the values and the = character) in order to create valid 
> resource names.
> Each MBean resource has at least:
> ||Property name ||Description|
> |sling:resourceType|object name of the MBean|
> |sling:resourceSuperType| sling:mbean|
> |mbean:description|The description of the MBean (optional)|
> |mbean:className|MBean class name|
> |mbean:objectName|MBean object name|
> |mbean properties|separate property for each property of the object name|
> And a child resource named _mbean:attributes_ if the MBean has attributes. 
> For each attribute a child resource of _mbean:attributes_ is created where 
> the name of the resource is the name of the attribute and:
> ||Property name ||Description|
> |sling:resourceType|Type of the attribute|
> |sling:resourceSuperType| sling:mbeanattribute|
> |mbean:description|The description of the attribute (optional)|
> |mbean:value|String representation of the value or a string array for multi 
> values|

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to