[infinispan-issues] [JBoss JIRA] (ISPN-3750) Configuration.toProperties

Michal Linhard (JIRA) jira-events at lists.jboss.org
Tue Nov 26 12:53:07 EST 2013


    [ https://issues.jboss.org/browse/ISPN-3750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926882#comment-12926882 ] 

Michal Linhard commented on ISPN-3750:
--------------------------------------

Pull request based on https://github.com/mlinhard/infinispan/tree/t_ispn_3750_alt1

This proposal is different from previous one in that Configuration and GlobalConfiguration classes stay untouched, I just added the reflector class PropertyFormatter as an implementation of the Formatter interface.

However I left the JMX interface as it was - offering a concrete choce of PropertyFormatter as configurationProperties and globalConfigurationProperties methods so that the JMX calls remain simple.
                
> Configuration.toProperties
> --------------------------
>
>                 Key: ISPN-3750
>                 URL: https://issues.jboss.org/browse/ISPN-3750
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Configuration
>    Affects Versions: 6.0.0.Final
>            Reporter: Michal Linhard
>            Assignee: Michal Linhard
>
> I'd like to add methods
> Configuration.toProperties() and
> GlobalConfiguration.toProperties()
> that would return current configuration values in flat key value structure (e.g. java.util.Properties) where property keys would reflect names of configuration fields and structure would be reflected by extending the key prefix and dividing by dot. e.g. clustering.hash.numOwners=2
> The least intrusive and maintenance demanding implementation is via Reflection.
> The flat configuration would be exposed via JMX objects, e.g.
> jboss.infinispan:type=Cache,name="testCache(dist_sync)",manager="default",component=Cache
> attribute "configurationProperties"
> jboss.infinispan:type=CacheManager,name="default",component=CacheManager
> attribute "globalConfigurationProperties"
> This is a diagnostic output feature and doesn't affect the way how Infinispan is configured.

--
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


More information about the infinispan-issues mailing list