Package org.objectweb.perseus.pool.api

Examples of org.objectweb.perseus.pool.api.PoolAttributes


        conf = true;
      }
    }
    if (conf) {
      logger.log(BasicLevel.INFO, sb.toString());
          PoolAttributes poolAttr;
          try {
            poolAttr = (PoolAttributes)
              Fractal.getAttributeController(pool);
          } catch (Exception e) {
            Component[] children = Fractal.getContentController(speedo).getFcSubComponents();
            String[] strs= new String[children.length];
            for (int i = 0; i < strs.length; ++i) {
              strs[i] = Fractal.getNameController(children[i]).getFcName();
            }
            throw new RuntimeException("" + Arrays.asList(strs));
          }
      if (poolMaxSize > -2) {
        poolAttr.setMaxSize(poolMaxSize);
      }
      if (poolMinSize > -2) {
        poolAttr.setMinSize(poolMinSize);
      }
      if (poolTTL > -2) {
        poolAttr.setTTL(poolTTL);
      }
      if (poolInactiveTTL > -2) {
        poolAttr.setInactiveTTL(poolInactiveTTL);
      }
      if (poolTimeout > -2) {
        poolAttr.setTimeout(poolTimeout);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.objectweb.perseus.pool.api.PoolAttributes

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.