org.jencks.factory
Class PartitionedPoolFactoryBean

java.lang.Object
  extended byorg.jencks.factory.AbstractGeronimoPool
      extended byorg.jencks.factory.PartitionedPoolFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class PartitionedPoolFactoryBean
extends AbstractGeronimoPool
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

This FactoryBean creates the partitionned pool strategy for the Geronimo connection manager.

This class is based on the common pool properties defined in the AbstractGeronimoPool class and two other properties: partitionByConnectionRequestInfo to manage pooling with the request informations and partitionBySubject to manage pooling with the subjects.

Author:
Thierry Templier
See Also:
PartitionedPool, AbstractGeronimoPool, ConnectionManagerFactoryBean.setPoolingSupport(PoolingSupport)

Field Summary
protected  boolean partitionByConnectionRequestInfo
           
protected  boolean partitionBySubject
           
 
Fields inherited from class org.jencks.factory.AbstractGeronimoPool
blockingTimeoutMilliseconds, idleTimeoutMinutes, matchAll, matchOne, maxSize, minSize, selectOneAssumeMatch
 
Constructor Summary
PartitionedPoolFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setPartitionByConnectionRequestInfo(boolean partitionByConnectionRequestInfo)
          Set the partitionByConnectionRequestInfo for the pool.
 void setPartitionBySubject(boolean partitionBySubject)
          Set the partitionBySubject for the pool.
 
Methods inherited from class org.jencks.factory.AbstractGeronimoPool
getBlockingTimeoutMilliseconds, getIdleTimeoutMinutes, getMaxSize, getMinSize, isMatchAll, isMatchOne, isSelectOneAssumeMatch, setBlockingTimeoutMilliseconds, setIdleTimeoutMinutes, setMatchAll, setMatchOne, setMaxSize, setMinSize, setSelectOneAssumeMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partitionByConnectionRequestInfo

protected boolean partitionByConnectionRequestInfo

partitionBySubject

protected boolean partitionBySubject
Constructor Detail

PartitionedPoolFactoryBean

public PartitionedPoolFactoryBean()
Method Detail

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

setPartitionByConnectionRequestInfo

public void setPartitionByConnectionRequestInfo(boolean partitionByConnectionRequestInfo)
Set the partitionByConnectionRequestInfo for the pool.


setPartitionBySubject

public void setPartitionBySubject(boolean partitionBySubject)
Set the partitionBySubject for the pool.


afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.