Class MongoDbConnectorConfig

java.lang.Object
io.debezium.config.CommonConnectorConfig
io.debezium.connector.mongodb.MongoDbConnectorConfig

public class MongoDbConnectorConfig extends CommonConnectorConfig
The configuration properties.
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • COLLECTION_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG

      protected static final String COLLECTION_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG
      See Also:
    • DATABASE_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG

      protected static final String DATABASE_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG
      See Also:
    • PATTERN_SPILT

      protected static final Pattern PATTERN_SPILT
    • FIELD_EXCLUDE_LIST_PATTERN

      protected static final Pattern FIELD_EXCLUDE_LIST_PATTERN
    • QUALIFIED_FIELD_EXCLUDE_LIST_PATTERN

      protected static final String QUALIFIED_FIELD_EXCLUDE_LIST_PATTERN
      See Also:
    • FIELD_RENAMES_PATTERN

      protected static final Pattern FIELD_RENAMES_PATTERN
    • QUALIFIED_FIELD_RENAMES_PATTERN

      protected static final String QUALIFIED_FIELD_RENAMES_PATTERN
      See Also:
    • DEFAULT_SNAPSHOT_FETCH_SIZE

      protected static final int DEFAULT_SNAPSHOT_FETCH_SIZE
      See Also:
    • REPLICA_SETS

      public static final Field REPLICA_SETS
      The comma-separated list of replica set names
    • CONNECTION_STRING

      public static final Field CONNECTION_STRING
    • CONNECTION_MODE

      public static final Field CONNECTION_MODE
    • USER

      public static final Field USER
    • PASSWORD

      public static final Field PASSWORD
    • MONGODB_POLL_INTERVAL_MS

      public static final Field MONGODB_POLL_INTERVAL_MS
    • SSL_ENABLED

      public static final Field SSL_ENABLED
    • SSL_ALLOW_INVALID_HOSTNAMES

      public static final Field SSL_ALLOW_INVALID_HOSTNAMES
    • CONNECT_TIMEOUT_MS

      public static final Field CONNECT_TIMEOUT_MS
    • AUTH_SOURCE

      public static final Field AUTH_SOURCE
    • SERVER_SELECTION_TIMEOUT_MS

      public static final Field SERVER_SELECTION_TIMEOUT_MS
    • SOCKET_TIMEOUT_MS

      public static final Field SOCKET_TIMEOUT_MS
    • HEARTBEAT_FREQUENCY_MS

      public static final Field HEARTBEAT_FREQUENCY_MS
    • DATABASE_INCLUDE_LIST

      public static final Field DATABASE_INCLUDE_LIST
      A comma-separated list of regular expressions that match the databases to be monitored. Must not be used with DATABASE_EXCLUDE_LIST.
    • DATABASE_EXCLUDE_LIST

      public static final Field DATABASE_EXCLUDE_LIST
      A comma-separated list of regular expressions that match the databases to be excluded. Must not be used with DATABASE_INCLUDE_LIST.
    • COLLECTION_INCLUDE_LIST

      public static final Field COLLECTION_INCLUDE_LIST
      A comma-separated list of regular expressions that match the fully-qualified namespaces of collections to be monitored. Fully-qualified namespaces for collections are of the form <databaseName>.<collectionName>. Must not be used with COLLECTION_EXCLUDE_LIST.
    • COLLECTION_EXCLUDE_LIST

      public static final Field COLLECTION_EXCLUDE_LIST
      A comma-separated list of regular expressions that match the fully-qualified namespaces of collections to be excluded from monitoring. Fully-qualified namespaces for collections are of the form <databaseName>.<collectionName>. Must not be used with COLLECTION_INCLUDE_LIST.
    • FIELD_EXCLUDE_LIST

      public static final Field FIELD_EXCLUDE_LIST
      A comma-separated list of the fully-qualified names of fields that should be excluded from change event message values. Fully-qualified names for fields are of the form <databaseName>.<collectionName>.<fieldName>.<nestedFieldName>, where <databaseName> and <collectionName> may contain the wildcard (*) which matches any characters.
    • FIELD_RENAMES

      public static final 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. Fully-qualified replacements for fields are of the form <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.
    • CAPTURE_MODE

      public static final Field CAPTURE_MODE
    • TASK_ID

      protected static final Field TASK_ID
    • SNAPSHOT_MODE

      public static final Field SNAPSHOT_MODE
    • SNAPSHOT_FILTER_QUERY_BY_COLLECTION

      public static final Field SNAPSHOT_FILTER_QUERY_BY_COLLECTION
    • CURSOR_MAX_AWAIT_TIME_MS

      public static final Field CURSOR_MAX_AWAIT_TIME_MS
    • CURSOR_PIPELINE

      public static final Field CURSOR_PIPELINE
    • TOPIC_NAMING_STRATEGY

      public static final Field TOPIC_NAMING_STRATEGY
    • HOSTS

      @Deprecated public static final Field HOSTS
      Deprecated.
      The comma-separated list of hostname and port pairs (in the form 'host' or 'host:port') of the MongoDB servers in the replica set.
    • AUTO_DISCOVER_MEMBERS

      @Deprecated public static final Field AUTO_DISCOVER_MEMBERS
      Deprecated.
    • CONFIG_DEFINITION

      private static final ConfigDefinition CONFIG_DEFINITION
    • ALL_FIELDS

      public static Field.Set ALL_FIELDS
      The set of Fields defined as part of this configuration.
    • EXPOSED_FIELDS

      protected static Field.Set EXPOSED_FIELDS
    • snapshotMode

      private final MongoDbConnectorConfig.SnapshotMode snapshotMode
    • captureMode

    • connectionMode

      private final MongoDbConnectorConfig.ConnectionMode connectionMode
    • snapshotMaxThreads

      private final int snapshotMaxThreads
    • cursorMaxAwaitTimeMs

      private final int cursorMaxAwaitTimeMs
    • replicaSets

      private final ReplicaSets replicaSets
  • Constructor Details

    • MongoDbConnectorConfig

      public MongoDbConnectorConfig(Configuration config)
  • Method Details