public abstract class AbstractConnectorAllocator extends Object implements ResourceAllocator
ResourceAllocator interface
that houses all the common implementation(s) of the various connector allocators.
All resource allocators except BasicResourceAllocator extend this
abstract implementation| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
_logger |
protected ConnectorDescriptor |
desc |
protected ClientSecurityInfo |
info |
protected javax.resource.spi.ManagedConnectionFactory |
mcf |
protected PoolManager |
poolMgr |
protected javax.resource.spi.ConnectionRequestInfo |
reqInfo |
protected ResourceSpec |
spec |
protected Subject |
subject |
| Constructor and Description |
|---|
AbstractConnectorAllocator() |
AbstractConnectorAllocator(PoolManager poolMgr,
javax.resource.spi.ManagedConnectionFactory mcf,
ResourceSpec spec,
Subject subject,
javax.resource.spi.ConnectionRequestInfo reqInfo,
ClientSecurityInfo info,
ConnectorDescriptor desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(ResourceHandle h) |
void |
closeUserConnection(ResourceHandle resource) |
protected ResourceHandle |
createResourceHandle(Object resource,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
void |
destroyResource(ResourceHandle resourceHandle) |
void |
fillInResourceObjects(ResourceHandle resourceHandle) |
Set |
getInvalidConnections(Set connectionSet) |
Object |
getSharedConnection(ResourceHandle h) |
boolean |
hasValidatingMCF() |
boolean |
isConnectionValid(ResourceHandle h) |
boolean |
isTransactional() |
boolean |
matchConnection(ResourceHandle h) |
boolean |
shareableWithinComponent() |
boolean |
supportsReauthentication() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateResourceprotected PoolManager poolMgr
protected ResourceSpec spec
protected javax.resource.spi.ConnectionRequestInfo reqInfo
protected Subject subject
protected javax.resource.spi.ManagedConnectionFactory mcf
protected ConnectorDescriptor desc
protected ClientSecurityInfo info
protected static final Logger _logger
public AbstractConnectorAllocator()
public AbstractConnectorAllocator(PoolManager poolMgr, javax.resource.spi.ManagedConnectionFactory mcf, ResourceSpec spec, Subject subject, javax.resource.spi.ConnectionRequestInfo reqInfo, ClientSecurityInfo info, ConnectorDescriptor desc)
public Set getInvalidConnections(Set connectionSet) throws javax.resource.ResourceException
getInvalidConnections in interface ResourceAllocatorjavax.resource.ResourceExceptionpublic boolean isConnectionValid(ResourceHandle h)
isConnectionValid in interface ResourceAllocatorpublic void destroyResource(ResourceHandle resourceHandle) throws PoolingException
destroyResource in interface ResourceAllocatorPoolingExceptionpublic void fillInResourceObjects(ResourceHandle resourceHandle) throws PoolingException
fillInResourceObjects in interface ResourceAllocatorPoolingExceptionpublic boolean supportsReauthentication()
supportsReauthentication in interface ResourceAllocatorpublic boolean isTransactional()
isTransactional in interface ResourceAllocatorpublic void cleanup(ResourceHandle h) throws PoolingException
cleanup in interface ResourceAllocatorPoolingExceptionpublic boolean matchConnection(ResourceHandle h)
matchConnection in interface ResourceAllocatorpublic void closeUserConnection(ResourceHandle resource) throws PoolingException
closeUserConnection in interface ResourceAllocatorPoolingExceptionpublic boolean shareableWithinComponent()
shareableWithinComponent in interface ResourceAllocatorpublic Object getSharedConnection(ResourceHandle h) throws PoolingException
getSharedConnection in interface ResourceAllocatorPoolingExceptionprotected ResourceHandle createResourceHandle(Object resource, ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info)
public boolean hasValidatingMCF()
hasValidatingMCF in interface ResourceAllocatorCopyright © 2017. All rights reserved.