public abstract class RelationalDatabaseConnectorConfig extends CommonConnectorConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
RelationalDatabaseConnectorConfig.DecimalHandlingMode
The set of predefined DecimalHandlingMode options or aliases.
|
CommonConnectorConfig.EventProcessingFailureHandlingMode, CommonConnectorConfig.Version| Modifier and Type | Field and Description |
|---|---|
static Field |
COLUMN_BLACKLIST
A comma-separated list of regular expressions that match fully-qualified names of columns to be excluded from monitoring
and change messages.
|
static Field |
DECIMAL_HANDLING_MODE |
static long |
DEFAULT_SNAPSHOT_LOCK_TIMEOUT_MILLIS |
private Key.KeyMapper |
keyMapper |
static Field |
MSG_KEY_COLUMNS |
private static Pattern |
MSG_KEY_COLUMNS_PATTERN |
static Field |
SCHEMA_BLACKLIST
A comma-separated list of regular expressions that match schema names to be excluded from monitoring.
|
static Field |
SCHEMA_WHITELIST
A comma-separated list of regular expressions that match schema names to be monitored.
|
static Field |
SERVER_NAME |
static Field |
SNAPSHOT_LOCK_TIMEOUT_MS |
static Field |
SNAPSHOT_SELECT_STATEMENT_OVERRIDES_BY_TABLE |
static Field |
TABLE_BLACKLIST
A comma-separated list of regular expressions that match the fully-qualified names of tables to be excluded from
monitoring.
|
private static String |
TABLE_BLACKLIST_NAME |
static Field |
TABLE_IGNORE_BUILTIN |
static Field |
TABLE_WHITELIST
A comma-separated list of regular expressions that match the fully-qualified names of tables to be monitored.
|
private static String |
TABLE_WHITELIST_NAME |
private RelationalTableFilters |
tableFilters |
private TemporalPrecisionMode |
temporalPrecisionMode |
static Field |
TIME_PRECISION_MODE |
DATABASE_CONFIG_PREFIX, DEFAULT_MAX_BATCH_SIZE, DEFAULT_MAX_QUEUE_SIZE, DEFAULT_POLL_INTERVAL_MILLIS, EVENT_PROCESSING_FAILURE_HANDLING_MODE, MAX_BATCH_SIZE, MAX_QUEUE_SIZE, POLL_INTERVAL_MS, SANITIZE_FIELD_NAMES, SNAPSHOT_DELAY_MS, SNAPSHOT_FETCH_SIZE, SOURCE_STRUCT_MAKER_VERSION, TOMBSTONES_ON_DELETE| Modifier | Constructor and Description |
|---|---|
protected |
RelationalDatabaseConnectorConfig(Configuration config,
String logicalName,
Tables.TableFilter systemTablesFilter,
Selectors.TableIdToStringMapper tableIdMapper,
int defaultSnapshotFetchSize) |
| Modifier and Type | Method and Description |
|---|---|
JdbcValueConverters.DecimalMode |
getDecimalMode()
Returns the Decimal mode Enum for
decimal.handling.mode
configuration. |
Key.KeyMapper |
getKeyMapper() |
Map<TableId,String> |
getSnapshotSelectOverridesByTable()
Returns any SELECT overrides, if present.
|
RelationalTableFilters |
getTableFilters() |
TemporalPrecisionMode |
getTemporalPrecisionMode()
Returns the temporal precision mode mode Enum for
time.precision.mode
configuration. |
Duration |
snapshotLockTimeout() |
private static int |
validateMessageKeyColumnsField(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateSchemaBlacklist(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateTableBlacklist(Configuration config,
Field field,
Field.ValidationOutput problems) |
getConfig, getContextName, getEventProcessingFailureHandlingMode, getHeartbeatTopicsPrefix, getLogicalName, getMaxBatchSize, getMaxQueueSize, getPollInterval, getSanitizeFieldNames, getSnapshotDelay, getSnapshotFetchSize, getSourceInfoStructMaker, getSourceInfoStructMaker, isEmitTombstoneOnDelete, validateServerNameIsDifferentFromHistoryTopicNameprivate static final String TABLE_BLACKLIST_NAME
private static final String TABLE_WHITELIST_NAME
private static final Pattern MSG_KEY_COLUMNS_PATTERN
public static final long DEFAULT_SNAPSHOT_LOCK_TIMEOUT_MILLIS
public static final Field SERVER_NAME
public static final Field TABLE_WHITELIST
<databaseName>.<tableName> or
<databaseName>.<schemaName>.<tableName>. May not be used with TABLE_BLACKLIST, and superseded by database
inclusions/exclusions.public static final Field TABLE_BLACKLIST
<databaseName>.<tableName> or
<databaseName>.<schemaName>.<tableName>. May not be used with TABLE_WHITELIST.public static final Field TABLE_IGNORE_BUILTIN
public static final Field COLUMN_BLACKLIST
<databaseName>.<tableName>.<columnName> or
<schemaName>.<tableName>.<columnName> or <databaseName>.<schemaName>.<tableName>.<columnName>.public static final Field MSG_KEY_COLUMNS
public static final Field DECIMAL_HANDLING_MODE
public static final Field SNAPSHOT_SELECT_STATEMENT_OVERRIDES_BY_TABLE
public static final Field SCHEMA_WHITELIST
SCHEMA_BLACKLIST.public static final Field SCHEMA_BLACKLIST
SCHEMA_WHITELIST.public static final Field TIME_PRECISION_MODE
public static final Field SNAPSHOT_LOCK_TIMEOUT_MS
private final RelationalTableFilters tableFilters
private final TemporalPrecisionMode temporalPrecisionMode
private final Key.KeyMapper keyMapper
protected RelationalDatabaseConnectorConfig(Configuration config, String logicalName, Tables.TableFilter systemTablesFilter, Selectors.TableIdToStringMapper tableIdMapper, int defaultSnapshotFetchSize)
public RelationalTableFilters getTableFilters()
public JdbcValueConverters.DecimalMode getDecimalMode()
decimal.handling.mode
configuration. This defaults to precise if nothing is provided.public TemporalPrecisionMode getTemporalPrecisionMode()
time.precision.mode
configuration. This defaults to adaptive if nothing is provided.public Key.KeyMapper getKeyMapper()
public Duration snapshotLockTimeout()
private static int validateTableBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
public Map<TableId,String> getSnapshotSelectOverridesByTable()
private static int validateSchemaBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateMessageKeyColumnsField(Configuration config, Field field, Field.ValidationOutput problems)
Copyright © 2020 JBoss by Red Hat. All rights reserved.