| Package | Description |
|---|---|
| com.sun.enterprise.resource | |
| com.sun.enterprise.resource.allocator | |
| com.sun.enterprise.resource.pool |
| Modifier and Type | Method and Description |
|---|---|
ResourceSpec |
ResourceHandle.getResourceSpec() |
| Modifier and Type | Method and Description |
|---|---|
void |
ResourceHandle.setResourceSpec(ResourceSpec spec) |
| Constructor and Description |
|---|
AssocWithThreadResourceHandle(Object resource,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
ConnectorXAResource(ResourceHandle handle,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
ResourceHandle(Object resource,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
| Modifier and Type | Field and Description |
|---|---|
protected ResourceSpec |
AbstractConnectorAllocator.spec |
| Modifier and Type | Method and Description |
|---|---|
protected ResourceHandle |
AbstractConnectorAllocator.createResourceHandle(Object resource,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
| Constructor and Description |
|---|
AbstractConnectorAllocator(PoolManager poolMgr,
javax.resource.spi.ManagedConnectionFactory mcf,
ResourceSpec spec,
Subject subject,
javax.resource.spi.ConnectionRequestInfo reqInfo,
ClientSecurityInfo info,
ConnectorDescriptor desc) |
ConnectorAllocator(PoolManager poolMgr,
javax.resource.spi.ManagedConnectionFactory mcf,
ResourceSpec spec,
Subject subject,
javax.resource.spi.ConnectionRequestInfo reqInfo,
ClientSecurityInfo info,
ConnectorDescriptor desc,
boolean shareable) |
LocalTxConnectorAllocator(PoolManager poolMgr,
javax.resource.spi.ManagedConnectionFactory mcf,
ResourceSpec spec,
Subject subject,
javax.resource.spi.ConnectionRequestInfo reqInfo,
ClientSecurityInfo info,
ConnectorDescriptor desc,
boolean shareable) |
NoTxConnectorAllocator(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 |
|---|---|
protected ResourceHandle |
ConnectionPool.createSingleResourceAndAdjustPool(ResourceAllocator alloc,
ResourceSpec spec)
This method will be called from the getUnenlistedResource method if
we detect a failAllConnection flag.
|
void |
PoolManager.emptyResourcePool(ResourceSpec spec) |
void |
AbstractPoolManager.emptyResourcePool(ResourceSpec spec) |
Object |
PoolManagerImpl.getResource(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
Object |
PoolManager.getResource(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info)
Obtain a transactional resource such as JDBC connection
|
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.
|
Copyright © 2017. All rights reserved.