org.jboss.jca.as.converters
Class LegacyConnectionFactoryImp

java.lang.Object
  extended by 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
LegacyConnectionFactoryImp(String jndiName, String rarName, String poolName, String connectionDefinition, Map<String,String> configProperty, org.jboss.jca.common.api.metadata.common.TransactionSupportEnum transactionSupport)
          create a LegacyConnectionFactoryImp
 
Method Summary
 LegacyConnectionFactoryImp buildCommonPool(Integer minPoolSize, Integer maxPoolSize, Boolean prefill, Boolean noTxSeparatePool, Boolean interleaving)
          build pool part
 LegacyConnectionFactoryImp buildOther()
          build other properties
 void buildResourceAdapterImpl()
          buildResourceAdapterImpl
 LegacyConnectionFactoryImp buildSecurity(String securityDomainManaged, String securityDomainAndApplicationManaged, boolean applicationManaged)
          build security part
 LegacyConnectionFactoryImp buildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout)
          build timeout part
 LegacyConnectionFactoryImp buildValidation(Boolean backgroundValidation, Long backgroundValidationMillis, Boolean useFastFail)
          build validation part
 Integer getAllocationRetry()
          Get the allocationRetryWaitMillis.
 Long getAllocationRetryWaitMillis()
          Get the allocationRetryWaitMillis.
 Long getBackgroundValidationMillis()
          Get the backgroundValidationMillis.
 Long getBlockingTimeoutMillis()
          Get the blockingTimeoutMillis.
 Map<String,String> getConfigProperties()
          Get the configProperties.
 String getConnectionDefinition()
          get the ConnectionDefinition
 Long getIdleTimeoutMinutes()
          Get the idleTimeoutMinutes.
 Boolean getInterleaving()
          getInterleaving
 String getJndiName()
          Get the jndiName.
 Integer getMaxPoolSize()
          Get the maxPoolSize.
 Integer getMinPoolSize()
          Get the minPoolSize.
 String getRarName()
          Get the rarName.
 String getSecurityDomain()
          get the security domain for pure security-domain security management
 org.jboss.jca.common.api.metadata.common.TransactionSupportEnum getTransactionSupport()
          get the getTransactionSupport
 Integer getXaResourceTimeout()
          Get the xaResourceTimeout.
 Boolean isBackgroundValidation()
          Get the backgroundValidation.
 Boolean isNoTxSeparatePools()
          Get the noTxSeparatePools.
 Boolean isPrefill()
          Get the prefill.
 Boolean isTrackConnectionByTx()
          Get the TrackConnectionByTx.
 Boolean isUseFastFail()
          Get the useFastFail.
 void setInterleaving(Boolean interleaving)
          setInterleaving
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LegacyConnectionFactoryImp

public LegacyConnectionFactoryImp(String jndiName,
                                  String rarName,
                                  String poolName,
                                  String connectionDefinition,
                                  Map<String,String> configProperty,
                                  org.jboss.jca.common.api.metadata.common.TransactionSupportEnum transactionSupport)
create a LegacyConnectionFactoryImp

Parameters:
jndiName - jndiName
rarName - rarName
poolName - poolName
connectionDefinition - connectionDefinition
configProperty - configProperty
transactionSupport - transactionSupport
Method Detail

buildResourceAdapterImpl

public void buildResourceAdapterImpl()
                              throws Exception
buildResourceAdapterImpl

Throws:
Exception - exception

toString

public String toString()
Overrides:
toString in class Object

buildTimeOut

public LegacyConnectionFactoryImp buildTimeOut(Long blockingTimeoutMillis,
                                               Long idleTimeoutMinutes,
                                               Integer allocationRetry,
                                               Long allocationRetryWaitMillis,
                                               Integer xaResourceTimeout)
                                        throws Exception
build timeout part

Parameters:
blockingTimeoutMillis - blockingTimeoutMillis
idleTimeoutMinutes - idleTimeoutMinutes
allocationRetry - allocationRetry
allocationRetryWaitMillis - allocationRetryWaitMillis
xaResourceTimeout - xaResourceTimeout
Returns:
this
Throws:
Exception - exception

buildValidation

public LegacyConnectionFactoryImp buildValidation(Boolean backgroundValidation,
                                                  Long backgroundValidationMillis,
                                                  Boolean useFastFail)
                                           throws Exception
build validation part

Parameters:
backgroundValidation - backgroundValidation
backgroundValidationMillis - backgroundValidationMillis
useFastFail - useFastFail
Returns:
this
Throws:
Exception - exception

buildCommonPool

public LegacyConnectionFactoryImp buildCommonPool(Integer minPoolSize,
                                                  Integer maxPoolSize,
                                                  Boolean prefill,
                                                  Boolean noTxSeparatePool,
                                                  Boolean interleaving)
                                           throws Exception
build pool part

Parameters:
minPoolSize - minPoolSize
maxPoolSize - maxPoolSize
prefill - prefill
noTxSeparatePool - noTxSeparatePool
interleaving - interleaving
Returns:
this
Throws:
Exception - exception

buildSecurity

public LegacyConnectionFactoryImp buildSecurity(String securityDomainManaged,
                                                String securityDomainAndApplicationManaged,
                                                boolean applicationManaged)
                                         throws Exception
build security part

