[infinispan-issues] [JBoss JIRA] (ISPN-1884) Expose JMX statistics from Hibernate Search

Mircea Markus (JIRA) jira-events at lists.jboss.org
Tue Oct 30 20:26:36 EDT 2012


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

Mircea Markus updated ISPN-1884:
--------------------------------

    Fix Version/s: 5.2.0.CR1
                       (was: 5.2.0.Beta3)

    
> Expose JMX statistics from Hibernate Search
> -------------------------------------------
>
>                 Key: ISPN-1884
>                 URL: https://issues.jboss.org/browse/ISPN-1884
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: JMX, reporting and management
>    Affects Versions: 5.1.1.FINAL
>            Reporter: Mathieu Lachance
>            Assignee: Galder Zamarreño
>             Fix For: 5.2.0.CR1, 5.2.0.Final
>
>
> it is possible to add jmx hook to obtain Hibernate Search SearchFactory Statistics by using this property :
> <indexing enabled="true" indexLocalOnly="true">
>     <properties>
>         <property name="hibernate.search.jmx_enabled" value="true" />
>     </properties>
> </indexing>
> tough this property does not allow multiple registration (one registration per cache).
> it would be nice to wrap the Statistics object from HibernateSearch into the actual cache object mbean.
> i guess the implementation could look like this :
> // get search factory statistics
> org.hibernate.search.stat.Statistics statistics = Search.getSearchManager(org.infinispan.Cache).getSearchFactory().getStatistics();
> // wrap search factory statistics
> SearchFactoryStatisticMBean mbean = new SearchFactoryStatisticMBeanImpl(statistics);
> // expose mbean
> ManagementFactory.getPlatformMBeanServer().registerMBean(new ObjectName("..."), mbean);

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