Package org.jboss.jca.as.converters
Class LegacyConnectionFactoryImp
- java.lang.Object
-
- org.jboss.jca.as.converters.LegacyConnectionFactoryImp
-
- All Implemented Interfaces:
CommonXa,ConnectionFactory,NoTxConnectionFactory,TxConnectionFactory
public class LegacyConnectionFactoryImp extends Object implements 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
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyConnectionFactoryImpbuildAdminObejcts(String className, String jndiName, String poolName, Map<String,String> configProperties, boolean enabled, boolean useJavaContext)build admin objectLegacyConnectionFactoryImpbuildCommonPool(Integer minPoolSize, Integer maxPoolSize, Boolean prefill, org.jboss.jca.common.api.metadata.common.Capacity capacity, Boolean noTxSeparatePool, Boolean interleaving)build pool partLegacyConnectionFactoryImpbuildOther()build other propertiesvoidbuildResourceAdapterImpl()buildResourceAdapterImplLegacyConnectionFactoryImpbuildSecurity(String securityDomainManaged, String securityDomainAndApplicationManaged, boolean applicationManaged)build security partLegacyConnectionFactoryImpbuildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout)build timeout partLegacyConnectionFactoryImpbuildValidation(Boolean backgroundValidation, Long backgroundValidationMillis, Boolean useFastFail)build validation partLegacyConnectionFactoryImpbuildWorkManager(org.jboss.jca.common.api.metadata.resourceadapter.WorkManager workmanager)build workmanagerIntegergetAllocationRetry()Get the allocationRetryWaitMillis.LonggetAllocationRetryWaitMillis()Get the allocationRetryWaitMillis.LonggetBackgroundValidationMillis()Get the backgroundValidationMillis.LonggetBlockingTimeoutMillis()Get the blockingTimeoutMillis.Map<String,String>getConfigProperties()Get the configProperties.StringgetConnectionDefinition()get the ConnectionDefinitionLonggetIdleTimeoutMinutes()Get the idleTimeoutMinutes.BooleangetInterleaving()getInterleavingStringgetJndiName()Get the jndiName.IntegergetMaxPoolSize()Get the maxPoolSize.IntegergetMinPoolSize()Get the minPoolSize.StringgetRarName()Get the rarName.StringgetSecurityDomain()get the security domain for pure security-domain security managementorg.jboss.jca.common.api.metadata.common.TransactionSupportEnumgetTransactionSupport()get the getTransactionSupportIntegergetXaResourceTimeout()Get the xaResourceTimeout.BooleanisBackgroundValidation()Get the backgroundValidation.BooleanisNoTxSeparatePools()Get the noTxSeparatePools.BooleanisPrefill()Get the prefill.BooleanisTrackConnectionByTx()Get the TrackConnectionByTx.BooleanisUseFastFail()Get the useFastFail.voidsetInterleaving(Boolean interleaving)setInterleavingStringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
buildResourceAdapterImpl
public void buildResourceAdapterImpl() throws ExceptionbuildResourceAdapterImpl- Throws:
Exception- exception
-
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 Exception
build 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
public LegacyConnectionFactoryImp buildOther()
build other properties- Returns:
- this
-
getJndiName
public String getJndiName()
Description copied from interface:ConnectionFactoryGet the jndiName.- Specified by:
getJndiNamein interfaceConnectionFactory- Returns:
- the jndiName.
-
getSecurityDomain
public String 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
public Integer getMinPoolSize()
Description copied from interface:ConnectionFactoryGet the minPoolSize.- Specified by:
getMinPoolSizein interfaceConnectionFactory- Returns:
- the minPoolSize.
-
getMaxPoolSize
public Integer getMaxPoolSize()
Description copied from interface:ConnectionFactoryGet the maxPoolSize.- Specified by:
getMaxPoolSizein interfaceConnectionFactory- Returns:
- the maxPoolSize.
-
getBlockingTimeoutMillis
public Long getBlockingTimeoutMillis()
Description copied from interface:ConnectionFactoryGet the blockingTimeoutMillis.- Specified by:
getBlockingTimeoutMillisin interfaceConnectionFactory- Returns:
- the blockingTimeoutMillis.
-
isBackgroundValidation
public Boolean isBackgroundValidation()
Description copied from interface:ConnectionFactoryGet the backgroundValidation.- Specified by:
isBackgroundValidationin interfaceConnectionFactory- Returns:
- the backgroundValidation.
-
getBackgroundValidationMillis
public Long getBackgroundValidationMillis()
Description copied from interface:ConnectionFactoryGet the backgroundValidationMillis.- Specified by:
getBackgroundValidationMillisin interfaceConnectionFactory- Returns:
- the backgroundValidationMillis.
-
getIdleTimeoutMinutes
public Long getIdleTimeoutMinutes()
Description copied from interface:ConnectionFactoryGet the idleTimeoutMinutes.- Specified by:
getIdleTimeoutMinutesin interfaceConnectionFactory- Returns:
- the idleTimeoutMinutes.
-
getAllocationRetry
public Integer getAllocationRetry()
Description copied from interface:ConnectionFactoryGet the allocationRetryWaitMillis.- Specified by:
getAllocationRetryin interfaceConnectionFactory- Returns:
- the allocationRetryWaitMillis.
-
getAllocationRetryWaitMillis
public Long getAllocationRetryWaitMillis()
Description copied from interface:ConnectionFactoryGet the allocationRetryWaitMillis.- Specified by:
getAllocationRetryWaitMillisin interfaceConnectionFactory- Returns:
- the allocationRetryWaitMillis.
-
isPrefill
public Boolean isPrefill()
Description copied from interface:ConnectionFactoryGet the prefill.- Specified by:
isPrefillin interfaceConnectionFactory- Returns:
- the prefill.
-
isUseFastFail
public Boolean isUseFastFail()
Description copied from interface:ConnectionFactoryGet the useFastFail.- Specified by:
isUseFastFailin interfaceConnectionFactory- Returns:
- the useFastFail.
-
isNoTxSeparatePools
public Boolean isNoTxSeparatePools()
Description copied from interface:CommonXaGet the noTxSeparatePools.- Specified by:
isNoTxSeparatePoolsin interfaceCommonXa- Returns:
- the noTxSeparatePools.
-
isTrackConnectionByTx
public Boolean isTrackConnectionByTx()
Description copied from interface:CommonXaGet the TrackConnectionByTx.- Specified by:
isTrackConnectionByTxin interfaceCommonXa- Returns:
- the TrackConnectionByTx.
-
getXaResourceTimeout
public Integer getXaResourceTimeout()
Description copied from interface:CommonXaGet the xaResourceTimeout.- Specified by:
getXaResourceTimeoutin interfaceCommonXa- Returns:
- the xaResourceTimeout.
-
getRarName
public String getRarName()
Description copied from interface:NoTxConnectionFactoryGet the rarName.- Specified by:
getRarNamein interfaceNoTxConnectionFactory- Returns:
- the rarName.
-
getConnectionDefinition
public String getConnectionDefinition()
Description copied from interface:NoTxConnectionFactoryget the ConnectionDefinition- Specified by:
getConnectionDefinitionin interfaceNoTxConnectionFactory- Returns:
- the ConnectionDefinition
-
getConfigProperties
public Map<String,String> 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
public void setInterleaving(Boolean interleaving)
setInterleaving- Parameters:
interleaving- interleaving
-
getInterleaving
public Boolean getInterleaving()
getInterleaving- Returns:
- Boolean interleaving
-
-