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 implementationModifier 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, wait
createResource
protected 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 ResourceAllocator
javax.resource.ResourceException
public boolean isConnectionValid(ResourceHandle h)
isConnectionValid
in interface ResourceAllocator
public void destroyResource(ResourceHandle resourceHandle) throws PoolingException
destroyResource
in interface ResourceAllocator
PoolingException
public void fillInResourceObjects(ResourceHandle resourceHandle) throws PoolingException
fillInResourceObjects
in interface ResourceAllocator
PoolingException
public boolean supportsReauthentication()
supportsReauthentication
in interface ResourceAllocator
public boolean isTransactional()
isTransactional
in interface ResourceAllocator
public void cleanup(ResourceHandle h) throws PoolingException
cleanup
in interface ResourceAllocator
PoolingException
public boolean matchConnection(ResourceHandle h)
matchConnection
in interface ResourceAllocator
public void closeUserConnection(ResourceHandle resource) throws PoolingException
closeUserConnection
in interface ResourceAllocator
PoolingException
public boolean shareableWithinComponent()
shareableWithinComponent
in interface ResourceAllocator
public Object getSharedConnection(ResourceHandle h) throws PoolingException
getSharedConnection
in interface ResourceAllocator
PoolingException
protected ResourceHandle createResourceHandle(Object resource, ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info)
public boolean hasValidatingMCF()
hasValidatingMCF
in interface ResourceAllocator
Copyright © 2020. All rights reserved.