org.wildfly.extras.creaper.commands.datasources
Class AddXADataSource

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.datasources.AddXADataSource
All Implemented Interfaces:
Command, OfflineCommand, OnlineCommand
Direct Known Subclasses:
AddDb2XADataSource, AddMariaDbXADataSource, AddMssqlXADataSource, AddMysqlXADataSource, AddOracleXADataSource, AddPostgresPlusXADataSource, AddPostgreSqlXADataSource, AddSybaseXADataSource

public class AddXADataSource
extends Object
implements OnlineCommand, OfflineCommand

A generic command for creating new XA datasource. For well-known databases, it's preferred to use the subclasses, because they apply some common configuration. This class is supposed to be used for unknown databases or when absolute control is desired.

Note that the datasources are always created as disabled, unless AddXADataSource.Builder.enableAfterCreate() is used!

See Also:
AddDb2XADataSource, AddMssqlXADataSource, AddMysqlXADataSource, AddOracleXADataSource, AddPostgresPlusXADataSource, AddPostgreSqlXADataSource, AddSybaseXADataSource

Nested Class Summary
static class AddXADataSource.Builder<THIS extends AddXADataSource.Builder>
          Builder for configuration attributes of an XA datasource.
 
Field Summary
protected  Integer allocationRetry
           
protected  Integer allocationRetryWaitMillis
           
protected  Boolean allowMultipleUsers
           
protected  Boolean backgroundValidation
           
protected  Integer backgroundValidationMillis
           
protected  Integer blockingTimeoutWaitMillis
           
protected  String driverName
           
protected  String exceptionSorterClass
           
protected  Map<String,String> exceptionSorterProperties
           
protected  PoolFlushStrategy flushStrategy
           
protected  String checkValidConnectionSql
           
protected  Integer idleTimeoutMinutes
           
protected  Boolean interleaving
           
protected  String jndiName
           
protected  Integer maxPoolSize
           
protected  String mcp
           
protected  Integer minPoolSize
           
protected  String newConnectionSql
           
protected  Boolean noRecovery
           
protected  Boolean noTxSeparatePool
           
protected  Boolean padXid
           
protected  String password
           
protected  Boolean prefill
           
protected  Integer preparedStatementsCacheSize
           
protected  Integer queryTimeout
           
protected  String reauthPluginClass
           
protected  Map<String,String> reauthPluginProperties
           
protected  String recoveryPassword
           
protected  String recoveryPluginClass
           
protected  Map<String,String> recoveryPluginProperties
           
protected  String recoverySecurityDomain
           
protected  String recoveryUsername
           
protected  Boolean sameRmOverride
           
protected  String securityDomain
           
protected  Boolean setTxQueryTimeout
           
protected  Boolean sharePreparedStatements
           
protected  Boolean spy
           
protected  String staleConnectionCheckerClass
           
protected  Map<String,String> staleConnectionCheckerProperties
           
protected  Boolean statisticsEnabled
           
protected  TrackStatementType trackPreparedStatements
           
protected  TransactionIsolation transactionIsolation
           
protected  String urlDelimiter
           
protected  String urlSelectorStrategyClass
           
protected  Boolean useCcm
           
protected  Boolean useFastFailAllocation
           
protected  Boolean useJavaContext
           
protected  String username
           
protected  Boolean useStrictMinPoolSize
           
protected  Integer useTryLock
           
protected  Boolean validateOnMatch
           
protected  String validConnectionCheckerClass
           
protected  Map<String,String> validConnectionCheckerProperties
           
protected  Boolean wrapXaResource
           
protected  String xaDatasourceClass
           
protected  Map<String,String> xaDatasourceProperties
           
protected  Integer xaResourceTimeout
           
 
Fields inherited from interface org.wildfly.extras.creaper.core.online.OnlineCommand
NOOP
 
Fields inherited from interface org.wildfly.extras.creaper.core.offline.OfflineCommand
NOOP
 
Constructor Summary
protected AddXADataSource(AddXADataSource.Builder builder)
           
 
Method Summary
 void apply(OfflineCommandContext ctx)
           
 void apply(OnlineCommandContext ctx)
           
