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.
|
private static String |
COLLECTION_LIST_NAME |
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.
|
private static String |
DATABASE_LIST_NAME |
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 |
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, 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, isEmitTombstoneOnDelete, validateServerNameIsDifferentFromHistoryTopicNameprivate static final String DATABASE_LIST_NAME
private static final String COLLECTION_LIST_NAME
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 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.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 © 2018 JBoss by Red Hat. All rights reserved.