Examples of PoolManager


Examples of org.d_haven.mpool.PoolManager

        {
            m_poolManager = (PoolManager) m_rootContext.get( PoolManager.class.getName() );
        }
        catch ( ContextException ce )
        {
            final PoolManager pm = new DefaultPoolManager( m_commandManager );
            assumeOwnership( pm );
            m_poolManager = pm;
        }
    }
View Full Code Here

Examples of org.d_haven.mpool.PoolManager

        {
            m_poolManager = (PoolManager) m_rootContext.get( PoolManager.class.getName() );
        }
        catch ( ContextException ce )
        {
            final PoolManager pm = new DefaultPoolManager( m_commandManager );
            assumeOwnership( pm );
            m_poolManager = pm;
        }
    }
View Full Code Here

Examples of org.xmlBlaster.util.pool.PoolManager

            idleToErase = glob.getProperty().get("JdbcPool.idleToEraseTimeout", 10*60*1000L); // How long does an unused connection survive (10 min)

         this.maxResourceExhaustRetries = glob.getProperty().get("JdbcPool.maxResourceExhaustRetries", 5);
         resourceExhaustSleepGap = glob.getProperty().get("JdbcPool.resourceExhaustSleepGap", 1000);   // milli

         poolManager = new PoolManager(ME, this, maxInstances, busyToIdle, idleToErase);
         if (this.eraseUnusedPoolTimeout >= 1000L)
            synchronized(this.timeoutMonitor) {
               this.timeoutHandle = this.poolManager.getTransistionTimer().addTimeoutListener(this, this.eraseUnusedPoolTimeout, "dummy");
            }
      }
View Full Code Here

Examples of org.xmlBlaster.util.pool.PoolManager

      long idleToErase = this.info.getLong("db.idleToEraseTimeout", 120*60*1000L);
      this.maxResourceExhaustRetries = this.info.getInt("db.maxResourceExhaustRetries", 5);
      // millis
      this.resourceExhaustSleepGap = this.info.getLong("db.resourceExhaustSleepGap", 1000);
      initDrivers();
      this.poolManager = new PoolManager("DbPool", this, maxInstances, busyToIdle, idleToErase);
      this.initCount++;
      String createInterceptorClass = info.get("db.createInterceptor.class", null);
      if (createInterceptorClass != null) {
         ClassLoader cl = this.getClass().getClassLoader();
         try {
View Full Code Here

Examples of org.xmlBlaster.util.pool.PoolManager

    */
   class TestPool implements I_PoolManager {
      private int counter = 0;
      PoolManager poolManager;
      TestPool(int maxInstances, long busyToIdle, long idleToErase) {
         poolManager = new PoolManager(ME, this, maxInstances, busyToIdle, idleToErase);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.