Package com.googlecode.jmxtrans.monitoring

Examples of com.googlecode.jmxtrans.monitoring.ManagedGenericKeyedObjectPool


    pool.setMaxIdle(-1);
    pool.setTimeBetweenEvictionRunsMillis(1000 * 60 * 5);
    pool.setMinEvictableIdleTimeMillis(1000 * 60 * 5);

    try {
      ManagedGenericKeyedObjectPool mbean =
          new ManagedGenericKeyedObjectPool(
              pool,
              poolName);
      ManagementFactory.getPlatformMBeanServer()
          .registerMBean(mbean, mbean.getObjectName());
    } catch (Exception e) {
      log.error("Could not register mbean for pool [{}]", poolName, e);
    }

    return pool;
View Full Code Here


      pool.setMaxActive(-1);
      pool.setMaxIdle(-1);
      pool.setTimeBetweenEvictionRunsMillis(1000 * 60 * 5);
      pool.setMinEvictableIdleTimeMillis(1000 * 60 * 5);

      this.mbean = new ManagedGenericKeyedObjectPool((GenericKeyedObjectPool) pool, "StatsdConnectionPool");
      ManagementFactory.getPlatformMBeanServer()
          .registerMBean(this.mbean, this.mbean.getObjectName());
    } catch (Exception e) {
      throw new LifecycleException(e);
    }
View Full Code Here

TOP

Related Classes of com.googlecode.jmxtrans.monitoring.ManagedGenericKeyedObjectPool

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.