org.apache.ojb.broker.core
Class PBPoolInfo

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by org.apache.ojb.broker.util.pooling.PoolConfiguration
                  extended by org.apache.ojb.broker.core.PBPoolInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>, AttributeContainer, org.apache.ojb.broker.util.configuration.Configurable

public class PBPoolInfo
extends org.apache.ojb.broker.util.pooling.PoolConfiguration
implements org.apache.ojb.broker.util.configuration.Configurable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.ojb.broker.util.pooling.PoolConfiguration
DEFAULT_LOG_ABANDONED, DEFAULT_MAX_ACTIVE, DEFAULT_MAX_IDLE, DEFAULT_MAX_WAIT, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_MIN_IDLE, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_REMOVE_ABANDONED, DEFAULT_REMOVE_ABANDONED_TIMEOUT, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_RETURN, DEFAULT_TEST_WHILE_IDLE, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS, DEFAULT_WHEN_EXHAUSTED_ACTION, LOG_ABANDONED, MAX_ACTIVE, MAX_IDLE, MAX_WAIT, MIN_EVICTABLE_IDLE_TIME_MILLIS, MIN_IDLE, NUM_TESTS_PER_EVICTION_RUN, REMOVE_ABANDONED, REMOVE_ABANDONED_TIMEOUT, TEST_ON_BORROW, TEST_ON_RETURN, TEST_WHILE_IDLE, TIME_BETWEEN_EVICTION_RUNS_MILLIS, VALIDATION_QUERY, WHEN_EXHAUSTED_ACTION
 
Constructor Summary
PBPoolInfo()
           
PBPoolInfo(java.util.Properties properties)
           
 
Method Summary
 void configure(org.apache.ojb.broker.util.configuration.Configuration pConfig)
          Read in the configuration properties.
 void init()
          Init default properties.
 
Methods inherited from class org.apache.ojb.broker.util.pooling.PoolConfiguration
addAttribute, getAbandonedConfig, getAttribute, getAttribute, getKeyedObjectPoolConfig, getMaxActive, getMaxIdle, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumTestsPerEvictionRun, getObjectPoolConfig, getRemoveAbandonedTimeout, getTimeBetweenEvictionRunsMillis, getValidationQuery, getWhenExhaustedAction, isLogAbandoned, isRemoveAbandoned, isTestOnBorrow, isTestOnReturn, isTestWhileIdle, setLogAbandoned, setMaxActive, setMaxIdle, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setRemoveAbandoned, setRemoveAbandonedTimeout, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setValidationQuery, setWhenExhaustedAction
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PBPoolInfo

public PBPoolInfo()

PBPoolInfo

public PBPoolInfo(java.util.Properties properties)
Method Detail

configure

public void configure(org.apache.ojb.broker.util.configuration.Configuration pConfig)
               throws org.apache.ojb.broker.util.configuration.ConfigurationException
Read in the configuration properties.

Specified by:
configure in interface org.apache.ojb.broker.util.configuration.Configurable
Parameters:
pConfig - the Configuration object used to configure current instance
Throws:
org.apache.ojb.broker.util.configuration.ConfigurationException

init

public void init()
Init default properties. We set PoolConfiguration.setTestOnBorrow(boolean), PoolConfiguration.setTestOnReturn(boolean), PoolConfiguration.setTestWhileIdle(boolean) to false (See documentation of jakarta-commons-pool). Override this to change behavior.



(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30