protected  void modifyIfNeeded(ServerVersion serverVersion)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

allocationRetry

protected Integer allocationRetry

allocationRetryWaitMillis

protected Integer allocationRetryWaitMillis

allowMultipleUsers

protected Boolean allowMultipleUsers

backgroundValidation

protected Boolean backgroundValidation

backgroundValidationMillis

protected Integer backgroundValidationMillis

blockingTimeoutWaitMillis

protected Integer blockingTimeoutWaitMillis

checkValidConnectionSql

protected String checkValidConnectionSql

driverName

protected String driverName

exceptionSorterClass

protected String exceptionSorterClass

exceptionSorterProperties

protected Map<String,String> exceptionSorterProperties

flushStrategy

protected PoolFlushStrategy flushStrategy

idleTimeoutMinutes

protected Integer idleTimeoutMinutes

interleaving

protected Boolean interleaving

jndiName

protected String jndiName

mcp

protected String mcp

maxPoolSize

protected Integer maxPoolSize

minPoolSize

protected Integer minPoolSize

newConnectionSql

protected String newConnectionSql

noRecovery

protected Boolean noRecovery

noTxSeparatePool

protected Boolean noTxSeparatePool

padXid

protected Boolean padXid

password

protected String password

prefill

protected Boolean prefill

useStrictMinPoolSize

protected Boolean useStrictMinPoolSize

preparedStatementsCacheSize

protected Integer preparedStatementsCacheSize

queryTimeout

protected Integer queryTimeout

reauthPluginClass

protected String reauthPluginClass

reauthPluginProperties

protected Map<String,String> reauthPluginProperties

recoveryUsername

protected String recoveryUsername

recoveryPassword

protected String recoveryPassword

recoverySecurityDomain

protected String recoverySecurityDomain

recoveryPluginClass

protected String recoveryPluginClass

recoveryPluginProperties

protected Map<String,String> recoveryPluginProperties

sameRmOverride

protected Boolean sameRmOverride

securityDomain

protected String securityDomain

setTxQueryTimeout

protected Boolean setTxQueryTimeout

sharePreparedStatements

protected Boolean sharePreparedStatements

spy

protected Boolean spy

staleConnectionCheckerClass

protected String staleConnectionCheckerClass

staleConnectionCheckerProperties

protected Map<String,String> staleConnectionCheckerProperties

statisticsEnabled

protected Boolean statisticsEnabled

trackPreparedStatements

protected TrackStatementType trackPreparedStatements

transactionIsolation

protected TransactionIsolation transactionIsolation

urlDelimiter

protected String urlDelimiter

urlSelectorStrategyClass

protected String urlSelectorStrategyClass

useCcm

protected Boolean useCcm

useFastFailAllocation

protected Boolean useFastFailAllocation

useJavaContext

protected Boolean useJavaContext

useTryLock

protected Integer useTryLock

username

protected String username

validConnectionCheckerClass

protected String validConnectionCheckerClass

validConnectionCheckerProperties

protected Map<String,String> validConnectionCheckerProperties

validateOnMatch

protected Boolean validateOnMatch

wrapXaResource

protected Boolean wrapXaResource

xaDatasourceClass

protected String xaDatasourceClass

xaResourceTimeout

protected Integer xaResourceTimeout

xaDatasourceProperties

protected Map<String,String> xaDatasourceProperties
Constructor Detail

AddXADataSource

protected AddXADataSource(AddXADataSource.Builder builder)
Method Detail

apply

public final void apply(OnlineCommandContext ctx)
                 throws IOException,
                        CommandFailedException
Specified by:
apply in interface OnlineCommand
Throws:
IOException
CommandFailedException

apply

public final void apply(OfflineCommandContext ctx)
                 throws CommandFailedException
Specified by:
apply in interface OfflineCommand
Throws:
CommandFailedException

modifyIfNeeded

protected void modifyIfNeeded(ServerVersion serverVersion)

toString

public final String toString()
Specified by:
toString in interface OfflineCommand
Specified by:
toString in interface OnlineCommand
Overrides:
toString in class Object


Copyright © 2016. All rights reserved.