public class MongoDbConnectorConfig extends CommonConnectorConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
MongoDbConnectorConfig.SnapshotMode
The set of predefined SnapshotMode options or aliases.
|
CommonConnectorConfig.BinaryHandlingMode, CommonConnectorConfig.EventProcessingFailureHandlingMode, CommonConnectorConfig.Version| Modifier and Type | Field and Description |
|---|---|
static Field.Set |
ALL_FIELDS
The set of
Fields defined as part of this configuration. |
static Field |
AUTH_SOURCE |
static Field |
AUTO_DISCOVER_MEMBERS |
static Field |
COLLECTION_BLACKLIST
Deprecated.
|
static Field |
COLLECTION_EXCLUDE_LIST
A comma-separated list of regular expressions that match the fully-qualified namespaces of collections to be excluded from
monitoring.
|
static Field |
COLLECTION_INCLUDE_LIST
A comma-separated list of regular expressions that match the fully-qualified namespaces of collections to be monitored.
|
protected static String |
COLLECTION_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG |
static Field |
COLLECTION_WHITELIST
Deprecated.
|
private static ConfigDefinition |
CONFIG_DEFINITION |
static Field |
CONNECT_BACKOFF_INITIAL_DELAY_MS |
static Field |
CONNECT_BACKOFF_MAX_DELAY_MS |
static Field |
CONNECT_TIMEOUT_MS |
static Field |
DATABASE_BLACKLIST
Deprecated.
|
static Field |
DATABASE_EXCLUDE_LIST
A comma-separated list of regular expressions that match the databases to be excluded.
|
static Field |
DATABASE_INCLUDE_LIST
A comma-separated list of regular expressions that match the databases to be monitored.
|
protected static String |
DATABASE_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG |
static Field |
DATABASE_WHITELIST
Deprecated.
|
protected static int |
DEFAULT_SNAPSHOT_FETCH_SIZE |
protected static Field.Set |
EXPOSED_FIELDS |
static Field |
FIELD_BLACKLIST
Deprecated.
|
static Field |
FIELD_EXCLUDE_LIST
A comma-separated list of the fully-qualified names of fields that should be excluded from change event message values.
|
static Field |
FIELD_RENAMES
A comma-separated list of the fully-qualified replacements of fields that should be used to rename fields in change
event message values.
|
static Field |
HOSTS
The comma-separated list of hostname and port pairs (in the form 'host' or 'host:port') of the MongoDB servers in the
replica set.
|
static Field |
LOGICAL_NAME |
static Field |
MAX_COPY_THREADS |
static Field |
MAX_FAILED_CONNECTIONS |
static Field |
MONGODB_POLL_INTERVAL_MS |
static Field |
PASSWORD |
static Field |
POLL_INTERVAL_SEC
Deprecated.
|
static Field |
SERVER_SELECTION_TIMEOUT_MS |
static Field |
SNAPSHOT_MODE |
private MongoDbConnectorConfig.SnapshotMode |
snapshotMode |
static Field |
SOCKET_TIMEOUT_MS |
static Field |
SSL_ALLOW_INVALID_HOSTNAMES |
static Field |
SSL_ENABLED |
protected static Field |
TASK_ID |
static Field |
USER |
BINARY_HANDLING_MODE, CUSTOM_CONVERTERS, DATABASE_CONFIG_PREFIX, DEFAULT_MAX_BATCH_SIZE, DEFAULT_MAX_QUEUE_SIZE, DEFAULT_POLL_INTERVAL_MILLIS, DEFAULT_RETRIABLE_RESTART_WAIT, EVENT_PROCESSING_FAILURE_HANDLING_MODE, MAX_BATCH_SIZE, MAX_QUEUE_SIZE, POLL_INTERVAL_MS, PROVIDE_TRANSACTION_METADATA, RETRIABLE_RESTART_WAIT, SANITIZE_FIELD_NAMES, SKIPPED_OPERATIONS, SNAPSHOT_DELAY_MS, SNAPSHOT_FETCH_SIZE, SOURCE_STRUCT_MAKER_VERSION, TOMBSTONES_ON_DELETE| Constructor and Description |
|---|
MongoDbConnectorConfig(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.kafka.common.config.ConfigDef |
configDef() |
String |
getConnectorName() |
String |
getContextName() |
MongoDbConnectorConfig.SnapshotMode |
getSnapshotMode() |
protected SourceInfoStructMaker<? extends AbstractSourceInfo> |
getSourceInfoStructMaker(CommonConnectorConfig.Version version) |
private static int |
validateCollectionExcludeList(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateDatabaseExcludeList(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateHosts(Configuration config,
Field field,
Field.ValidationOutput problems) |
binaryHandlingMode, customConverterRegistry, getConfig, getEventProcessingFailureHandlingMode, getHeartbeatTopicsPrefix, getLogicalName, getMaxBatchSize, getMaxQueueSize, getPollInterval, getRetriableRestartWait, getSanitizeFieldNames, getSkippedOps, getSnapshotDelay, getSnapshotFetchSize, getSourceInfoStructMaker, isEmitTombstoneOnDelete, isSchemaChangesHistoryEnabled, shouldProvideTransactionMetadata, validateServerNameIsDifferentFromHistoryTopicNameprotected static final String COLLECTION_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG
protected static final String DATABASE_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG
protected static final int DEFAULT_SNAPSHOT_FETCH_SIZE
public static final Field HOSTS
public static final Field LOGICAL_NAME
public static final Field USER
public static final Field PASSWORD
public static final Field AUTH_SOURCE
@Deprecated public static final Field POLL_INTERVAL_SEC
public static final Field MONGODB_POLL_INTERVAL_MS
public static final Field SSL_ENABLED
public static final Field SSL_ALLOW_INVALID_HOSTNAMES
public static final Field MAX_COPY_THREADS
public static final Field CONNECT_BACKOFF_INITIAL_DELAY_MS
public static final Field CONNECT_BACKOFF_MAX_DELAY_MS
public static final Field MAX_FAILED_CONNECTIONS
public static final Field AUTO_DISCOVER_MEMBERS
public static final Field DATABASE_INCLUDE_LIST
DATABASE_EXCLUDE_LIST.@Deprecated public static final Field DATABASE_WHITELIST
public static final Field DATABASE_EXCLUDE_LIST
DATABASE_INCLUDE_LIST.@Deprecated public static final Field DATABASE_BLACKLIST
public static final Field COLLECTION_INCLUDE_LIST
<databaseName>.<collectionName>.
Must not be used with COLLECTION_EXCLUDE_LIST.@Deprecated public static final Field COLLECTION_WHITELIST
public static final Field COLLECTION_EXCLUDE_LIST
<databaseName>.<collectionName>.
Must not be used with COLLECTION_INCLUDE_LIST.@Deprecated public static final Field COLLECTION_BLACKLIST
public static final Field FIELD_EXCLUDE_LIST
<databaseName>.<collectionName>.<fieldName>.<nestedFieldName>, where <databaseName> and
<collectionName> may contain the wildcard (*) which matches any characters.@Deprecated public static final Field FIELD_BLACKLIST
public static final Field FIELD_RENAMES
<databaseName>.<collectionName>.<fieldName>.<nestedFieldName>:<newNestedFieldName>, where
<databaseName> and <collectionName> may contain the wildcard (*) which matches
any characters, the colon character (:) is used to determine rename mapping of field.public static final Field SNAPSHOT_MODE
public static final Field CONNECT_TIMEOUT_MS
public static final Field SERVER_SELECTION_TIMEOUT_MS
public static final Field SOCKET_TIMEOUT_MS
protected static final Field TASK_ID
private static final ConfigDefinition CONFIG_DEFINITION
public static Field.Set ALL_FIELDS
Fields defined as part of this configuration.protected static Field.Set EXPOSED_FIELDS
private final MongoDbConnectorConfig.SnapshotMode snapshotMode
public MongoDbConnectorConfig(Configuration config)
public static org.apache.kafka.common.config.ConfigDef configDef()
private static int validateHosts(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateCollectionExcludeList(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateDatabaseExcludeList(Configuration config, Field field, Field.ValidationOutput problems)
public MongoDbConnectorConfig.SnapshotMode getSnapshotMode()
protected SourceInfoStructMaker<? extends AbstractSourceInfo> getSourceInfoStructMaker(CommonConnectorConfig.Version version)
getSourceInfoStructMaker in class CommonConnectorConfigpublic String getContextName()
getContextName in class CommonConnectorConfigpublic String getConnectorName()
getConnectorName in class CommonConnectorConfigCopyright © 2020 JBoss by Red Hat. All rights reserved.