net.sf.ehcache.management.ManagementService Java Examples

The following examples show how to use net.sf.ehcache.management.ManagementService. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CacheService.java    From lutece-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Init JMX monitoring configuration
 */
private void initJmxMonitoring( )
{
    MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer( );

    boolean bRegisterCacheManager = AppPropertiesService.getProperty( PROPERTY_MONITOR_CACHE_MANAGER, FALSE ).equals( TRUE );
    boolean bRegisterCaches = AppPropertiesService.getProperty( PROPERTY_MONITOR_CACHES, FALSE ).equals( TRUE );
    boolean bRegisterCacheConfigurations = AppPropertiesService.getProperty( PROPERTY_MONITOR_CACHE_CONFIGURATIONS, FALSE ).equals( TRUE );
    boolean bRegisterCacheStatistics = AppPropertiesService.getProperty( PROPERTY_MONITOR_CACHE_STATISTICS, FALSE ).equals( TRUE );
    ManagementService.registerMBeans( _manager, mBeanServer, bRegisterCacheManager, bRegisterCaches, bRegisterCacheConfigurations,
            bRegisterCacheStatistics );
}
 
Example #2
Source File: EhCacheJmxRegistration.java    From sakai with Educational Community License v2.0 4 votes vote down vote up
public void register(CacheManager cacheManager)
{
	log.info("Registering Cache Provider with JMXBeanServer "+mBeanServer);
	ManagementService.registerMBeans(cacheManager, mBeanServer, registerCacheManager,
			registerCaches, registerCacheConfigurations, registerCacheStatistics);
}
 
Example #3
Source File: CacheInitMBean.java    From olat with Apache License 2.0 4 votes vote down vote up
private void register() {
    // register ehcache as MBean
    ManagementService.registerMBeans(CacheManager.getInstance(), server, true, true, true, true);
}
 
Example #4
Source File: CacheInitMBean.java    From olat with Apache License 2.0 4 votes vote down vote up
private void register() {
    // register ehcache as MBean
    ManagementService.registerMBeans(CacheManager.getInstance(), server, true, true, true, true);
}
 
Example #5
Source File: EhCacheJmxRegistration.java    From sakai with Educational Community License v2.0 4 votes vote down vote up
public void register(CacheManager cacheManager)
{
	log.info("Registering Cache Provider with JMXBeanServer "+mBeanServer);
	ManagementService.registerMBeans(cacheManager, mBeanServer, registerCacheManager,
			registerCaches, registerCacheConfigurations, registerCacheStatistics);
}