Uses of Class
com.sun.enterprise.resource.ResourceHandle
-
-
Uses of ResourceHandle in com.sun.enterprise.connectors.inbound
Methods in com.sun.enterprise.connectors.inbound that return ResourceHandle Modifier and Type Method Description ResourceHandleBasicResourceAllocator. createResource()ResourceHandleBasicResourceAllocator. createResource(XAResource xaResource)Methods in com.sun.enterprise.connectors.inbound with parameters of type ResourceHandle Modifier and Type Method Description voidBasicResourceAllocator. cleanup(ResourceHandle resourceHandle)voidBasicResourceAllocator. closeUserConnection(ResourceHandle resourceHandle)booleanBasicResourceAllocator. isConnectionValid(ResourceHandle resource)booleanBasicResourceAllocator. matchConnection(ResourceHandle resourceHandle) -
Uses of ResourceHandle in com.sun.enterprise.resource
Subclasses of ResourceHandle in com.sun.enterprise.resource Modifier and Type Class Description classAssocWithThreadResourceHandleResourceHandle with state related to assoc-with-thread poolConstructors in com.sun.enterprise.resource with parameters of type ResourceHandle Constructor Description ConnectorXAResource(ResourceHandle handle, ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info) -
Uses of ResourceHandle in com.sun.enterprise.resource.allocator
Methods in com.sun.enterprise.resource.allocator that return ResourceHandle Modifier and Type Method Description ResourceHandleConnectorAllocator. createResource()ResourceHandleLocalTxConnectorAllocator. createResource()ResourceHandleNoTxConnectorAllocator. createResource()ResourceHandleResourceAllocator. createResource()protected ResourceHandleAbstractConnectorAllocator. createResourceHandle(Object resource, ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info)Methods in com.sun.enterprise.resource.allocator with parameters of type ResourceHandle Modifier and Type Method Description voidAbstractConnectorAllocator. cleanup(ResourceHandle h)voidResourceAllocator. cleanup(ResourceHandle resource)voidAbstractConnectorAllocator. closeUserConnection(ResourceHandle resource)voidResourceAllocator. closeUserConnection(ResourceHandle resource)voidAbstractConnectorAllocator. destroyResource(ResourceHandle resourceHandle)voidConnectorAllocator. destroyResource(ResourceHandle resource)voidLocalTxConnectorAllocator. destroyResource(ResourceHandle resource)voidNoTxConnectorAllocator. destroyResource(ResourceHandle resource)voidResourceAllocator. destroyResource(ResourceHandle resource)voidAbstractConnectorAllocator. fillInResourceObjects(ResourceHandle resourceHandle)voidConnectorAllocator. fillInResourceObjects(ResourceHandle resource)voidLocalTxConnectorAllocator. fillInResourceObjects(ResourceHandle resource)voidNoTxConnectorAllocator. fillInResourceObjects(ResourceHandle resource)voidResourceAllocator. fillInResourceObjects(ResourceHandle resource)ObjectAbstractConnectorAllocator. getSharedConnection(ResourceHandle h)ObjectResourceAllocator. getSharedConnection(ResourceHandle h)booleanAbstractConnectorAllocator. isConnectionValid(ResourceHandle h)booleanResourceAllocator. isConnectionValid(ResourceHandle resource)booleanAbstractConnectorAllocator. matchConnection(ResourceHandle h)booleanResourceAllocator. matchConnection(ResourceHandle h) -
Uses of ResourceHandle in com.sun.enterprise.resource.listener
Methods in com.sun.enterprise.resource.listener that return ResourceHandle Modifier and Type Method Description ResourceHandleLocalTxConnectionEventListener. removeAssociation(Object c)Methods in com.sun.enterprise.resource.listener with parameters of type ResourceHandle Modifier and Type Method Description voidLocalTxConnectionEventListener. associateHandle(Object c, ResourceHandle h)Constructors in com.sun.enterprise.resource.listener with parameters of type ResourceHandle Constructor Description LocalTxConnectionEventListener(ResourceHandle resource) -
Uses of ResourceHandle in com.sun.enterprise.resource.pool
Methods in com.sun.enterprise.resource.pool that return ResourceHandle Modifier and Type Method Description ResourceHandleConnectionPool. createResource(ResourceAllocator alloc)ResourceHandleResourceHandler. createResource(ResourceAllocator allocator)create a new resource using the given resource-allocatorprotected ResourceHandleConnectionPool. createSingleResource(ResourceAllocator resourceAllocator)Method to be used to create resource, instead of calling ResourceAllocator.createConfigBean().protected ResourceHandleConnectionPool. createSingleResourceAndAdjustPool(ResourceAllocator alloc, ResourceSpec spec)This method will be called from the getUnenlistedResource method if we detect a failAllConnection flag.ResourceHandleConnectionPool. getResource(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.Transaction txn)returns resource from the pool.ResourceHandleResourcePool. getResource(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.Transaction tran)protected ResourceHandleConnectionPool. getResourceFromPool(ResourceAllocator alloc, ResourceSpec spec)return resource in free list.ResourceHandlePoolManager. getResourceFromPool(ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info, jakarta.transaction.Transaction tran)ResourceHandlePoolManagerImpl. getResourceFromPool(ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info, jakarta.transaction.Transaction tran)protected ResourceHandleAssocWithThreadResourcePool. getUnenlistedResource(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.Transaction tran)return resource in free list.protected ResourceHandleConnectionPool. getUnenlistedResource(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.Transaction tran)To provide an unenlisted, valid, matched resource from pool.protected ResourceHandleUnpooledResource. getUnenlistedResource(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.Transaction tran)protected ResourceHandleConnectionPool. internalGetResource(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.Transaction tran)protected ResourceHandleAssocWithThreadResourcePool. prefetch(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.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.protected ResourceHandleConnectionPool. prefetch(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.Transaction tran)Overridden in AssocWithThreadResourcePool to fetch the resource cached in the ThreadLocal In ConnectionPool this simply returns null.protected ResourceHandleUnpooledResource. prefetch(ResourceSpec spec, ResourceAllocator alloc, jakarta.transaction.Transaction tran)Methods in com.sun.enterprise.resource.pool that return types with arguments of type ResourceHandle Modifier and Type Method Description List<ResourceHandle>PoolTxHelper. transactionCompleted(jakarta.transaction.Transaction tran, int status, PoolInfo poolInfo)this method is called when transaction tran is completedMethods in com.sun.enterprise.resource.pool with parameters of type ResourceHandle Modifier and Type Method Description voidPoolManager. badResourceClosed(ResourceHandle res)voidPoolManagerImpl. badResourceClosed(ResourceHandle resource)protected booleanConnectionPool. cleanupResource(ResourceHandle handle)voidAssocWithThreadResourcePool. deleteResource(ResourceHandle resourceHandle)destroys the resourcevoidConnectionPool. deleteResource(ResourceHandle resourceHandle)voidResourceHandler. deleteResource(ResourceHandle resourceHandle)destroys the given resourceprotected voidConnectionPool. freeResource(ResourceHandle resourceHandle)protected voidUnpooledResource. freeResource(ResourceHandle resourceHandle)protected voidAssocWithThreadResourcePool. freeUnenlistedResource(ResourceHandle h)return the resource back to pool only if it is not associated with the thread.protected voidConnectionPool. freeUnenlistedResource(ResourceHandle h)voidConnectionPool. invalidConnectionDetected(ResourceHandle h)voidResourceHandler. invalidConnectionDetected(ResourceHandle h)callback method to handle the case of invalid connection detectedprotected booleanConnectionPool. isConnectionValid(ResourceHandle h, ResourceAllocator alloc)Check whether the connection is validbooleanPoolTxHelper. isLocalResourceEligibleForReuse(ResourceHandle h)Check whether the local resource can be put back to pool If true, unenlist the resourcebooleanPoolTxHelper. isLocalResourceInTransaction(ResourceHandle h)Check whether the local resource in question is the one participating in transaction.booleanPoolTxHelper. isNonXAResource(ResourceHandle resource)Check whether the resource is non-xabooleanPoolTxHelper. isNonXAResourceAndFree(JavaEETransaction tran, ResourceHandle resource)Check whether the resource is non-xa, free and is enlisted in transaction.protected booleanAssocWithThreadResourcePool. isResourceUnused(ResourceHandle h)check whether the resource is unusedprotected booleanConnectionPool. isResourceUnused(ResourceHandle h)protected booleanConnectionPool. matchConnection(ResourceHandle resource, ResourceAllocator alloc)check whether the connection retrieved from the pool matches with the request.protected voidConnectionPool. performMaxConnectionUsageOperation(ResourceHandle handle)If the resource is used for maxConnectionUsage times, destroy and create onevoidPoolManager. putbackBadResourceToPool(ResourceHandle h)voidPoolManagerImpl. putbackBadResourceToPool(ResourceHandle h)voidPoolManager. putbackDirectToPool(ResourceHandle h, PoolInfo poolInfo)voidPoolManagerImpl. putbackDirectToPool(ResourceHandle h, PoolInfo poolInfo)voidPoolManager. putbackResourceToPool(ResourceHandle h, boolean errorOccurred)voidPoolManagerImpl. putbackResourceToPool(ResourceHandle h, boolean errorOccurred)voidConnectionLeakListener. reclaimConnection(ResourceHandle handle)reclaim the leaked connectionvoidConnectionPool. reclaimConnection(ResourceHandle handle)voidPoolManager. resourceAbortOccurred(ResourceHandle res)voidPoolManagerImpl. resourceAbortOccurred(ResourceHandle resource)voidConnectionPool. resourceClosed(ResourceHandle h)this method is called to indicate that the resource is not used by a bean/application anymorevoidPoolManager. resourceClosed(ResourceHandle res)voidPoolManagerImpl. resourceClosed(ResourceHandle resource)voidResourcePool. resourceClosed(ResourceHandle resource)voidConnectionPool. resourceEnlisted(jakarta.transaction.Transaction tran, ResourceHandle resource)this method is called when a resource is enlisted invoidPoolTxHelper. resourceEnlisted(jakarta.transaction.Transaction tran, ResourceHandle resource)this method is called when a resource is enlisted in transation tranvoidResourcePool. resourceEnlisted(jakarta.transaction.Transaction tran, ResourceHandle resource)voidConnectionPool. resourceErrorOccurred(ResourceHandle h)voidPoolManager. resourceErrorOccurred(ResourceHandle res)voidPoolManagerImpl. resourceErrorOccurred(ResourceHandle resource)voidResourcePool. resourceErrorOccurred(ResourceHandle resource)voidUnpooledResource. resourceErrorOccurred(ResourceHandle resourceHandle)protected voidConnectionPool. setResourceStateToBusy(ResourceHandle resourceHandle)marks resource as busy.protected voidConnectionPool. setResourceStateToFree(ResourceHandle resourceHandle)marks resource as free.voidConnectionLeakDetector. startConnectionLeakTracing(ResourceHandle resourceHandle, ConnectionLeakListener listener)starts connection leak tracingvoidConnectionLeakDetector. stopConnectionLeakTracing(ResourceHandle resourceHandle, ConnectionLeakListener listener)stops connection leak tracing -
Uses of ResourceHandle in com.sun.enterprise.resource.pool.datastructure
Methods in com.sun.enterprise.resource.pool.datastructure that return ResourceHandle Modifier and Type Method Description ResourceHandleDataStructure. getResource()get a resource from the datastructureResourceHandleListDataStructure. getResource()get a resource from the datastructureResourceHandleRWLockDataStructure. getResource()get a resource from the datastructureMethods in com.sun.enterprise.resource.pool.datastructure that return types with arguments of type ResourceHandle Modifier and Type Method Description 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).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>RWLockDataStructure. getAllResources()Methods in com.sun.enterprise.resource.pool.datastructure with parameters of type ResourceHandle Modifier and Type Method Description voidDataStructure. removeResource(ResourceHandle resource)remove the specified resource from the datastructurevoidListDataStructure. removeResource(ResourceHandle resource)remove the specified resource from the datastructurevoidRWLockDataStructure. removeResource(ResourceHandle resource)remove the specified resource from the datastructurevoidDataStructure. returnResource(ResourceHandle resource)returns the resource to the datastructurevoidListDataStructure. returnResource(ResourceHandle resource)returns the resource to the datastructurevoidRWLockDataStructure. returnResource(ResourceHandle resource)returns the resource to the datastructure -
Uses of ResourceHandle in com.sun.enterprise.resource.pool.datastructure.strategy
Methods in com.sun.enterprise.resource.pool.datastructure.strategy that return ResourceHandle Modifier and Type Method Description ResourceHandleResourceSelectionStrategy. retrieveResource()To retrieve resource from datastructure. -
Uses of ResourceHandle in com.sun.enterprise.resource.pool.resizer
Methods in com.sun.enterprise.resource.pool.resizer with parameters of type ResourceHandle Modifier and Type Method Description protected booleanResizer. isResourceEligibleForRemoval(ResourceHandle h, int validConnectionsCounter)protected intResizer. validateAndRemoveResource(ResourceHandle handle, Set invalidConnections) -
Uses of ResourceHandle in com.sun.enterprise.resource.rm
Methods in com.sun.enterprise.resource.rm with parameters of type ResourceHandle Modifier and Type Method Description voidNoTxResourceManagerImpl. delistResource(ResourceHandle resource, int xaresFlag)delist theResourceHandlefrom the transaction This implementation of the method is expected to be a no-opvoidResourceManager. delistResource(ResourceHandle resource, int xaresFlag)Delist the resource from the transaction.voidResourceManagerImpl. delistResource(ResourceHandle resource, int xaresFlag)delist theResourceHandlefrom the transactionvoidSystemResourceManagerImpl. delistResource(ResourceHandle h, int xaresFlag)delist theResourceHandlefrom the transactionprotected voidLazyEnlistableResourceManagerImpl. enlist(JavaEETransactionManager tm, jakarta.transaction.Transaction tran, ResourceHandle h)protected voidResourceManagerImpl. enlist(JavaEETransactionManager tm, jakarta.transaction.Transaction tran, ResourceHandle h)voidNoTxResourceManagerImpl. enlistResource(ResourceHandle h)Enlist theResourceHandlein the transaction This implementation of the method is expected to be a no-opvoidResourceManager. enlistResource(ResourceHandle h)Enlist the Resource handle to the transaction.voidResourceManagerImpl. enlistResource(ResourceHandle h)Enlist theResourceHandlein the transactionvoidSystemResourceManagerImpl. enlistResource(ResourceHandle handle)Register theResourceHandlein the transactionvoidLazyEnlistableResourceManagerImpl. registerResource(ResourceHandle handle)Overridden to suspend lazyenlistment.voidNoTxResourceManagerImpl. registerResource(ResourceHandle handle)Register theResourceHandlein the transaction This implementation of the method is expected to be a no-opvoidResourceManager. registerResource(ResourceHandle handle)Register the resource for a transaction's house keeping activities.voidResourceManagerImpl. registerResource(ResourceHandle handle)Register theResourceHandlein the transactionvoidSystemResourceManagerImpl. registerResource(ResourceHandle handle)Dont do any thing for System Resource.voidNoTxResourceManagerImpl. unregisterResource(ResourceHandle resource, int xaresFlag)Unregister theResourceHandlefrom the transaction This implementation of the method is expected to be a no-opvoidResourceManager. unregisterResource(ResourceHandle resource, int xaresFlag)Unregister the resource from a transaction's list.voidResourceManagerImpl. unregisterResource(ResourceHandle resource, int xaresFlag)Unregister theResourceHandlefrom the transactionvoidSystemResourceManagerImpl. unregisterResource(ResourceHandle resource, int xaresFlag)Dont do any thing for System Resource.
-