| Modifier and Type | Method and Description |
|---|---|
ResourceHandle |
BasicResourceAllocator.createResource() |
ResourceHandle |
BasicResourceAllocator.createResource(XAResource xaResource) |
| Modifier and Type | Method and Description |
|---|---|
void |
BasicResourceAllocator.cleanup(ResourceHandle resourceHandle) |
void |
BasicResourceAllocator.closeUserConnection(ResourceHandle resourceHandle) |
boolean |
BasicResourceAllocator.isConnectionValid(ResourceHandle resource) |
boolean |
BasicResourceAllocator.matchConnection(ResourceHandle resourceHandle) |
| Modifier and Type | Class and Description |
|---|---|
class |
AssocWithThreadResourceHandle
ResourceHandle with state related to assoc-with-thread pool
|
| Constructor and Description |
|---|
ConnectorXAResource(ResourceHandle handle,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
| Modifier and Type | Method and Description |
|---|---|
ResourceHandle |
LocalTxConnectorAllocator.createResource() |
ResourceHandle |
NoTxConnectorAllocator.createResource() |
ResourceHandle |
ResourceAllocator.createResource() |
ResourceHandle |
ConnectorAllocator.createResource() |
protected ResourceHandle |
AbstractConnectorAllocator.createResourceHandle(Object resource,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractConnectorAllocator.cleanup(ResourceHandle h) |
void |
ResourceAllocator.cleanup(ResourceHandle resource) |
void |
AbstractConnectorAllocator.closeUserConnection(ResourceHandle resource) |
void |
ResourceAllocator.closeUserConnection(ResourceHandle resource) |
void |
AbstractConnectorAllocator.destroyResource(ResourceHandle resourceHandle) |
void |
LocalTxConnectorAllocator.destroyResource(ResourceHandle resource) |
void |
NoTxConnectorAllocator.destroyResource(ResourceHandle resource) |
void |
ResourceAllocator.destroyResource(ResourceHandle resource) |
void |
ConnectorAllocator.destroyResource(ResourceHandle resource) |
void |
AbstractConnectorAllocator.fillInResourceObjects(ResourceHandle resourceHandle) |
void |
LocalTxConnectorAllocator.fillInResourceObjects(ResourceHandle resource) |
void |
NoTxConnectorAllocator.fillInResourceObjects(ResourceHandle resource) |
void |
ResourceAllocator.fillInResourceObjects(ResourceHandle resource) |
void |
ConnectorAllocator.fillInResourceObjects(ResourceHandle resource) |
Object |
AbstractConnectorAllocator.getSharedConnection(ResourceHandle h) |
Object |
ResourceAllocator.getSharedConnection(ResourceHandle h) |
boolean |
AbstractConnectorAllocator.isConnectionValid(ResourceHandle h) |
boolean |
ResourceAllocator.isConnectionValid(ResourceHandle resource) |
boolean |
AbstractConnectorAllocator.matchConnection(ResourceHandle h) |
boolean |
ResourceAllocator.matchConnection(ResourceHandle h) |
| Modifier and Type | Method and Description |
|---|---|
ResourceHandle |
LocalTxConnectionEventListener.removeAssociation(Object c) |
| Modifier and Type | Method and Description |
|---|---|
void |
LocalTxConnectionEventListener.associateHandle(Object c,
ResourceHandle h) |
| Constructor and Description |
|---|
LocalTxConnectionEventListener(ResourceHandle resource) |
| Modifier and Type | Method and Description |
|---|---|
ResourceHandle |
ResourceHandler.createResource(ResourceAllocator allocator)
create a new resource using the given resource-allocator
|
ResourceHandle |
ConnectionPool.createResource(ResourceAllocator alloc) |
protected ResourceHandle |
ConnectionPool.createSingleResource(ResourceAllocator resourceAllocator)
Method to be used to create resource, instead of calling ResourceAllocator.createConfigBean().
|
protected ResourceHandle |
ConnectionPool.createSingleResourceAndAdjustPool(ResourceAllocator alloc,
ResourceSpec spec)
This method will be called from the getUnenlistedResource method if
we detect a failAllConnection flag.
|
ResourceHandle |
ResourcePool.getResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran) |
ResourceHandle |
ConnectionPool.getResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction txn)
returns resource from the pool.
|
protected ResourceHandle |
ConnectionPool.getResourceFromPool(ResourceAllocator alloc,
ResourceSpec spec)
return resource in free list.
|
ResourceHandle |
PoolManagerImpl.getResourceFromPool(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info,
Transaction tran) |
ResourceHandle |
PoolManager.getResourceFromPool(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info,
Transaction tran) |
protected ResourceHandle |
ConnectionPool.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
To provide an unenlisted, valid, matched resource from pool.
|
protected ResourceHandle |
UnpooledResource.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran) |
protected ResourceHandle |
AssocWithThreadResourcePool.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
return resource in free list.
|
protected ResourceHandle |
ConnectionPool.internalGetResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran) |
protected ResourceHandle |
ConnectionPool.prefetch(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
Overridden in AssocWithThreadResourcePool to fetch the resource
cached in the ThreadLocal
In ConnectionPool this simply returns null.
|
protected ResourceHandle |
UnpooledResource.prefetch(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran) |
protected ResourceHandle |
AssocWithThreadResourcePool.prefetch(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
Prefetch is called to check whether there there is a free resource is already associated with the thread
Only when prefetch is unable to find a resource, normal routine (getUnenlistedResource) will happen.
|
| Modifier and Type | Method and Description |
|---|---|
List<ResourceHandle> |
PoolTxHelper.transactionCompleted(Transaction tran,
int status,
PoolInfo poolInfo)
this method is called when transaction tran is completed
|
| Modifier and Type | Method and Description |
|---|---|
void |
PoolManagerImpl.badResourceClosed(ResourceHandle resource) |
void |
PoolManager.badResourceClosed(ResourceHandle res) |
protected boolean |
ConnectionPool.cleanupResource(ResourceHandle handle) |
void |
ResourceHandler.deleteResource(ResourceHandle resourceHandle)
destroys the given resource
|
void |
ConnectionPool.deleteResource(ResourceHandle resourceHandle) |
void |
AssocWithThreadResourcePool.deleteResource(ResourceHandle resourceHandle)
destroys the resource
|
protected void |
ConnectionPool.freeResource(ResourceHandle resourceHandle) |
protected void |
UnpooledResource.freeResource(ResourceHandle resourceHandle) |
protected void |
ConnectionPool.freeUnenlistedResource(ResourceHandle h) |
protected void |
AssocWithThreadResourcePool.freeUnenlistedResource(ResourceHandle h)
return the resource back to pool only if it is not associated with the thread.
|
void |
ResourceHandler.invalidConnectionDetected(ResourceHandle h)
callback method to handle the case of invalid connection detected
|
void |
ConnectionPool.invalidConnectionDetected(ResourceHandle h) |
protected boolean |
ConnectionPool.isConnectionValid(ResourceHandle h,
ResourceAllocator alloc)
Check whether the connection is valid
|
boolean |
PoolTxHelper.isLocalResourceEligibleForReuse(ResourceHandle h)
Check whether the local resource can be put back to pool
If true, unenlist the resource
|
boolean |
PoolTxHelper.isLocalResourceInTransaction(ResourceHandle h)
Check whether the local resource in question is the one participating in transaction.
|
boolean |
PoolTxHelper.isNonXAResource(ResourceHandle resource)
Check whether the resource is non-xa
|
boolean |
PoolTxHelper.isNonXAResourceAndFree(JavaEETransaction tran,
ResourceHandle resource)
Check whether the resource is non-xa, free and is enlisted in transaction.
|
protected boolean |
ConnectionPool.isResourceUnused(ResourceHandle h) |
protected boolean |
AssocWithThreadResourcePool.isResourceUnused(ResourceHandle h)
check whether the resource is unused
|
protected boolean |
ConnectionPool.matchConnection(ResourceHandle resource,
ResourceAllocator alloc)
check whether the connection retrieved from the pool matches with the request.
|
protected void |
ConnectionPool.performMaxConnectionUsageOperation(ResourceHandle handle)
If the resource is used for maxConnectionUsage times, destroy and create one
|
void |
PoolManagerImpl.putbackBadResourceToPool(ResourceHandle h) |
void |
PoolManager.putbackBadResourceToPool(ResourceHandle h) |
void |
PoolManagerImpl.putbackDirectToPool(ResourceHandle h,
PoolInfo poolInfo) |
void |
PoolManager.putbackDirectToPool(ResourceHandle h,
PoolInfo poolInfo) |
void |
PoolManagerImpl.putbackResourceToPool(ResourceHandle h,
boolean errorOccurred) |
void |
PoolManager.putbackResourceToPool(ResourceHandle h,
boolean errorOccurred) |
void |
ConnectionPool.reclaimConnection(ResourceHandle handle) |
void |
ConnectionLeakListener.reclaimConnection(ResourceHandle handle)
reclaim the leaked connection
|
void |
PoolManagerImpl.resourceAbortOccurred(ResourceHandle resource) |
void |
PoolManager.resourceAbortOccurred(ResourceHandle res) |
void |
PoolManagerImpl.resourceClosed(ResourceHandle resource) |
void |
ResourcePool.resourceClosed(ResourceHandle resource) |
void |
PoolManager.resourceClosed(ResourceHandle res) |
void |
ConnectionPool.resourceClosed(ResourceHandle h)
this method is called to indicate that the resource is
not used by a bean/application anymore
|
void |
ResourcePool.resourceEnlisted(Transaction tran,
ResourceHandle resource) |
void |
PoolTxHelper.resourceEnlisted(Transaction tran,
ResourceHandle resource)
this method is called when a resource is enlisted in
transation tran
|
void |
ConnectionPool.resourceEnlisted(Transaction tran,
ResourceHandle resource)
this method is called when a resource is enlisted in
|
void |
PoolManagerImpl.resourceErrorOccurred(ResourceHandle resource) |
void |
ResourcePool.resourceErrorOccurred(ResourceHandle resource) |
void |
PoolManager.resourceErrorOccurred(ResourceHandle res) |
void |
ConnectionPool.resourceErrorOccurred(ResourceHandle h) |
void |
UnpooledResource.resourceErrorOccurred(ResourceHandle resourceHandle) |
protected void |
ConnectionPool.setResourceStateToBusy(ResourceHandle resourceHandle)
marks resource as busy.
|
protected void |
ConnectionPool.setResourceStateToFree(ResourceHandle resourceHandle)
marks resource as free.
|
void |
ConnectionLeakDetector.startConnectionLeakTracing(ResourceHandle resourceHandle,
ConnectionLeakListener listener)
starts connection leak tracing
|
void |
ConnectionLeakDetector.stopConnectionLeakTracing(ResourceHandle resourceHandle,
ConnectionLeakListener listener)
stops connection leak tracing
|
| Modifier and Type | Method and Description |
|---|---|
ResourceHandle |
RWLockDataStructure.getResource()
get a resource from the datastructure
|
ResourceHandle |
ListDataStructure.getResource()
get a resource from the datastructure
|
ResourceHandle |
DataStructure.getResource()
get a resource from the datastructure
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<ResourceHandle> |
RWLockDataStructure.getAllResources() |
ArrayList<ResourceHandle> |
ListDataStructure.getAllResources()
Get all resources in the datastructure
Note : do not use this for normal usages as it
can potentially represent all resources
(including the ones in use).
|
ArrayList<ResourceHandle> |
DataStructure.getAllResources()
Get all resources in the datastructure
Note : do not use this for normal usages as it
can potentially represent all resources
(including the ones in use).
|
| Modifier and Type | Method and Description |
|---|---|
void |
RWLockDataStructure.removeResource(ResourceHandle resource)
remove the specified resource from the datastructure
|
void |
ListDataStructure.removeResource(ResourceHandle resource)
remove the specified resource from the datastructure
|
void |
DataStructure.removeResource(ResourceHandle resource)
remove the specified resource from the datastructure
|
void |
RWLockDataStructure.returnResource(ResourceHandle resource)
returns the resource to the datastructure
|
void |
ListDataStructure.returnResource(ResourceHandle resource)
returns the resource to the datastructure
|
void |
DataStructure.returnResource(ResourceHandle resource)
returns the resource to the datastructure
|
| Modifier and Type | Method and Description |
|---|---|
ResourceHandle |
ResourceSelectionStrategy.retrieveResource()
To retrieve resource from datastructure.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
Resizer.isResourceEligibleForRemoval(ResourceHandle h,
int validConnectionsCounter) |
protected int |
Resizer.validateAndRemoveResource(ResourceHandle handle,
Set invalidConnections) |
| Modifier and Type | Method and Description |
|---|---|
void |
NoTxResourceManagerImpl.delistResource(ResourceHandle resource,
int xaresFlag)
delist the
ResourceHandle from the transaction
This implementation of the method is expected to be a no-op |
void |
ResourceManager.delistResource(ResourceHandle resource,
int xaresFlag)
Delist the resource from the transaction.
|
void |
ResourceManagerImpl.delistResource(ResourceHandle resource,
int xaresFlag)
delist the
ResourceHandle from the transaction |
void |
SystemResourceManagerImpl.delistResource(ResourceHandle h,
int xaresFlag)
delist the
ResourceHandle from the transaction |
protected void |
LazyEnlistableResourceManagerImpl.enlist(JavaEETransactionManager tm,
Transaction tran,
ResourceHandle h) |
protected void |
ResourceManagerImpl.enlist(JavaEETransactionManager tm,
Transaction tran,
ResourceHandle h) |
void |
NoTxResourceManagerImpl.enlistResource(ResourceHandle h)
Enlist the
ResourceHandle in the transaction
This implementation of the method is expected to be a no-op |
void |
ResourceManager.enlistResource(ResourceHandle h)
Enlist the Resource handle to the transaction.
|
void |
ResourceManagerImpl.enlistResource(ResourceHandle h)
Enlist the
ResourceHandle in the transaction |
void |
SystemResourceManagerImpl.enlistResource(ResourceHandle handle)
Register the
ResourceHandle in the transaction |
void |
NoTxResourceManagerImpl.registerResource(ResourceHandle handle)
Register the
ResourceHandle in the transaction
This implementation of the method is expected to be a no-op |
void |
LazyEnlistableResourceManagerImpl.registerResource(ResourceHandle handle)
Overridden to suspend lazyenlistment.
|
void |
ResourceManager.registerResource(ResourceHandle handle)
Register the resource for a transaction's house keeping activities.
|
void |
ResourceManagerImpl.registerResource(ResourceHandle handle)
Register the
ResourceHandle in the transaction |
void |
SystemResourceManagerImpl.registerResource(ResourceHandle handle)
Dont do any thing for System Resource.
|
void |
NoTxResourceManagerImpl.unregisterResource(ResourceHandle resource,
int xaresFlag)
Unregister the
ResourceHandle from the transaction
This implementation of the method is expected to be a no-op |
void |
ResourceManager.unregisterResource(ResourceHandle resource,
int xaresFlag)
Unregister the resource from a transaction's list.
|
void |
ResourceManagerImpl.unregisterResource(ResourceHandle resource,
int xaresFlag)
Unregister the
ResourceHandle from the transaction |
void |
SystemResourceManagerImpl.unregisterResource(ResourceHandle resource,
int xaresFlag)
Dont do any thing for System Resource.
|
Copyright © 2017. All rights reserved.