public class ConnectorConnectionPool extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected ConnectorDescriptorInfo |
connectorDescriptorInfo_ |
static String |
DEFAULT_CON_CREATION_RETRY_ATTEMPTS |
static String |
DEFAULT_CON_CREATION_RETRY_INTERVAL |
static String |
DEFAULT_LEAK_TIMEOUT |
static String |
DEFAULT_MAX_CONNECTION_USAGE |
static String |
DEFAULT_VALIDATE_ATMOST_ONCE_PERIOD |
protected boolean |
failAllConnections_ |
protected String |
idleTimeoutInSeconds_ |
protected boolean |
isConnectionValidationRequired_ |
protected boolean |
matchConnections_ |
protected String |
maxPoolSize_ |
protected String |
maxWaitTimeInMillis_ |
protected String |
poolResizeQuantity_ |
protected String |
steadyPoolSize_ |
protected int |
transactionSupport_ |
Constructor and Description |
---|
ConnectorConnectionPool(PoolInfo poolInfo) |
ConnectorConnectionPool(String name)
Constructor
|
ConnectorConnectionPool(String name,
String applicationName)
Constructor
|
ConnectorConnectionPool(String name,
String applicationName,
String moduleName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected ConnectorConnectionPool |
doClone(String name)
Clone method.
|
String |
getApplicationName() |
boolean |
getAuthCredentialsDefinedInPool() |
String |
getConCreationRetryAttempts()
Queries the connection-creation-retry-attempt pool attribute
|
String |
getConCreationRetryInterval()
Queries the connection-creation-retry-interval pool attribute
|
String |
getConnectionLeakTracingTimeout()
Queries the connection-leak-tracing-timeout pool attribute
|
ConnectorDescriptorInfo |
getConnectorDescriptorInfo()
Getter method of ConnectorDescriptorInfo which contains some the ra.xml
values pertainining to managed connection factory
|
String |
getDataStructureParameters() |
long |
getDynamicReconfigWaitTimeout() |
String |
getIdleTimeoutInSeconds()
Getter method of IdleTimeoutInSeconds property
|
String |
getMaxConnectionUsage()
Queries the max-connection-usage pool attribute
|
String |
getMaxPoolSize()
Getter method of MaxPoolSize property
|
String |
getMaxWaitTimeInMillis()
Getter method of MaxWaitTimeInMillis property
|
String |
getModuleName() |
String |
getName() |
boolean |
getPingDuringPoolCreation() |
String |
getPoolDataStructureType() |
PoolInfo |
getPoolInfo() |
String |
getPoolResizeQuantity()
Getter method of PoolResizeQuantity property
|
String |
getPoolWaitQueue() |
String |
getResourceGatewayClass() |
String |
getResourceSelectionStrategyClass() |
ConnectorSecurityMap[] |
getSecurityMaps()
Getter method for Security Maps
|
String |
getSteadyPoolSize()
Getter method of SteadyPoolSize property
|
int |
getTransactionSupport()
Returns the transaction support level for this pool
The valid values are
ConnectorConstants.NO_TRANSACTION ConnectorConstants.LOCAL_TRANSACTION ConnectorConstants.XA_TRANSACTION |
String |
getValidateAtmostOncePeriod()
Queries the validate-atmost-period pool attribute
|
boolean |
isApplicationScopedResource() |
boolean |
isAssociateWithThread()
Queries the associate-with-thread pool attribute
|
boolean |
isConnectionReclaim()
Queries the connection-reclaim attribute
|
boolean |
isFailAllConnections()
Getter method of FailAllConnections property
|
boolean |
isIsConnectionValidationRequired()
Queries the connection-validation-required pool attribute
|
boolean |
isLazyConnectionAssoc()
Queries the lazy-connection-association pool attribute
|
boolean |
isLazyConnectionEnlist()
Queries the lazy-connection-enlistment pool attribute
|
boolean |
isNonComponent()
Queries the non-component pool attribute
|
boolean |
isNonTransactional()
Queries the non-transactional pool attribute
|
boolean |
isPartitionedPool() |
boolean |
isPoolingOn() |
boolean |
isPreferValidateOverRecreate() |
boolean |
isValidateAtmostEveryIdleSecs()
Queries the validate-atmost-every-idle-seconds pool attribute
|
boolean |
matchConnections()
Getter method of matchConnections property
|
void |
setApplicationName(String applicationName) |
void |
setAssociateWithThread(boolean enabled)
Setter method of associate-with-thread attribute
|
void |
setAuthCredentialsDefinedInPool(boolean authCred) |
void |
setConCreationRetryAttempts(String retryAttempts)
Setter method of connection-creation-retry-attempt attribute
|
void |
setConCreationRetryInterval(String retryInterval)
Setter method of connection-creation-retry-interval attribute
|
void |
setConnectionLeakTracingTimeout(String timeout)
Setter method of connection-leak-tracing-timeout attribute
|
void |
setConnectionReclaim(boolean connectionReclaim)
Setter method of connection-reclaim attribute
|
void |
setConnectionValidationRequired(boolean validation)
Sets the connection-validation-required pool attribute
|
void |
setConnectorDescriptorInfo(ConnectorDescriptorInfo connectorDescriptorInfo)
Setter method of ConnectorDescriptorInfo which contains some the ra.xml
values pertainining to managed connection factory
|
void |
setDataStructureParameters(String dataStructureParameters) |
void |
setDynamicReconfigWaitTimeout(long dynamicReconfigWaitTimeout) |
void |
setFailAllConnections(boolean failAllConnections)
Setter method of FailAllConnections property
|
void |
setIdleTimeoutInSeconds(String idleTimeoutInSeconds)
Setter method of IdleTimeoutInSeconds property
|
void |
setLazyConnectionAssoc(boolean enabled)
Setter method of lazyConnectionAssociation attribute
|
void |
setLazyConnectionEnlist(boolean enabled)
Setter method of lazy-connection-enlistment attribute
|
void |
setMatchConnections(boolean matchConnections)
Setter method of matchConnections property
|
void |
setMaxConnectionUsage(String count)
Setter method of max-connection-usage pool attribute
|
void |
setMaxPoolSize(String maxPoolSize)
Setter method of MaxPoolSize property
|
void |
setMaxWaitTimeInMillis(String maxWaitTimeInMillis)
Setter method of MaxWaitTimeInMillis property
|
void |
setModuleName(String moduleName) |
void |
setNonComponent(boolean enabled)
Setter method of non-component attribute
|
void |
setNonTransactional(boolean enabled)
Setter method of non-transactional attribute
|
void |
setPartitionedPool(boolean partitionedPool) |
void |
setPingDuringPoolCreation(boolean enabled)
Setter method of Ping pool during creation attribute.
|
void |
setPoolDataStructureType(String poolDataStructureType) |
void |
setPooling(boolean enabled)
Setter method of pooling attribute
|
void |
setPoolResizeQuantity(String poolResizeQuantity)
Setter method of PoolResizeQuantity property
|
void |
setPoolWaitQueue(String poolWaitQueue) |
void |
setPreferValidateOverRecreate(boolean preferValidateOverRecreate) |
void |
setResourceGatewayClass(String resourceGatewayClass) |
void |
setResourceSelectionStrategyClass(String resourceSelectionStrategyClass) |
void |
setSecurityMaps(ConnectorSecurityMap[] securityMapArray)
Setter method for Security Maps
|
void |
setSteadyPoolSize(String steadyPoolSize)
Setter method of SteadyPoolSize property
|
void |
setTransactionSupport(int transactionSupport)
Sets the transaction support level for this pool
The valid values are
|
void |
setValidateAtmostEveryIdleSecs(boolean enabled)
Setter method of validate-atmost-every-idle-seconds pool attribute
|
void |
setValidateAtmostOncePeriod(String validateAtmostOncePeriod)
Setter method of validate-atmost-period attribute
|
String |
toString()
return the String representation of the pool.
|
protected ConnectorDescriptorInfo connectorDescriptorInfo_
protected String steadyPoolSize_
protected String maxPoolSize_
protected String maxWaitTimeInMillis_
protected String poolResizeQuantity_
protected String idleTimeoutInSeconds_
protected boolean failAllConnections_
protected boolean matchConnections_
protected int transactionSupport_
protected boolean isConnectionValidationRequired_
public static final String DEFAULT_MAX_CONNECTION_USAGE
public static final String DEFAULT_CON_CREATION_RETRY_ATTEMPTS
public static final String DEFAULT_CON_CREATION_RETRY_INTERVAL
public static final String DEFAULT_VALIDATE_ATMOST_ONCE_PERIOD
public static final String DEFAULT_LEAK_TIMEOUT
public ConnectorConnectionPool(String name, String applicationName)
name
- Name of the connector connection poolpublic ConnectorConnectionPool(String name, String applicationName, String moduleName)
name
- Name of the connector connection poolpublic ConnectorConnectionPool(String name)
name
- Name of the connector connection poolpublic ConnectorConnectionPool(PoolInfo poolInfo)
public String getApplicationName()
public void setApplicationName(String applicationName)
public String getModuleName()
public void setModuleName(String moduleName)
public boolean isApplicationScopedResource()
public boolean getPingDuringPoolCreation()
public void setPingDuringPoolCreation(boolean enabled)
enabled
- enables/disables ping during creation.public boolean isPoolingOn()
public void setPooling(boolean enabled)
enabled
- enables/disables poolingprotected ConnectorConnectionPool doClone(String name)
public String getName()
public void setAuthCredentialsDefinedInPool(boolean authCred)
public boolean getAuthCredentialsDefinedInPool()
public ConnectorDescriptorInfo getConnectorDescriptorInfo()
public void setConnectorDescriptorInfo(ConnectorDescriptorInfo connectorDescriptorInfo)
connectorDescriptorInfo
- which contains ra.xml values
pertaining to managed connection factorypublic String getSteadyPoolSize()
public void setSteadyPoolSize(String steadyPoolSize)
steadyPoolSize
- Steady pool size valuepublic String getMaxPoolSize()
public void setMaxPoolSize(String maxPoolSize)
maxPoolSize
- maximum pool size valuepublic String getMaxWaitTimeInMillis()
public void setMaxWaitTimeInMillis(String maxWaitTimeInMillis)
maxWaitTimeInMillis
- maximum wait time in millis valuepublic String getPoolResizeQuantity()
public void setPoolResizeQuantity(String poolResizeQuantity)
poolResizeQuantity
- pool resize quantity valuepublic String getIdleTimeoutInSeconds()
public void setIdleTimeoutInSeconds(String idleTimeoutInSeconds)
idleTimeoutInSeconds
- Idle timeout in seconds valuepublic boolean isFailAllConnections()
public void setFailAllConnections(boolean failAllConnections)
failAllConnections
- fail all connections valuepublic boolean matchConnections()
public void setMatchConnections(boolean matchConnections)
matchConnections
- fail all connections valuepublic int getTransactionSupport()
public void setTransactionSupport(int transactionSupport)
transactionSupport
- int representing transaction supportpublic void setConnectionValidationRequired(boolean validation)
validation
- boolean representing validation requirementpublic boolean isIsConnectionValidationRequired()
public boolean isLazyConnectionAssoc()
public void setLazyConnectionAssoc(boolean enabled)
enabled
- enables/disables lazy-connection-associationpublic boolean isLazyConnectionEnlist()
public void setLazyConnectionEnlist(boolean enabled)
enabled
- enables/disables lazy-connection-enlistmentpublic boolean isAssociateWithThread()
public void setAssociateWithThread(boolean enabled)
enabled
- enables/disables associate-with-threadpublic boolean isNonTransactional()
public void setNonTransactional(boolean enabled)
enabled
- enables/disables non-transactional statuspublic boolean isNonComponent()
public void setNonComponent(boolean enabled)
enabled
- enables/disables non-component statuspublic String getConnectionLeakTracingTimeout()
public void setConnectionLeakTracingTimeout(String timeout)
timeout
- value after which connection is assumed to be leaked.public void setSecurityMaps(ConnectorSecurityMap[] securityMapArray)
securityMapArray
- SecurityMap[]public ConnectorSecurityMap[] getSecurityMaps()
public boolean isValidateAtmostEveryIdleSecs()
public void setValidateAtmostEveryIdleSecs(boolean enabled)
enabled
- enables/disables validate-atmost-every-idle-seconds
propertypublic void setMaxConnectionUsage(String count)
count
- max-connection-usage countpublic String getMaxConnectionUsage()
public String getConCreationRetryInterval()
public void setConCreationRetryInterval(String retryInterval)
retryInterval
- connection-creation-retry-interval durationpublic String getConCreationRetryAttempts()
public void setConCreationRetryAttempts(String retryAttempts)
retryAttempts
- connection-creation-retry-attempt interval
durationpublic String getValidateAtmostOncePeriod()
public void setValidateAtmostOncePeriod(String validateAtmostOncePeriod)
validateAtmostOncePeriod
- validate-atmost-period durationpublic boolean isConnectionReclaim()
public void setConnectionReclaim(boolean connectionReclaim)
connectionReclaim
- onnection-reclaim statuspublic String toString()
public boolean isPartitionedPool()
public void setPartitionedPool(boolean partitionedPool)
public String getPoolDataStructureType()
public void setPoolDataStructureType(String poolDataStructureType)
public String getPoolWaitQueue()
public void setPoolWaitQueue(String poolWaitQueue)
public String getDataStructureParameters()
public void setDataStructureParameters(String dataStructureParameters)
public String getResourceGatewayClass()
public void setResourceGatewayClass(String resourceGatewayClass)
public String getResourceSelectionStrategyClass()
public void setResourceSelectionStrategyClass(String resourceSelectionStrategyClass)
public boolean isPreferValidateOverRecreate()
public void setPreferValidateOverRecreate(boolean preferValidateOverRecreate)
public long getDynamicReconfigWaitTimeout()
public void setDynamicReconfigWaitTimeout(long dynamicReconfigWaitTimeout)
public PoolInfo getPoolInfo()
Copyright © 2021. All rights reserved.