Package org.jboss.jca.as.converters
Class LegacyConnectionFactoryImp
java.lang.Object
org.jboss.jca.as.converters.LegacyConnectionFactoryImp
- All Implemented Interfaces:
CommonXa,ConnectionFactory,NoTxConnectionFactory,TxConnectionFactory
A LegacyConnectionFactoryImp impl.
- Version:
- $Revision: $
- Author:
- Jeff Zhang
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jca.as.converters.TxConnectionFactory
TxConnectionFactory.Tag -
Constructor Summary
ConstructorsConstructorDescriptionLegacyConnectionFactoryImp(String jndiName, String rarName, Map<String, String> rarConfigProperty, String poolName, String connectionDefinition, Map<String, String> connConfigProperty, org.jboss.jca.common.api.metadata.common.TransactionSupportEnum transactionSupport) create a LegacyConnectionFactoryImp -
Method Summary
Modifier and TypeMethodDescriptionbuildAdminObejcts(String className, String jndiName, String poolName, Map<String, String> configProperties, boolean enabled, boolean useJavaContext) build admin objectbuildCommonPool(Integer minPoolSize, Integer maxPoolSize, Boolean prefill, org.jboss.jca.common.api.metadata.common.Capacity capacity, Boolean noTxSeparatePool, Boolean interleaving) build pool partbuild other propertiesvoidbuildResourceAdapterImplbuildSecurity(String securityDomainManaged, String securityDomainAndApplicationManaged, boolean applicationManaged) build security partbuildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout) build timeout partbuildValidation(Boolean backgroundValidation, Long backgroundValidationMillis, Boolean useFastFail) build validation partbuildWorkManager(org.jboss.jca.common.api.metadata.resourceadapter.WorkManager workmanager) build workmanagerGet the allocationRetryWaitMillis.Get the allocationRetryWaitMillis.Get the backgroundValidationMillis.Get the blockingTimeoutMillis.Get the configProperties.get the ConnectionDefinitionGet the idleTimeoutMinutes.getInterleavingGet the jndiName.Get the maxPoolSize.Get the minPoolSize.Get the rarName.get the security domain for pure security-domain security managementorg.jboss.jca.common.api.metadata.common.TransactionSupportEnumget the getTransactionSupportGet the xaResourceTimeout.Get the backgroundValidation.Get the noTxSeparatePools.Get the prefill.Get the TrackConnectionByTx.Get the useFastFail.voidsetInterleaving(Boolean interleaving) setInterleavingtoString()
-
Constructor Details
-
LegacyConnectionFactoryImp
public LegacyConnectionFactoryImp(String jndiName, String rarName, Map<String, String> rarConfigProperty, String poolName, String connectionDefinition, Map<String, String> connConfigProperty, org.jboss.jca.common.api.metadata.common.TransactionSupportEnum transactionSupport) create a LegacyConnectionFactoryImp- Parameters:
jndiName- jndiNamerarName- rarNamerarConfigProperty- rarConfigPropertypoolName- poolNameconnectionDefinition- connectionDefinitionconnConfigProperty- connConfigPropertytransactionSupport- transactionSupport
-
-
Method Details
-
buildResourceAdapterImpl
buildResourceAdapterImpl- Throws:
Exception- exception
-
toString
-
buildTimeOut
public LegacyConnectionFactoryImp buildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout) throws Exception build timeout part- Parameters:
blockingTimeoutMillis- blockingTimeoutMillisidleTimeoutMinutes- idleTimeoutMinutesallocationRetry- allocationRetryallocationRetryWaitMillis- allocationRetryWaitMillisxaResourceTimeout- xaResourceTimeout- Returns:
- this
- Throws:
Exception- exception
-
buildValidation
public LegacyConnectionFactoryImp buildValidation(Boolean backgroundValidation, Long backgroundValidationMillis, Boolean useFastFail) throws Exception build validation part- Parameters:
backgroundValidation- backgroundValidationbackgroundValidationMillis- backgroundValidationMillisuseFastFail- useFastFail- Returns:
- this
- Throws:
Exception- exception
-
buildCommonPool
public LegacyConnectionFactoryImp buildCommonPool(Integer minPoolSize, Integer maxPoolSize, Boolean prefill, org.jboss.jca.common.api.metadata.common.Capacity capacity, Boolean noTxSeparatePool, Boolean interleaving) throws Exception build pool part- Parameters:
minPoolSize- minPoolSizemaxPoolSize- maxPoolSizeprefill- prefillcapacity- capacitynoTxSeparatePool- noTxSeparatePoolinterleaving- interleaving- Returns:
- this
- Throws:
Exception- exception
-
buildSecurity
public LegacyConnectionFactoryImp buildSecurity(String securityDomainManaged, String securityDomainAndApplicationManaged, boolean applicationManaged) throws Exception build security part- Parameters:
securityDomainManaged- securityDomainManagedsecurityDomainAndApplicationManaged- securityDomainAndApplicationManagedapplicationManaged- applicationManagedS- Returns:
- this
- Throws:
Exception- exception
-
buildAdminObejcts
public LegacyConnectionFactoryImp buildAdminObejcts(String className, String jndiName, String poolName, Map<String, String> configProperties, boolean enabled, boolean useJavaContext) throws Exceptionbuild admin object- Parameters:
className- classNamejndiName- jndiNamepoolName- poolNameconfigProperties- configPropertiesenabled- enableduseJavaContext- useJavaContext- Returns:
- this
- Throws:
Exception- exception
-
buildWorkManager
public LegacyConnectionFactoryImp buildWorkManager(org.jboss.jca.common.api.metadata.resourceadapter.WorkManager workmanager) throws Exception build workmanager- Parameters:
workmanager- workmanager- Returns:
- this
- Throws:
Exception- exception
-
buildOther
build other properties- Returns:
- this
-
getJndiName
Description copied from interface:ConnectionFactoryGet the jndiName.- Specified by:
getJndiNamein interfaceConnectionFactory- Returns:
- the jndiName.
-
getSecurityDomain
Description copied from interface:ConnectionFactoryget the security domain for pure security-domain security management- Specified by:
getSecurityDomainin interfaceConnectionFactory- Returns:
- the security-domain to use
-
getMinPoolSize
Description copied from interface:ConnectionFactoryGet the minPoolSize.- Specified by:
getMinPoolSizein interfaceConnectionFactory- Returns:
- the minPoolSize.
-
getMaxPoolSize
Description copied from interface:ConnectionFactoryGet the maxPoolSize.- Specified by:
getMaxPoolSizein interfaceConnectionFactory- Returns:
- the maxPoolSize.
-
getBlockingTimeoutMillis
Description copied from interface:ConnectionFactoryGet the blockingTimeoutMillis.- Specified by:
getBlockingTimeoutMillisin interfaceConnectionFactory- Returns:
- the blockingTimeoutMillis.
-
isBackgroundValidation
Description copied from interface:ConnectionFactoryGet the backgroundValidation.- Specified by:
isBackgroundValidationin interfaceConnectionFactory- Returns:
- the backgroundValidation.
-
getBackgroundValidationMillis
Description copied from interface:ConnectionFactoryGet the backgroundValidationMillis.- Specified by:
getBackgroundValidationMillisin interfaceConnectionFactory- Returns:
- the backgroundValidationMillis.
-
getIdleTimeoutMinutes
Description copied from interface:ConnectionFactoryGet the idleTimeoutMinutes.- Specified by:
getIdleTimeoutMinutesin interfaceConnectionFactory- Returns:
- the idleTimeoutMinutes.
-
getAllocationRetry
Description copied from interface:ConnectionFactoryGet the allocationRetryWaitMillis.- Specified by:
getAllocationRetryin interfaceConnectionFactory- Returns:
- the allocationRetryWaitMillis.
-
getAllocationRetryWaitMillis
Description copied from interface:ConnectionFactoryGet the allocationRetryWaitMillis.- Specified by:
getAllocationRetryWaitMillisin interfaceConnectionFactory- Returns:
- the allocationRetryWaitMillis.
-
isPrefill
Description copied from interface:ConnectionFactoryGet the prefill.- Specified by:
isPrefillin interfaceConnectionFactory- Returns:
- the prefill.
-
isUseFastFail
Description copied from interface:ConnectionFactoryGet the useFastFail.- Specified by:
isUseFastFailin interfaceConnectionFactory- Returns:
- the useFastFail.
-
isNoTxSeparatePools
Description copied from interface:CommonXaGet the noTxSeparatePools.- Specified by:
isNoTxSeparatePoolsin interfaceCommonXa- Returns:
- the noTxSeparatePools.
-
isTrackConnectionByTx
Description copied from interface:CommonXaGet the TrackConnectionByTx.- Specified by:
isTrackConnectionByTxin interfaceCommonXa- Returns:
- the TrackConnectionByTx.
-
getXaResourceTimeout
Description copied from interface:CommonXaGet the xaResourceTimeout.- Specified by:
getXaResourceTimeoutin interfaceCommonXa- Returns:
- the xaResourceTimeout.
-
getRarName
Description copied from interface:NoTxConnectionFactoryGet the rarName.- Specified by:
getRarNamein interfaceNoTxConnectionFactory- Returns:
- the rarName.
-
getConnectionDefinition
Description copied from interface:NoTxConnectionFactoryget the ConnectionDefinition- Specified by:
getConnectionDefinitionin interfaceNoTxConnectionFactory- Returns:
- the ConnectionDefinition
-
getConfigProperties
Description copied from interface:NoTxConnectionFactoryGet the configProperties.- Specified by:
getConfigPropertiesin interfaceNoTxConnectionFactory- Returns:
- the configProperties.
-
getTransactionSupport
public org.jboss.jca.common.api.metadata.common.TransactionSupportEnum getTransactionSupport()Description copied from interface:TxConnectionFactoryget the getTransactionSupport- Specified by:
getTransactionSupportin interfaceTxConnectionFactory- Returns:
- the getTransactionSupport
-
setInterleaving
setInterleaving- Parameters:
interleaving- interleaving
-
getInterleaving
getInterleaving- Returns:
- Boolean interleaving
-