public class MongoDbConnectorConfig extends CommonConnectorConfig
| Modifier and Type | Field and Description |
|---|---|
static Field.Set |
ALL_FIELDS |
static Field |
AUTO_DISCOVER_MEMBERS |
static Field |
COLLECTION_BLACKLIST
A comma-separated list of regular expressions that match the fully-qualified namespaces of collections to be excluded from
monitoring.
|
static Field |
COLLECTION_WHITELIST
A comma-separated list of regular expressions that match the fully-qualified namespaces of collections to be monitored.
|
static Field |
CONNECT_BACKOFF_INITIAL_DELAY_MS |
static Field |
CONNECT_BACKOFF_MAX_DELAY_MS |
static Field |
DATABASE_BLACKLIST
A comma-separated list of regular expressions that match the databases to be excluded.
|
static Field |
DATABASE_WHITELIST
A comma-separated list of regular expressions that match the databases to be monitored.
|
protected static Field.Set |
EXPOSED_FIELDS |
static Field |
FIELD_BLACKLIST
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 |
PASSWORD |
static Field |
POLL_INTERVAL_SEC |
static Field |
SSL_ALLOW_INVALID_HOSTNAMES |
static Field |
SSL_ENABLED |
protected static Field |
TASK_ID |
static Field |
USER |
DATABASE_CONFIG_PREFIX, DEFAULT_MAX_BATCH_SIZE, DEFAULT_MAX_QUEUE_SIZE, DEFAULT_POLL_INTERVAL_MILLIS, MAX_BATCH_SIZE, MAX_QUEUE_SIZE, POLL_INTERVAL_MS, SNAPSHOT_DELAY_MS, TOMBSTONES_ON_DELETE| Constructor and Description |
|---|
MongoDbConnectorConfig(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.kafka.common.config.ConfigDef |
configDef() |
private static int |
validateCollectionBlacklist(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateDatabaseBlacklist(Configuration config,
Field field,
Field.ValidationOutput problems) |
private static int |
validateHosts(Configuration config,
Field field,
Field.ValidationOutput problems) |
getConfig, getHeartbeatTopicsPrefix, getLogicalName, getMaxBatchSize, getMaxQueueSize, getPollInterval, getSnapshotDelay, isEmitTombstoneOnDelete, validateServerNameIsDifferentFromHistoryTopicNamepublic static final Field HOSTS
public static final Field LOGICAL_NAME
public static final Field USER
public static final Field PASSWORD
public static final Field POLL_INTERVAL_SEC
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_WHITELIST
DATABASE_BLACKLIST.public static final Field DATABASE_BLACKLIST
DATABASE_WHITELIST.public static final Field COLLECTION_WHITELIST
<databaseName>.<collectionName>.
May not be used with COLLECTION_BLACKLIST.public static final Field COLLECTION_BLACKLIST
<databaseName>.<collectionName>.
May not be used with COLLECTION_WHITELIST.public static final Field FIELD_BLACKLIST
<databaseName>.<collectionName>.<fieldName>.<nestedFieldName>, where <databaseName> and
<collectionName> may contain the wildcard (*) which matches any characters.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.protected static final Field TASK_ID
public static Field.Set ALL_FIELDS
protected static Field.Set EXPOSED_FIELDS
public MongoDbConnectorConfig(Configuration config)
protected static org.apache.kafka.common.config.ConfigDef configDef()
private static int validateHosts(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateCollectionBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
private static int validateDatabaseBlacklist(Configuration config, Field field, Field.ValidationOutput problems)
Copyright © 2019 JBoss by Red Hat. All rights reserved.