public class MySqlConnectorConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MySqlConnectorConfig.DecimalHandlingMode
The set of predefined DecimalHandlingMode options or aliases.
|
static class |
MySqlConnectorConfig.SecureConnectionMode
The set of predefined SecureConnectionMode options or aliases.
|
static class |
MySqlConnectorConfig.SnapshotMode
The set of predefined SnapshotMode options or aliases.
|
static class |
MySqlConnectorConfig.TemporalPrecisionMode
The set of predefined TemporalPrecisionMode options or aliases.
|
Modifier and Type | Field and Description |
---|---|
static Field.Set |
ALL_FIELDS
The set of
Field s defined as part of this configuration. |
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 |
CONNECTION_TIMEOUT_MS |
static Field |
DATABASE_BLACKLIST
A comma-separated list of regular expressions that match database names to be excluded from monitoring.
|
static Field |
DATABASE_HISTORY
The database history class is hidden in the
configDef() since that is designed to work with a user interface,
and in these situations using Kafka is the only way to go. |
static Field |
DATABASE_WHITELIST
A comma-separated list of regular expressions that match database names to be monitored.
|
private static String |
DATABASE_WHITELIST_NAME |
static Field |
DECIMAL_HANDLING_MODE |
protected static Field.Set |
EXPOSED_FIELDS
The set of
Field s that are included in the configuration definition . |
static Field |
GTID_SOURCE_EXCLUDES
A comma-separated list of regular expressions that match source UUIDs in the GTID set used to find the binlog
position in the MySQL server.
|
static Field |
GTID_SOURCE_FILTER_DML_EVENTS
If set to true, we will only produce DML events into Kafka for transactions that were written on MySQL servers
with UUIDs matching the filters defined by the
GTID_SOURCE_INCLUDES or GTID_SOURCE_EXCLUDES
configuration options, if they are specified. |
static Field |
GTID_SOURCE_INCLUDES
A comma-separated list of regular expressions that match source UUIDs in the GTID set used to find the binlog
position in the MySQL server.
|
static Field |
HOSTNAME |
static Field |
INCLUDE_SCHEMA_CHANGES |
static Field |
JDBC_DRIVER |
static Field |
KEEP_ALIVE |
static Field |
MAX_BATCH_SIZE |
static Field |
MAX_QUEUE_SIZE |
static Field |
PASSWORD |
static Field |
POLL_INTERVAL_MS |
static Field |
PORT |
static Field |
ROW_COUNT_FOR_STREAMING_RESULT_SETS |
static Field |
SERVER_ID |
static Field |
SERVER_NAME |
static Field |
SNAPSHOT_MINIMAL_LOCKING |
static Field |
SNAPSHOT_MODE |
static Field |
SSL_KEYSTORE |
static Field |
SSL_KEYSTORE_PASSWORD |
static Field |
SSL_MODE |
static Field |
SSL_TRUSTSTORE |
static Field |
SSL_TRUSTSTORE_PASSWORD |
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_IGNORE_BUILTIN_NAME |
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 |
static Field |
TABLES_IGNORE_BUILTIN |
static Field |
TIME_PRECISION_MODE |
static Field |
USER |
Constructor and Description |
---|
MySqlConnectorConfig() |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.kafka.common.config.ConfigDef |
configDef() |
static Field |
MASK_COLUMN(int length)
Method that generates a Field for specifying that string columns whose names match a set of regular expressions should
have their values masked by the specified number of asterisk ('*') characters.
|
private static int |
randomServerId() |
static Field |
TRUNCATE_COLUMN(int length)
Method that generates a Field for specifying that string columns whose names match a set of regular expressions should
have their values truncated to be no longer than the specified number of characters.
|
private static int |
validateColumnBlacklist(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateDatabaseBlacklist(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateGtidSetExcludes(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateMaxQueueSize(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateServerNameIsDifferentFromHistoryTopicName(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateTableBlacklist(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static final String DATABASE_WHITELIST_NAME
private static final String TABLE_WHITELIST_NAME
private static final String TABLE_IGNORE_BUILTIN_NAME
public static final Field HOSTNAME
public static final Field PORT
public static final Field USER
public static final Field PASSWORD
public static final Field SERVER_NAME
public static final Field SERVER_ID
public static final Field SSL_MODE
public static final Field SSL_KEYSTORE
public static final Field SSL_KEYSTORE_PASSWORD
public static final Field SSL_TRUSTSTORE
public static final Field SSL_TRUSTSTORE_PASSWORD
public static final Field TABLES_IGNORE_BUILTIN
public static final Field JDBC_DRIVER
public static final Field DATABASE_WHITELIST
DATABASE_BLACKLIST
.public static final Field DATABASE_BLACKLIST
DATABASE_WHITELIST
.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 COLUMN_BLACKLIST
<databaseName>.<tableName>.<columnName>
or <databaseName>.<schemaName>.<tableName>.<columnName>
.public static final Field GTID_SOURCE_INCLUDES
GTID_SOURCE_EXCLUDES
.public static final Field GTID_SOURCE_EXCLUDES
GTID_SOURCE_INCLUDES
.public static final Field GTID_SOURCE_FILTER_DML_EVENTS
GTID_SOURCE_INCLUDES
or GTID_SOURCE_EXCLUDES
configuration options, if they are specified.
Defaults to true.
When true, either GTID_SOURCE_INCLUDES
or GTID_SOURCE_EXCLUDES
must be set.public static final Field CONNECTION_TIMEOUT_MS
public static final Field KEEP_ALIVE
public static final Field MAX_QUEUE_SIZE
public static final Field MAX_BATCH_SIZE
public static final Field POLL_INTERVAL_MS
public static final Field ROW_COUNT_FOR_STREAMING_RESULT_SETS
public static final Field DATABASE_HISTORY
configDef()
since that is designed to work with a user interface,
and in these situations using Kafka is the only way to go.public static final Field INCLUDE_SCHEMA_CHANGES
public static final Field SNAPSHOT_MODE
public static final Field SNAPSHOT_MINIMAL_LOCKING
public static final Field TIME_PRECISION_MODE
public static final Field DECIMAL_HANDLING_MODE
public static Field.Set ALL_FIELDS
Field
s defined as part of this configuration.protected static Field.Set EXPOSED_FIELDS
Field
s that are included in the configuration definition
. This includes
all fields defined in this class (though some are always invisible since they are not to be exposed to the user interface)
plus several that are specific to the KafkaDatabaseHistory
class, since history is always stored in Kafka
when run via the user interface.public static final Field TRUNCATE_COLUMN(int length)
length
- the maximum length of the column's string values written in source records; must be positivepublic static final Field MASK_COLUMN(int length)
length
- the number of asterisks that should appear in place of the column's string values written in source records;
must be positiveprotected static org.apache.kafka.common.config.ConfigDef configDef()
private static int validateMaxQueueSize(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateDatabaseBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateTableBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateGtidSetExcludes(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateServerNameIsDifferentFromHistoryTopicName(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateColumnBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
private static int randomServerId()
Copyright © 2017 JBoss by Red Hat. All rights reserved.