public PoolingProfile(PoolingProfile pp) { this.maxActive = pp.getMaxActive(); this.maxIdle = pp.getMaxIdle(); this.maxWait = pp.getMaxWait(); this.exhaustedAction = pp.getExhaustedAction(); this.initialisationPolicy = pp.getInitialisationPolicy(); }
private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) { org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } return config; } }
private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) { org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } return config; } }
private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) { org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } return config; } }
private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) { org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } return config; } }
private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) { org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } return config; } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new StaffingModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new TimeTrackingModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new AbsenceModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new HumanResourcesModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new RecruitingModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new PayrollModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new PerformanceModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new CompensationModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new BenefitsModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new WorkforceModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new TalentModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() { GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config(); if (connectionPoolingProfile!= null) { config.maxIdle = connectionPoolingProfile.getMaxIdle(); config.maxActive = connectionPoolingProfile.getMaxActive(); config.maxWait = connectionPoolingProfile.getMaxWait(); config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction()); config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis(); config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis(); } connectionPool = new GenericKeyedObjectPool(new PayrollInterfaceModuleConnectionFactory(this), config); if (retryPolicyTemplate == null) { retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE); } }
public void initialise() throws InitialisationException { GenericObjectPool.Config config = new GenericObjectPool.Config(); if (poolingProfile != null) { config.maxIdle = poolingProfile.getMaxIdle(); config.maxActive = poolingProfile.getMaxActive(); config.maxWait = poolingProfile.getMaxWait(); config.whenExhaustedAction = (byte) poolingProfile.getExhaustedAction(); config.minEvictableIdleTimeMillis = poolingProfile.getMinEvictionMillis(); config.timeBetweenEvictionRunsMillis = poolingProfile.getEvictionCheckIntervalMillis(); } pool = new GenericObjectPool(getPooledObjectFactory(), config); try { applyInitialisationPolicy(); } catch (Exception e) { throw new InitialisationException(e, this); } }