org.wildfly.extras.creaper.commands.datasources
Class AddDataSource
java.lang.Object
org.wildfly.extras.creaper.commands.datasources.AddDataSource
- All Implemented Interfaces:
- Command, OfflineCommand, OnlineCommand
- Direct Known Subclasses:
- AddDb2DataSource, AddMariaDbDataSource, AddMssqlDataSource, AddMysqlDataSource, AddOracleDataSource, AddPostgresPlusDataSource, AddPostgreSqlDataSource, AddSybaseDataSource
public class AddDataSource
- extends Object
- implements OnlineCommand, OfflineCommand
A generic command for creating new 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 AddDataSource.Builder.enableAfterCreate()
is used!
- See Also:
AddDb2DataSource,
AddMssqlDataSource,
AddMysqlDataSource,
AddOracleDataSource,
AddPostgresPlusDataSource,
AddPostgreSqlDataSource,
AddSybaseDataSource
| Fields inherited from interface org.wildfly.extras.creaper.core.online.OnlineCommand |
NOOP |
| Fields inherited from interface org.wildfly.extras.creaper.core.offline.OfflineCommand |
NOOP |
allocationRetry
protected Integer allocationRetry
allocationRetryWaitMillis
protected Integer allocationRetryWaitMillis
allowMultipleUsers
protected Boolean allowMultipleUsers
backgroundValidation
protected Boolean backgroundValidation
backgroundValidationMillis
protected Integer backgroundValidationMillis
blockingTimeoutMillis
protected Integer blockingTimeoutMillis
checkValidConnectionSql
protected String checkValidConnectionSql
connectable
protected Boolean connectable
connectionProperties
protected Map<String,String> connectionProperties
datasourceClass
protected String datasourceClass
driverClass
protected String driverClass
driverName
protected String driverName
exceptionSorterClass
protected String exceptionSorterClass
exceptionSorterProperties
protected Map<String,String> exceptionSorterProperties
idleTimeoutMinutes
protected Integer idleTimeoutMinutes
jta
protected Boolean jta
managedConnectionPool
protected String managedConnectionPool
maxPoolSize
protected Integer maxPoolSize
minPoolSize
protected Integer minPoolSize
newConnectionSql
protected String newConnectionSql
password
protected String password
flushStrategy
protected PoolFlushStrategy flushStrategy
prefill
protected Boolean prefill
preparedStatementCacheSize
protected Integer preparedStatementCacheSize
queryTimeout
protected Integer queryTimeout
reauthPluginClass
protected String reauthPluginClass
reauthPluginProperties
protected Map<String,String> reauthPluginProperties
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
trackStatements
protected TrackStatementType trackStatements
transactionIsolation
protected TransactionIsolation transactionIsolation
urlDelimiter
protected String urlDelimiter
urlSelectorStrategyClass
protected String urlSelectorStrategyClass
useCcm
protected Boolean useCcm
useFastFailAllocation
protected Boolean useFastFailAllocation
useJavaContext
protected Boolean useJavaContext
useStrictMinPoolSize
protected Boolean useStrictMinPoolSize
useTryLock
protected Integer useTryLock
username
protected String username
validateOnMatch
protected Boolean validateOnMatch
validConnectionCheckerClass
protected String validConnectionCheckerClass
validConnectionCheckerProperties
protected Map<String,String> validConnectionCheckerProperties
AddDataSource
protected AddDataSource(AddDataSource.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,
IOException
- Specified by:
apply in interface OfflineCommand
- Throws:
CommandFailedException
IOException
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 © 2020. All rights reserved.