Package io.debezium.connector.postgresql
Class PostgresConnectorConfig
java.lang.Object
io.debezium.config.CommonConnectorConfig
io.debezium.relational.RelationalDatabaseConnectorConfig
io.debezium.connector.postgresql.PostgresConnectorConfig
The configuration properties for the
PostgresConnector- Author:
- Horia Chiorean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumThe set of predefined HStoreHandlingMode options or aliasesstatic enumDefines modes of representation ofintervaldatatypestatic enumstatic enumThe set of predefined SchemaRefreshMode options or aliases.static enumThe set of predefined SecureConnectionMode options or aliases.static enumThe set of predefined Snapshotter options or aliases.private static classstatic enumDeprecated.use skipped operations instead.Nested classes/interfaces inherited from class io.debezium.relational.RelationalDatabaseConnectorConfig
RelationalDatabaseConnectorConfig.DecimalHandlingModeNested classes/interfaces inherited from class io.debezium.config.CommonConnectorConfig
CommonConnectorConfig.BinaryHandlingMode, CommonConnectorConfig.EventProcessingFailureHandlingMode, CommonConnectorConfig.SchemaNameAdjustmentMode, CommonConnectorConfig.Version -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Field.SetThe set ofFields defined as part of this configuration.private static final ConfigDefinitionprotected static final Stringprotected static final intprotected static final intprotected static final intstatic final Fieldstatic final Fieldprivate final PostgresConnectorConfig.HStoreHandlingModestatic final Fieldstatic final Fieldprivate final PostgresConnectorConfig.IntervalHandlingModeprivate static final org.slf4j.Loggerstatic final FieldA comma-separated list of regular expressions that match the prefix of logical decoding messages to be excluded from monitoring.static final FieldA comma-separated list of regular expressions that match the prefix of logical decoding messages to be monitored.private final LogicalDecodingMessageFilterstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldprivate final PostgresConnectorConfig.SchemaRefreshModestatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldprivate final PostgresConnectorConfig.SnapshotModestatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final FieldDeprecated.static final FieldDeprecated.use skipped operations insteadprivate final PostgresConnectorConfig.TruncateHandlingModestatic final Fieldstatic final FieldFields inherited from class io.debezium.relational.RelationalDatabaseConnectorConfig
COLUMN_BLACKLIST, COLUMN_EXCLUDE_LIST, COLUMN_INCLUDE_LIST, COLUMN_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG, COLUMN_WHITELIST, COLUMN_WHITELIST_ALREADY_SPECIFIED_ERROR_MSG, DATABASE_BLACKLIST, DATABASE_BLACKLIST_NAME, DATABASE_EXCLUDE_LIST, DATABASE_EXCLUDE_LIST_NAME, DATABASE_INCLUDE_LIST, DATABASE_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG, DATABASE_INCLUDE_LIST_NAME, DATABASE_NAME, DATABASE_WHITELIST, DATABASE_WHITELIST_ALREADY_SPECIFIED_ERROR_MSG, DATABASE_WHITELIST_NAME, DECIMAL_HANDLING_MODE, DEFAULT_SNAPSHOT_LOCK_TIMEOUT_MILLIS, DEFAULT_UNAVAILABLE_VALUE_PLACEHOLDER, HOSTNAME, INCLUDE_SCHEMA_CHANGES, INCLUDE_SCHEMA_COMMENTS, MASK_COLUMN, MASK_COLUMN_WITH_HASH, MSG_KEY_COLUMNS, PASSWORD, PROPAGATE_COLUMN_SOURCE_TYPE, PROPAGATE_DATATYPE_SOURCE_TYPE, SCHEMA_BLACKLIST, SCHEMA_EXCLUDE_LIST, SCHEMA_EXCLUDE_LIST_NAME, SCHEMA_INCLUDE_LIST, SCHEMA_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG, SCHEMA_INCLUDE_LIST_NAME, SCHEMA_WHITELIST, SCHEMA_WHITELIST_ALREADY_SPECIFIED_ERROR_MSG, SERVER_NAME, SERVER_NAME_PATTERN, SNAPSHOT_FULL_COLUMN_SCAN_FORCE, SNAPSHOT_LOCK_TIMEOUT_MS, SNAPSHOT_SELECT_STATEMENT_OVERRIDES_BY_TABLE, TABLE_BLACKLIST, TABLE_BLACKLIST_NAME, TABLE_EXCLUDE_LIST, TABLE_EXCLUDE_LIST_NAME, TABLE_IGNORE_BUILTIN, TABLE_INCLUDE_LIST, TABLE_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG, TABLE_INCLUDE_LIST_NAME, TABLE_WHITELIST, TABLE_WHITELIST_ALREADY_SPECIFIED_ERROR_MSG, TABLE_WHITELIST_NAME, TIME_PRECISION_MODE, TRUNCATE_COLUMN, USERFields inherited from class io.debezium.config.CommonConnectorConfig
BINARY_HANDLING_MODE, CUSTOM_CONVERTERS, CUSTOM_RETRIABLE_EXCEPTION, 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, INCREMENTAL_SNAPSHOT_ALLOW_SCHEMA_CHANGES, INCREMENTAL_SNAPSHOT_CHUNK_SIZE, 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, SCHEMA_NAME_ADJUSTMENT_MODE, SIGNAL_DATA_COLLECTION, SNAPSHOT_DELAY_MS, SNAPSHOT_FETCH_SIZE, SNAPSHOT_MAX_THREADS, SNAPSHOT_MODE_TABLES, SOURCE_STRUCT_MAKER_VERSION, TASK_ID, TOMBSTONES_ON_DELETE, TRANSACTION_TOPIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.kafka.common.config.ConfigDefprotected booleanprotected Snapshotterprotected SourceInfoStructMaker<? extends AbstractSourceInfo>byte[]protected Stringhostname()protected booleanintprotected intprotected PostgresConnectorConfig.LogicalDecoderplugin()protected intport()protected PostgresConnectorConfig.AutoCreateModeprotected booleanprotected StringslotName()protected Durationprotected Stringvalidate()private static intvalidateLogicalDecodingMessageExcludeList(Configuration config, Field field, Field.ValidationOutput problems) private static intvalidatePluginName(Configuration config, Field field, Field.ValidationOutput problems) private static intvalidateReplicationSlotName(Configuration config, Field field, Field.ValidationOutput problems) private static intvalidateSkippedOperations(Configuration config, Field field, Field.ValidationOutput problems) private static intvalidateToastedValuePlaceholder(Configuration config, Field field, Field.ValidationOutput problems) private static intvalidateTruncateHandlingMode(Configuration config, Field field, Field.ValidationOutput problems) protected DurationMethods inherited from class io.debezium.relational.RelationalDatabaseConnectorConfig
getColumnFilter, getDecimalMode, getHeartbeatActionQuery, getJdbcConfig, getKeyMapper, getSnapshotSelectOverridesByTable, getTableFilters, getTableIdMapper, getTemporalPrecisionMode, isFullColummnScanRequired, isSchemaChangesHistoryEnabled, isSchemaCommentsHistoryEnabled, schemaExcludeList, schemaIncludeList, snapshotLockTimeout, tableExcludeList, tableIncludeListMethods inherited from class io.debezium.config.CommonConnectorConfig
binaryHandlingMode, customConverterRegistry, customRetriableException, getConfig, getDataCollectionsToBeSnapshotted, getEventProcessingFailureHandlingMode, getHeartbeatInterval, getHeartbeatTopicsPrefix, getIncrementalSnashotChunkSize, getLogicalName, getMaxBatchSize, getMaxQueueSize, getMaxQueueSizeInBytes, getPollInterval, getQueryFetchSize, getRetriableRestartWait, getSanitizeFieldNames, getSignalingDataCollectionId, getSnapshotDelay, getSnapshotFetchSize, getSnapshotMaxThreads, getSourceInfoStructMaker, getTaskId, getTransactionTopic, isEmitTombstoneOnDelete, isIncrementalSnapshotSchemaChangesEnabled, isSignalDataCollection, legacyGetDataCollectionsToBeSnapshotted, parseSignallingMessage, schemaNameAdjustmentMode, shouldProvideTransactionMetadata, supportsOperationFiltering, supportsSchemaChangesDuringIncrementalSnapshot, validate, validateAndRecord, validateServerNameIsDifferentFromHistoryTopicName, validateSkippedOperation
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DATABASE_CONFIG_PREFIX
- See Also:
-
DEFAULT_PORT
protected static final int DEFAULT_PORT- See Also:
-
DEFAULT_SNAPSHOT_FETCH_SIZE
protected static final int DEFAULT_SNAPSHOT_FETCH_SIZE- See Also:
-
DEFAULT_MAX_RETRIES
protected static final int DEFAULT_MAX_RETRIES- See Also:
-
PORT
-
PLUGIN_NAME
-
SLOT_NAME
-
DROP_SLOT_ON_STOP
-
PUBLICATION_NAME
-
PUBLICATION_AUTOCREATE_MODE
-
STREAM_PARAMS
-
MAX_RETRIES
-
RETRY_DELAY_MS
-
ON_CONNECT_STATEMENTS
-
SSL_MODE
-
SSL_CLIENT_CERT
-
SSL_CLIENT_KEY
-
SSL_CLIENT_KEY_PASSWORD
-
SSL_ROOT_CERT
-
SSL_SOCKET_FACTORY
-
SNAPSHOT_MODE
-
SNAPSHOT_MODE_CLASS
-
LOGICAL_DECODING_MESSAGE_PREFIX_EXCLUDE_LIST
A comma-separated list of regular expressions that match the prefix of logical decoding messages to be excluded from monitoring. Must not be used withLOGICAL_DECODING_MESSAGE_PREFIX_INCLUDE_LIST -
LOGICAL_DECODING_MESSAGE_PREFIX_INCLUDE_LIST
A comma-separated list of regular expressions that match the prefix of logical decoding messages to be monitored. Must not be used withLOGICAL_DECODING_MESSAGE_PREFIX_EXCLUDE_LIST -
TRUNCATE_HANDLING_MODE
Deprecated.use skipped operations instead -
HSTORE_HANDLING_MODE
-
INTERVAL_HANDLING_MODE
-
STATUS_UPDATE_INTERVAL_MS
-
TCP_KEEPALIVE
-
INCLUDE_UNKNOWN_DATATYPES
-
SCHEMA_REFRESH_MODE
-
XMIN_FETCH_INTERVAL
-
TOASTED_VALUE_PLACEHOLDER
Deprecated. -
UNAVAILABLE_VALUE_PLACEHOLDER
-
MONEY_FRACTION_DIGITS
-
SKIPPED_OPERATIONS
-
truncateHandlingMode
-
logicalDecodingMessageFilter
-
hStoreHandlingMode
-
intervalHandlingMode
-
snapshotMode
-
schemaRefreshMode
-
CONFIG_DEFINITION
-
ALL_FIELDS
The set ofFields defined as part of this configuration.
-
-
Constructor Details
-
PostgresConnectorConfig
-
-
Method Details
-
hostname
-
port
protected int port() -
databaseName
-
plugin
-
slotName
-
dropSlotOnStop
protected boolean dropSlotOnStop() -
publicationName
-
getSkippedOperations
- Overrides:
getSkippedOperationsin classCommonConnectorConfig
-
publicationAutocreateMode
-
streamParams
-
maxRetries
public int maxRetries() -
retryDelay
-
statusUpdateInterval
-
getMessageFilter
-
hStoreHandlingMode
-
intervalHandlingMode
-
includeUnknownDatatypes
protected boolean includeUnknownDatatypes() -
validate
-
getSnapshotter
-
skipRefreshSchemaOnMissingToastableData
protected boolean skipRefreshSchemaOnMissingToastableData() -
xminFetchInterval
-
moneyFractionDigits
protected int moneyFractionDigits() -
getSourceInfoStructMaker
protected SourceInfoStructMaker<? extends AbstractSourceInfo> getSourceInfoStructMaker(CommonConnectorConfig.Version version) - Specified by:
getSourceInfoStructMakerin classCommonConnectorConfig
-
configDef
public static org.apache.kafka.common.config.ConfigDef configDef() -
validateReplicationSlotName
private static int validateReplicationSlotName(Configuration config, Field field, Field.ValidationOutput problems) -
validateTruncateHandlingMode
private static int validateTruncateHandlingMode(Configuration config, Field field, Field.ValidationOutput problems) -
validateSkippedOperations
private static int validateSkippedOperations(Configuration config, Field field, Field.ValidationOutput problems) -
validateToastedValuePlaceholder
private static int validateToastedValuePlaceholder(Configuration config, Field field, Field.ValidationOutput problems) -
validatePluginName
private static int validatePluginName(Configuration config, Field field, Field.ValidationOutput problems) -
validateLogicalDecodingMessageExcludeList
private static int validateLogicalDecodingMessageExcludeList(Configuration config, Field field, Field.ValidationOutput problems) -
getContextName
- Specified by:
getContextNamein classCommonConnectorConfig
-
getConnectorName
- Specified by:
getConnectorNamein classCommonConnectorConfig
-