org.wildfly.extras.creaper.commands.datasources
Class AddXADataSource
java.lang.Object
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
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
AddXADataSource
protected AddXADataSource(AddXADataSource.Builder builder)
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.