org.apache.ojb.broker.core
Class PBPoolInfo

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.apache.ojb.broker.util.pooling.PoolConfiguration
                  extended byorg.apache.ojb.broker.core.PBPoolInfo
All Implemented Interfaces:
java.lang.Cloneable, Configurable, java.util.Map, java.io.Serializable

public class PBPoolInfo
extends PoolConfiguration
implements Configurable

Encapsulates the PB-pool configuration properties used in in the PersistenceBrokerFactoryIF implementations.

Author:
Armin Waibel
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_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, EMPTY, LOG_ABANDONED, MAX_ACTIVE, MAX_IDLE, MAX_WAIT, MIN_EVICTABLE_IDLE_TIME_MILLIS, 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
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
PBPoolInfo()
           
PBPoolInfo(java.util.Properties properties)
           
 
Method Summary
 void configure(Configuration pConfig)
          Read in the configuration properties.
 void init()
          Init default properties.
 
Methods inherited from class org.apache.ojb.broker.util.pooling.PoolConfiguration
getAbandonedConfig, getKeyedObjectPoolConfig, getMaxActive, getMaxIdle, getMaxWait, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getObjectPoolConfig, getRemoveAbandonedTimeout, getTimeBetweenEvictionRunsMillis, getValidationQuery, getWhenExhaustedAction, isLogAbandoned, isRemoveAbandoned, isTestOnBorrow, isTestOnReturn, isTestWhileIdle, setLogAbandoned, setMaxActive, setMaxIdle, setMaxWait, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setRemoveAbandoned, setRemoveAbandonedTimeout, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setValidationQuery, setWhenExhaustedAction
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PBPoolInfo

public PBPoolInfo()

PBPoolInfo

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

configure

public void configure(Configuration pConfig)
               throws ConfigurationException
Read in the configuration properties.

Specified by:
configure in interface Configurable
Parameters:
pConfig - the Configuration object used to configure current instance
Throws:
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.



Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14