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.
|
protected static String |
COLLECTION_WHITELIST_ALREADY_SPECIFIED_ERROR_MSG |
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 String |
DATABASE_WHITELIST_ALREADY_SPECIFIED_ERROR_MSG |
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.
|
private static org.slf4j.Logger |
LOGGER |
static Field |
LOGICAL_NAME |
static Field |
MAX_COPY_THREADS
Deprecated.
|
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_FILTER_QUERY_BY_COLLECTION |
static Field |
SNAPSHOT_MODE |
private int |
snapshotMaxThreads |
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_MAX_QUEUE_SIZE_IN_BYTES, DEFAULT_POLL_INTERVAL_MILLIS, DEFAULT_QUERY_FETCH_SIZE, DEFAULT_RETRIABLE_RESTART_WAIT, EVENT_PROCESSING_FAILURE_HANDLING_MODE, MAX_BATCH_SIZE, MAX_QUEUE_SIZE, MAX_QUEUE_SIZE_IN_BYTES, POLL_INTERVAL_MS, PROVIDE_TRANSACTION_METADATA, QUERY_FETCH_SIZE, RETRIABLE_RESTART_WAIT, SANITIZE_FIELD_NAMES, SIGNAL_DATA_COLLECTION, SKIPPED_OPERATIONS, SNAPSHOT_DELAY_MS, SNAPSHOT_FETCH_SIZE, SNAPSHOT_MAX_THREADS, SNAPSHOT_MODE_TABLES, SOURCE_STRUCT_MAKER_VERSION, TOMBSTONES_ON_DELETE| Constructor and Description |
|---|
MongoDbConnectorConfig(Configuration config) |
binaryHandlingMode, customConverterRegistry, getConfig, getDataCollectionsToBeSnapshotted, getEventProcessingFailureHandlingMode, getHeartbeatTopicsPrefix, getLogicalName, getMaxBatchSize, getMaxQueueSize, getMaxQueueSizeInBytes, getPollInterval, getQueryFetchSize, getRetriableRestartWait, getSanitizeFieldNames, getSignalingDataCollectionId, getSkippedOps, getSnapshotDelay, getSnapshotFetchSize, getSourceInfoStructMaker, isEmitTombstoneOnDelete, isSchemaChangesHistoryEnabled, shouldProvideTransactionMetadata, validate, validateAndRecord, validateServerNameIsDifferentFromHistoryTopicNameprivate static final org.slf4j.Logger LOGGER
protected static final String COLLECTION_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG
protected static final String COLLECTION_WHITELIST_ALREADY_SPECIFIED_ERROR_MSG
protected static final String DATABASE_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG
protected static final String DATABASE_WHITELIST_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
@Deprecated 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
public static final Field SNAPSHOT_FILTER_QUERY_BY_COLLECTION
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
private final int snapshotMaxThreads
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 validateCollectionBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateDatabaseExcludeList(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateDatabaseBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
public MongoDbConnectorConfig.SnapshotMode getSnapshotMode()
public int getSnapshotMaxThreads()
getSnapshotMaxThreads in class CommonConnectorConfigprotected SourceInfoStructMaker<? extends AbstractSourceInfo> getSourceInfoStructMaker(CommonConnectorConfig.Version version)
getSourceInfoStructMaker in class CommonConnectorConfigpublic Optional<String> getSnapshotFilterQueryForCollection(CollectionId collectionId)
public String getContextName()
getContextName in class CommonConnectorConfigpublic String getConnectorName()
getConnectorName in class CommonConnectorConfigprivate static int resolveSnapshotMaxThreads(Configuration config)
Copyright © 2021 JBoss by Red Hat. All rights reserved.