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!
| Modifier and Type | Class and Description |
|---|---|
static class |
AddXADataSource.Builder<THIS extends AddXADataSource.Builder>
Builder for configuration attributes of an XA datasource.
|
NOOPNOOP| Modifier | Constructor and Description |
|---|---|
protected |
AddXADataSource(AddXADataSource.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(OfflineCommandContext ctx) |
void |
apply(OnlineCommandContext ctx) |
protected void |
modifyIfNeeded(ServerVersion serverVersion) |
String |
toString() |
protected Integer allocationRetry
protected Integer allocationRetryWaitMillis
protected Boolean allowMultipleUsers
protected Boolean backgroundValidation
protected Integer backgroundValidationMillis
protected Integer blockingTimeoutWaitMillis
protected String checkValidConnectionSql
protected String driverName
protected String exceptionSorterClass
protected PoolFlushStrategy flushStrategy
protected Integer idleTimeoutMinutes
protected Boolean interleaving
protected String jndiName
protected String mcp
protected Integer maxPoolSize
protected Integer minPoolSize
protected String newConnectionSql
protected Boolean noRecovery
protected Boolean noTxSeparatePool
protected Boolean padXid
protected String password
protected Boolean prefill
protected Boolean useStrictMinPoolSize
protected Integer preparedStatementsCacheSize
protected Integer queryTimeout
protected String reauthPluginClass
protected String recoveryUsername
protected String recoveryPassword
protected String recoverySecurityDomain
protected String recoveryPluginClass
protected Boolean sameRmOverride
protected String securityDomain
protected Boolean setTxQueryTimeout
protected Boolean sharePreparedStatements
protected Boolean spy
protected String staleConnectionCheckerClass
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 Integer useTryLock
protected String username
protected String validConnectionCheckerClass
protected Boolean validateOnMatch
protected Boolean wrapXaResource
protected String xaDatasourceClass
protected Integer xaResourceTimeout
protected AddXADataSource(AddXADataSource.Builder builder)
public final void apply(OnlineCommandContext ctx) throws IOException, CommandFailedException
apply in interface OnlineCommandIOExceptionCommandFailedExceptionpublic final void apply(OfflineCommandContext ctx) throws CommandFailedException
apply in interface OfflineCommandCommandFailedExceptionprotected void modifyIfNeeded(ServerVersion serverVersion)
public final String toString()
toString in interface OfflineCommandtoString in interface OnlineCommandtoString in class ObjectCopyright © 2021. All rights reserved.