Package net.sf.ehcache.management

Examples of net.sf.ehcache.management.ManagementService


    MBeanServer mBeanServer = initMBeanServer();
    CacheManager cacheManager = getCacheManager();

    if (cacheManager != null) {

      ManagementService jmxService = new ManagementService(cacheManager, mBeanServer, true, true, true, true);
      repo.registerLifecycle(new CacheManagerLifecycle(jmxService));

    }

    return mBeanServer;
View Full Code Here


    MBeanServer jmx = repo.findInstance(MBeanServer.class);
    if (jmx != null) {
      Set<CacheManager> set = Collections.newSetFromMap(new IdentityHashMap<CacheManager, Boolean>());
      set.addAll(repo.getInstances(CacheManager.class));
      for (CacheManager mgr : set) {
        ManagementService jmxService = new ManagementService(mgr, jmx, true, true, true, true);
        repo.registerLifecycle(new CacheManagerLifecycle(jmxService));
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.ehcache.management.ManagementService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.