FileDocCategorySizeDatePackage
PoolManager.javaAPI DocGlassfish v2 API6155Thu Jul 19 03:02:58 BST 2007com.sun.enterprise

PoolManager

public interface PoolManager
PoolManager manages resource connections such as JDBC connections

Fields Summary
public static final int
NO_TRANSACTION
public static final int
LOCAL_TRANSACTION
public static final int
XA_TRANSACTION
public static final int
BASIC_PASSWORD
public static final int
KERBV5
public static final String
PASSWORD_CREDENTIAL
public static final String
GENERIC_CREDENTIAL
Constructors Summary
Methods Summary
public voidbadResourceClosed(ResourceHandle res)

public voidcreateEmptyConnectionPool(java.lang.String name, com.sun.enterprise.connectors.ConnectorConstants.PoolType pt)

public voiddisableMonitoring(java.lang.String poolName)

public voidemptyResourcePool(ResourceSpec spec)

public ResourcePoolgetPool(java.lang.String poolName)

public java.util.concurrent.ConcurrentHashMapgetPoolTable()

public java.lang.ObjectgetResource(ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info)
Obtain a transactional resource such as JDBC connection

param
spec Specification for the resource
param
alloc Allocator for the resource
param
info Client security for this request
return
An object that represents a connection to the resource
exception
ResourceReferenceException Thrown if some error occurs while obtaining the resource

public ResourceHandlegetResourceFromPool(ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info, javax.transaction.Transaction tran)

public com.sun.enterprise.deployment.ResourceReferenceDescriptorgetResourceReference(java.lang.String jndiName)

public voidinitializeMonitoring()

public voidkillAllPools()

public voidkillFreeConnectionsInPools()

public voidkillPool(java.lang.String poolName)

public voidlazyEnlist(javax.resource.spi.ManagedConnection mc)

public voidpostInvoke()

public voidputbackBadResourceToPool(ResourceHandle h)

public voidputbackDirectToPool(ResourceHandle h, java.lang.String poolName)

public voidputbackResourceToPool(ResourceHandle h, boolean errorOccurred)

public voidreconfigPoolProperties(com.sun.enterprise.connectors.ConnectorConnectionPool ccp)

public voidregisterResource(ResourceHandle resource)

public voidresourceClosed(ResourceHandle res)

public voidresourceEnlisted(javax.transaction.Transaction tran, ResourceHandle res)

public voidresourceErrorOccurred(ResourceHandle res)

public voidsetMonitoringEnabledHigh(java.lang.String poolName)

public voidsetMonitoringEnabledLow(java.lang.String poolName)

public voidsetSelfManaged(java.lang.String poolName, boolean flag)

public booleanswitchOnMatching(java.lang.String poolName)

public voidtransactionCompleted(javax.transaction.Transaction tran, int status)

public voidunregisterResource(ResourceHandle resource, int xaresFlag)