Parameters:
securityDomainManaged - securityDomainManaged
securityDomainAndApplicationManaged - securityDomainAndApplicationManaged
applicationManaged - applicationManagedS
Returns:
this
Throws:
Exception - exception

buildOther

public LegacyConnectionFactoryImp buildOther()
build other properties

Returns:
this

getJndiName

public String getJndiName()
Description copied from interface: ConnectionFactory
Get the jndiName.

Specified by:
getJndiName in interface ConnectionFactory
Returns:
the jndiName.

getSecurityDomain

public String getSecurityDomain()
Description copied from interface: ConnectionFactory
get the security domain for pure security-domain security management

Specified by:
getSecurityDomain in interface ConnectionFactory
Returns:
the security-domain to use

getMinPoolSize

public Integer getMinPoolSize()
Description copied from interface: ConnectionFactory
Get the minPoolSize.

Specified by:
getMinPoolSize in interface ConnectionFactory
Returns:
the minPoolSize.

getMaxPoolSize

public Integer getMaxPoolSize()
Description copied from interface: ConnectionFactory
Get the maxPoolSize.

Specified by:
getMaxPoolSize in interface ConnectionFactory
Returns:
the maxPoolSize.

getBlockingTimeoutMillis

public Long getBlockingTimeoutMillis()
Description copied from interface: ConnectionFactory
Get the blockingTimeoutMillis.

Specified by:
getBlockingTimeoutMillis in interface ConnectionFactory
Returns:
the blockingTimeoutMillis.

isBackgroundValidation

public Boolean isBackgroundValidation()
Description copied from interface: ConnectionFactory
Get the backgroundValidation.

Specified by:
isBackgroundValidation in interface ConnectionFactory
Returns:
the backgroundValidation.

getBackgroundValidationMillis

public Long getBackgroundValidationMillis()
Description copied from interface: ConnectionFactory
Get the backgroundValidationMillis.

Specified by:
getBackgroundValidationMillis in interface ConnectionFactory
Returns:
the backgroundValidationMillis.

getIdleTimeoutMinutes

public Long getIdleTimeoutMinutes()
Description copied from interface: ConnectionFactory
Get the idleTimeoutMinutes.

Specified by:
getIdleTimeoutMinutes in interface ConnectionFactory
Returns:
the idleTimeoutMinutes.

getAllocationRetry

public Integer getAllocationRetry()
Description copied from interface: ConnectionFactory
Get the allocationRetryWaitMillis.

Specified by:
getAllocationRetry in interface ConnectionFactory
Returns:
the allocationRetryWaitMillis.

getAllocationRetryWaitMillis

public Long getAllocationRetryWaitMillis()
Description copied from interface: ConnectionFactory
Get the allocationRetryWaitMillis.

Specified by:
getAllocationRetryWaitMillis in interface ConnectionFactory
Returns:
the allocationRetryWaitMillis.

isPrefill

public Boolean isPrefill()
Description copied from interface: ConnectionFactory
Get the prefill.

Specified by:
isPrefill in interface ConnectionFactory
Returns:
the prefill.

isUseFastFail

public Boolean isUseFastFail()
Description copied from interface: ConnectionFactory
Get the useFastFail.

Specified by:
isUseFastFail in interface ConnectionFactory
Returns:
the useFastFail.

isNoTxSeparatePools

public Boolean isNoTxSeparatePools()
Description copied from interface: CommonXa
Get the noTxSeparatePools.

Specified by:
isNoTxSeparatePools in interface CommonXa
Returns:
the noTxSeparatePools.

isTrackConnectionByTx

public Boolean isTrackConnectionByTx()
Description copied from interface: CommonXa
Get the TrackConnectionByTx.

Specified by:
isTrackConnectionByTx in interface CommonXa
Returns:
the TrackConnectionByTx.

getXaResourceTimeout

public Integer getXaResourceTimeout()
Description copied from interface: CommonXa
Get the xaResourceTimeout.

Specified by:
getXaResourceTimeout in interface CommonXa
Returns:
the xaResourceTimeout.

getRarName

public String getRarName()
Description copied from interface: NoTxConnectionFactory
Get the rarName.

Specified by:
getRarName in interface NoTxConnectionFactory
Returns:
the rarName.

getConnectionDefinition

public String getConnectionDefinition()
Description copied from interface: NoTxConnectionFactory
get the ConnectionDefinition

Specified by:
getConnectionDefinition in interface NoTxConnectionFactory
Returns:
the ConnectionDefinition

getConfigProperties

public Map<String,String> getConfigProperties()
Description copied from interface: NoTxConnectionFactory
Get the configProperties.

Specified by:
getConfigProperties in interface NoTxConnectionFactory
Returns:
the configProperties.

getTransactionSupport

public org.jboss.jca.common.api.metadata.common.TransactionSupportEnum getTransactionSupport()
Description copied from interface: TxConnectionFactory
get the getTransactionSupport

Specified by:
getTransactionSupport in interface TxConnectionFactory
Returns:
the getTransactionSupport

setInterleaving

public void setInterleaving(Boolean interleaving)
setInterleaving

Parameters:
interleaving - interleaving

getInterleaving

public Boolean getInterleaving()
getInterleaving

Returns:
Boolean interleaving


Copyright © 2011 Red Hat Middleware LLC (http://www.jboss.com/)