com.ca.jcs.stub
Class StubMetaConnectionPool

java.lang.Object
  extended by org.apache.commons.pool.BaseObjectPool
      extended by org.apache.commons.pool.impl.GenericObjectPool
          extended by com.ca.jcs.cfg.GenericObjectPoolConnectionManager
              extended by com.ca.jcs.stub.StubMetaConnectionPool
All Implemented Interfaces:
Activatable, ConnectionManager, ObjectPool

public class StubMetaConnectionPool
extends GenericObjectPoolConnectionManager

Sample 'dummy' stub connection pooling class Shows how to write custom connection pooling class invokable via 'connectionManagerClass' property in connector.xml. $Id: StubMetaConnectionPool.java 41957 2009-03-19 23:33:05Z khaam03 $


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.pool.impl.GenericObjectPool
GenericObjectPool.Config
 
Field Summary
 
Fields inherited from class org.apache.commons.pool.impl.GenericObjectPool
DEFAULT_LIFO, 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_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_RETURN, DEFAULT_TEST_WHILE_IDLE, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS, DEFAULT_WHEN_EXHAUSTED_ACTION, WHEN_EXHAUSTED_BLOCK, WHEN_EXHAUSTED_FAIL, WHEN_EXHAUSTED_GROW
 
Constructor Summary
StubMetaConnectionPool(Attributes attrs, GenericObjectPool.Config config, Logger connLog)
          Must implement the constructor with signature (Attributes, GenericObjectPool.Config , Logger )
 
Method Summary
 void activate()
          Optional custom activation method can be implemented
 void deactivate()
          Optional custom de-activation method can be implemented
 
Methods inherited from class com.ca.jcs.cfg.GenericObjectPoolConnectionManager
borrowConnection, clearConnection, getConnectorLogger, getFactory, returnConnection, setFactory
 
Methods inherited from class org.apache.commons.pool.impl.GenericObjectPool
addObject, borrowObject, clear, close, evict, getLifo, getMaxActive, getMaxIdle, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getSoftMinEvictableIdleTimeMillis, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getWhenExhaustedAction, invalidateObject, returnObject, setConfig, setLifo, setMaxActive, setMaxIdle, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setWhenExhaustedAction, startEvictor
 
Methods inherited from class org.apache.commons.pool.BaseObjectPool
assertOpen, isClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubMetaConnectionPool

public StubMetaConnectionPool(Attributes attrs,
                              GenericObjectPool.Config config,
                              Logger connLog)
Must implement the constructor with signature (Attributes, GenericObjectPool.Config , Logger )

Method Detail

activate

public void activate()
              throws NamingException
Optional custom activation method can be implemented

Specified by:
activate in interface Activatable
Overrides:
activate in class GenericObjectPoolConnectionManager
Throws:
NamingException

deactivate

public void deactivate()
                throws NamingException
Optional custom de-activation method can be implemented

Specified by:
deactivate in interface Activatable
Overrides:
deactivate in class GenericObjectPoolConnectionManager
Throws:
NamingException


Created 2011-07-14 13:27 EST