@UriParams
public class PostgresConnectorEmbeddedDebeziumConfiguration
extends org.apache.camel.component.debezium.configuration.EmbeddedDebeziumConfiguration
| Constructor and Description |
|---|
PostgresConnectorEmbeddedDebeziumConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected Class |
configureConnectorClass() |
protected io.debezium.config.Configuration |
createConnectorConfiguration() |
String |
getBinaryHandlingMode() |
String |
getColumnBlacklist() |
String |
getColumnExcludeList() |
String |
getColumnIncludeList() |
String |
getColumnPropagateSourceType() |
String |
getColumnWhitelist() |
String |
getConnectorDatabaseType() |
String |
getConverters() |
String |
getDatabaseDbname() |
String |
getDatabaseHistoryFileFilename() |
String |
getDatabaseHostname() |
String |
getDatabaseInitialStatements() |
String |
getDatabasePassword() |
int |
getDatabasePort() |
String |
getDatabaseServerName() |
String |
getDatabaseSslcert() |
String |
getDatabaseSslfactory() |
String |
getDatabaseSslkey() |
String |
getDatabaseSslmode() |
String |
getDatabaseSslpassword() |
String |
getDatabaseSslrootcert() |
String |
getDatabaseUser() |
String |
getDatatypePropagateSourceType() |
String |
getDecimalHandlingMode() |
String |
getEventProcessingFailureHandlingMode() |
String |
getHeartbeatActionQuery() |
int |
getHeartbeatIntervalMs() |
String |
getHeartbeatTopicsPrefix() |
String |
getHstoreHandlingMode() |
String |
getIntervalHandlingMode() |
int |
getMaxBatchSize() |
int |
getMaxQueueSize() |
long |
getMaxQueueSizeInBytes() |
String |
getMessageKeyColumns() |
String |
getPluginName() |
long |
getPollIntervalMs() |
String |
getPublicationAutocreateMode() |
String |
getPublicationName() |
int |
getQueryFetchSize() |
long |
getRetriableRestartConnectorWaitMs() |
String |
getSchemaBlacklist() |
String |
getSchemaExcludeList() |
String |
getSchemaIncludeList() |
String |
getSchemaRefreshMode() |
String |
getSchemaWhitelist() |
String |
getSignalDataCollection() |
String |
getSkippedOperations() |
int |
getSlotMaxRetries() |
String |
getSlotName() |
long |
getSlotRetryDelayMs() |
String |
getSlotStreamParams() |
String |
getSnapshotCustomClass() |
long |
getSnapshotDelayMs() |
int |
getSnapshotFetchSize() |
String |
getSnapshotIncludeCollectionList() |
long |
getSnapshotLockTimeoutMs() |
int |
getSnapshotMaxThreads() |
String |
getSnapshotMode() |
String |
getSnapshotSelectStatementOverrides() |
String |
getSourceStructVersion() |
int |
getStatusUpdateIntervalMs() |
String |
getTableBlacklist() |
String |
getTableExcludeList() |
String |
getTableIncludeList() |
String |
getTableWhitelist() |
String |
getTimePrecisionMode() |
String |
getToastedValuePlaceholder() |
long |
getXminFetchIntervalMs() |
boolean |
isDatabaseTcpkeepalive() |
boolean |
isIncludeUnknownDatatypes() |
boolean |
isProvideTransactionMetadata() |
boolean |
isSanitizeFieldNames() |
boolean |
isSlotDropOnStop() |
boolean |
isTableIgnoreBuiltin() |
boolean |
isTombstonesOnDelete() |
void |
setBinaryHandlingMode(String binaryHandlingMode)
Specify how binary (blob, binary, etc.) columns should be represented in
change events, including:'bytes' represents binary data as byte array
(default)'base64' represents binary data as base64-encoded string'hex'
represents binary data as hex-encoded (base16) string
|
void |
setColumnBlacklist(String columnBlacklist)
Regular expressions matching columns to exclude from change events
(deprecated, use "column.exclude.list" instead)
|
void |
setColumnExcludeList(String columnExcludeList)
Regular expressions matching columns to exclude from change events
|
void |
setColumnIncludeList(String columnIncludeList)
Regular expressions matching columns to include in change events
|
void |
setColumnPropagateSourceType(String columnPropagateSourceType)
A comma-separated list of regular expressions matching fully-qualified
names of columns that adds the columns original type and original length
as parameters to the corresponding field schemas in the emitted change
records.
|
void |
setColumnWhitelist(String columnWhitelist)
Regular expressions matching columns to include in change events
(deprecated, use "column.include.list" instead)
|
void |
setConverters(String converters)
Optional list of custom converters that would be used instead of default
ones.
|
void |
setDatabaseDbname(String databaseDbname)
The name of the database the connector should be monitoring
|
void |
setDatabaseHistoryFileFilename(String databaseHistoryFileFilename)
The path to the file that will be used to record the database history
|
void |
setDatabaseHostname(String databaseHostname)
Resolvable hostname or IP address of the database server.
|
void |
setDatabaseInitialStatements(String databaseInitialStatements)
A semicolon separated list of SQL statements to be executed when a JDBC
connection to the database is established.
|
void |
setDatabasePassword(String databasePassword)
Password of the database user to be used when connecting to the database.
|
void |
setDatabasePort(int databasePort)
Port of the database server.
|
void |
setDatabaseServerName(String databaseServerName)
Unique name that identifies the database server and all recorded offsets,
and that is used as a prefix for all schemas and topics.
|
void |
setDatabaseSslcert(String databaseSslcert)
File containing the SSL Certificate for the client.
|
void |
setDatabaseSslfactory(String databaseSslfactory)
A name of class to that creates SSL Sockets.
|
void |
setDatabaseSslkey(String databaseSslkey)
File containing the SSL private key for the client.
|
void |
setDatabaseSslmode(String databaseSslmode)
Whether to use an encrypted connection to Postgres.
|
void |
setDatabaseSslpassword(String databaseSslpassword)
Password to access the client private key from the file specified by
'database.sslkey'.
|
void |
setDatabaseSslrootcert(String databaseSslrootcert)
File containing the root certificate(s) against which the server is
validated.
|
void |
setDatabaseTcpkeepalive(boolean databaseTcpkeepalive)
Enable or disable TCP keep-alive probe to avoid dropping TCP connection
|
void |
setDatabaseUser(String databaseUser)
Name of the database user to be used when connecting to the database.
|
void |
setDatatypePropagateSourceType(String datatypePropagateSourceType)
A comma-separated list of regular expressions matching the
database-specific data type names that adds the data type's original type
and original length as parameters to the corresponding field schemas in
the emitted change records.
|
void |
setDecimalHandlingMode(String decimalHandlingMode)
Specify how DECIMAL and NUMERIC columns should be represented in change
events, including:'precise' (the default) uses java.math.BigDecimal to
represent values, which are encoded in the change events using a binary
representation and Kafka Connect's
'org.apache.kafka.connect.data.Decimal' type; 'string' uses string to
represent values; 'double' represents values using Java's 'double', which
may not offer the precision but will be far easier to use in consumers.
|
void |
setEventProcessingFailureHandlingMode(String eventProcessingFailureHandlingMode)
Specify how failures during processing of events (i.e.
|
void |
setHeartbeatActionQuery(String heartbeatActionQuery)
The query executed with every heartbeat.
|
void |
setHeartbeatIntervalMs(int heartbeatIntervalMs)
Length of an interval in milli-seconds in in which the connector
periodically sends heartbeat messages to a heartbeat topic.
|
void |
setHeartbeatTopicsPrefix(String heartbeatTopicsPrefix)
The prefix that is used to name heartbeat topics.Defaults to
__debezium-heartbeat.
|
void |
setHstoreHandlingMode(String hstoreHandlingMode)
Specify how HSTORE columns should be represented in change events,
including:'json' represents values as string-ified JSON (default)'map'
represents values as a key/value map
|
void |
setIncludeUnknownDatatypes(boolean includeUnknownDatatypes)
Specify whether the fields of data type not supported by Debezium should
be processed:'false' (the default) omits the fields; 'true' converts the
field into an implementation dependent binary representation.
|
void |
setIntervalHandlingMode(String intervalHandlingMode)
Specify how INTERVAL columns should be represented in change events,
including:'string' represents values as an exact ISO formatted
string'numeric' (default) represents values using the inexact conversion
into microseconds
|
void |
setMaxBatchSize(int maxBatchSize)
Maximum size of each batch of source records.
|
void |
setMaxQueueSize(int maxQueueSize)
Maximum size of the queue for change events read from the database log
but not yet recorded or forwarded.
|
void |
setMaxQueueSizeInBytes(long maxQueueSizeInBytes)
Maximum size of the queue in bytes for change events read from the
database log but not yet recorded or forwarded.
|
void |
setMessageKeyColumns(String messageKeyColumns)
A semicolon-separated list of expressions that match fully-qualified
tables and column(s) to be used as message key.
|
void |
setPluginName(String pluginName)
The name of the Postgres logical decoding plugin installed on the server.
|
void |
setPollIntervalMs(long pollIntervalMs)
Time to wait for new change events to appear after receiving no events,
given in milliseconds.
|
void |
setProvideTransactionMetadata(boolean provideTransactionMetadata)
Enables transaction metadata extraction together with event counting
|
void |
setPublicationAutocreateMode(String publicationAutocreateMode)
Applies only when streaming changes using pgoutput.Determine how creation
of a publication should work, the default is all_tables.DISABLED - The
connector will not attempt to create a publication at all.
|
void |
setPublicationName(String publicationName)
The name of the Postgres 10+ publication used for streaming changes from
a plugin.Defaults to 'dbz_publication'
|
void |
setQueryFetchSize(int queryFetchSize)
The maximum number of records that should be loaded into memory while
streaming.
|
void |
setRetriableRestartConnectorWaitMs(long retriableRestartConnectorWaitMs)
Time to wait before restarting connector after retriable exception
occurs.
|
void |
setSanitizeFieldNames(boolean sanitizeFieldNames)
Whether field names will be sanitized to Avro naming conventions
|
void |
setSchemaBlacklist(String schemaBlacklist)
The schemas for which events must not be captured (deprecated, use
"schema.exclude.list" instead)
|
void |
setSchemaExcludeList(String schemaExcludeList)
The schemas for which events must not be captured
|
void |
setSchemaIncludeList(String schemaIncludeList)
The schemas for which events should be captured
|
void |
setSchemaRefreshMode(String schemaRefreshMode)
Specify the conditions that trigger a refresh of the in-memory schema for
a table.
|
void |
setSchemaWhitelist(String schemaWhitelist)
The schemas for which events should be captured (deprecated, use
"schema.include.list" instead)
|
void |
setSignalDataCollection(String signalDataCollection)
The name of the data collection that is used to send signals/commands to
Debezium.
|
void |
setSkippedOperations(String skippedOperations)
The comma-separated list of operations to skip during streaming, defined
as: 'c' for inserts/create; 'u' for updates; 'd' for deletes.
|
void |
setSlotDropOnStop(boolean slotDropOnStop)
Whether or not to drop the logical replication slot when the connector
finishes orderlyBy default the replication is kept so that on restart
progress can resume from the last recorded location
|
void |
setSlotMaxRetries(int slotMaxRetries)
How many times to retry connecting to a replication slot when an attempt
fails.
|
void |
setSlotName(String slotName)
The name of the Postgres logical decoding slot created for streaming
changes from a plugin.Defaults to 'debezium
|
void |
setSlotRetryDelayMs(long slotRetryDelayMs)
Time to wait between retry attempts when the connector fails to connect
to a replication slot, given in milliseconds.
|
void |
setSlotStreamParams(String slotStreamParams)
Any optional parameters used by logical decoding plugin.
|
void |
setSnapshotCustomClass(String snapshotCustomClass)
When 'snapshot.mode' is set as custom, this setting must be set to
specify a fully qualified class name to load (via the default class
loader).This class must implement the 'Snapshotter' interface and is
called on each app boot to determine whether to do a snapshot and how to
build queries.
|
void |
setSnapshotDelayMs(long snapshotDelayMs)
A delay period before a snapshot will begin, given in milliseconds.
|
void |
setSnapshotFetchSize(int snapshotFetchSize)
The maximum number of records that should be loaded into memory while
performing a snapshot
|
void |
setSnapshotIncludeCollectionList(String snapshotIncludeCollectionList)
this setting must be set to specify a list of tables/collections whose
snapshot must be taken on creating or restarting the connector.
|
void |
setSnapshotLockTimeoutMs(long snapshotLockTimeoutMs)
The maximum number of millis to wait for table locks at the beginning of
a snapshot.
|
void |
setSnapshotMaxThreads(int snapshotMaxThreads)
The maximum number of threads used to perform the snapshot.
|
void |
setSnapshotMode(String snapshotMode)
The criteria for running a snapshot upon startup of the connector.
|
void |
setSnapshotSelectStatementOverrides(String snapshotSelectStatementOverrides)
This property contains a comma-separated list of fully-qualified tables
(DB_NAME.TABLE_NAME) or (SCHEMA_NAME.TABLE_NAME), depending on
thespecific connectors .
|
void |
setSourceStructVersion(String sourceStructVersion)
A version of the format of the publicly visible source part in the
message
|
void |
setStatusUpdateIntervalMs(int statusUpdateIntervalMs)
Frequency for sending replication connection status updates to the
server, given in milliseconds.
|
void |
setTableBlacklist(String tableBlacklist)
A comma-separated list of regular expressions that match the
fully-qualified names of tables to be excluded from monitoring
(deprecated, use "table.exclude.list" instead)
|
void |
setTableExcludeList(String tableExcludeList)
A comma-separated list of regular expressions that match the
fully-qualified names of tables to be excluded from monitoring
|
void |
setTableIgnoreBuiltin(boolean tableIgnoreBuiltin)
Flag specifying whether built-in tables should be ignored.
|
void |
setTableIncludeList(String tableIncludeList)
The tables for which changes are to be captured
|
void |
setTableWhitelist(String tableWhitelist)
The tables for which changes are to be captured (deprecated, use
"table.include.list" instead)
|
void |
setTimePrecisionMode(String timePrecisionMode)
Time, date, and timestamps can be represented with different kinds of
precisions, including:'adaptive' (the default) bases the precision of
time, date, and timestamp values on the database column's precision;
'adaptive_time_microseconds' like 'adaptive' mode, but TIME fields always
use microseconds precision;'connect' always represents time, date, and
timestamp values using Kafka Connect's built-in representations for Time,
Date, and Timestamp, which uses millisecond precision regardless of the
database columns' precision .
|
void |
setToastedValuePlaceholder(String toastedValuePlaceholder)
Specify the constant that will be provided by Debezium to indicate that
the original value is a toasted value not provided by the database.
|
void |
setTombstonesOnDelete(boolean tombstonesOnDelete)
Whether delete operations should be represented by a delete event and a
subsquenttombstone event (true) or only by a delete event (false).
|
void |
setXminFetchIntervalMs(long xminFetchIntervalMs)
Specify how often (in ms) the xmin will be fetched from the replication
slot.
|
protected org.apache.camel.component.debezium.configuration.ConfigurationValidation |
validateConnectorConfiguration() |
addPropertyIfNotNull, addPropertyIfNotNull, copy, createDebeziumConfiguration, getAdditionalProperties, getConnectorClass, getInternalKeyConverter, getInternalValueConverter, getName, getOffsetCommitPolicy, getOffsetCommitTimeoutMs, getOffsetFlushIntervalMs, getOffsetStorage, getOffsetStorageFileName, getOffsetStoragePartitions, getOffsetStorageReplicationFactor, getOffsetStorageTopic, isFieldValueNotSet, setAdditionalProperties, setConnectorClass, setInternalKeyConverter, setInternalValueConverter, setName, setOffsetCommitPolicy, setOffsetCommitTimeoutMs, setOffsetFlushIntervalMs, setOffsetStorage, setOffsetStorageFileName, setOffsetStoragePartitions, setOffsetStorageReplicationFactor, setOffsetStorageTopic, validateConfigurationpublic PostgresConnectorEmbeddedDebeziumConfiguration()
public void setMessageKeyColumns(String messageKeyColumns)
public String getMessageKeyColumns()
public void setQueryFetchSize(int queryFetchSize)
public int getQueryFetchSize()
public void setPublicationName(String publicationName)
public String getPublicationName()
public void setColumnBlacklist(String columnBlacklist)
public String getColumnBlacklist()
public void setSchemaIncludeList(String schemaIncludeList)
public String getSchemaIncludeList()
public void setTableBlacklist(String tableBlacklist)
public String getTableBlacklist()
public void setSchemaBlacklist(String schemaBlacklist)
public String getSchemaBlacklist()
public void setSlotMaxRetries(int slotMaxRetries)
public int getSlotMaxRetries()
public void setSchemaRefreshMode(String schemaRefreshMode)
public String getSchemaRefreshMode()
public void setDatabaseSslmode(String databaseSslmode)
public String getDatabaseSslmode()
public void setHeartbeatActionQuery(String heartbeatActionQuery)
public String getHeartbeatActionQuery()
public void setDatabaseSslcert(String databaseSslcert)
public String getDatabaseSslcert()
public void setPollIntervalMs(long pollIntervalMs)
public long getPollIntervalMs()
public void setSignalDataCollection(String signalDataCollection)
public String getSignalDataCollection()
public void setDatabaseInitialStatements(String databaseInitialStatements)
public String getDatabaseInitialStatements()
public void setIntervalHandlingMode(String intervalHandlingMode)
public String getIntervalHandlingMode()
public void setConverters(String converters)
public String getConverters()
public void setHeartbeatTopicsPrefix(String heartbeatTopicsPrefix)
public String getHeartbeatTopicsPrefix()
public void setDatabaseSslfactory(String databaseSslfactory)
public String getDatabaseSslfactory()
public void setStatusUpdateIntervalMs(int statusUpdateIntervalMs)
public int getStatusUpdateIntervalMs()
public void setSnapshotFetchSize(int snapshotFetchSize)
public int getSnapshotFetchSize()
public void setSnapshotLockTimeoutMs(long snapshotLockTimeoutMs)
public long getSnapshotLockTimeoutMs()
public void setDatabaseUser(String databaseUser)
public String getDatabaseUser()
public void setDatabaseDbname(String databaseDbname)
public String getDatabaseDbname()
public void setDatatypePropagateSourceType(String datatypePropagateSourceType)
public String getDatatypePropagateSourceType()
public void setDatabaseSslkey(String databaseSslkey)
public String getDatabaseSslkey()
public void setSanitizeFieldNames(boolean sanitizeFieldNames)
public boolean isSanitizeFieldNames()
public void setSnapshotSelectStatementOverrides(String snapshotSelectStatementOverrides)
public String getSnapshotSelectStatementOverrides()
public void setSourceStructVersion(String sourceStructVersion)
public String getSourceStructVersion()
public void setHeartbeatIntervalMs(int heartbeatIntervalMs)
public int getHeartbeatIntervalMs()
public void setColumnWhitelist(String columnWhitelist)
public String getColumnWhitelist()
public void setColumnIncludeList(String columnIncludeList)
public String getColumnIncludeList()
public void setPluginName(String pluginName)
public String getPluginName()
public void setDatabaseSslpassword(String databaseSslpassword)
public String getDatabaseSslpassword()
public void setToastedValuePlaceholder(String toastedValuePlaceholder)
public String getToastedValuePlaceholder()
public void setSchemaWhitelist(String schemaWhitelist)
public String getSchemaWhitelist()
public void setColumnPropagateSourceType(String columnPropagateSourceType)
public String getColumnPropagateSourceType()
public void setTableExcludeList(String tableExcludeList)
public String getTableExcludeList()
public void setDatabasePassword(String databasePassword)
public String getDatabasePassword()
public void setDatabaseSslrootcert(String databaseSslrootcert)
public String getDatabaseSslrootcert()
public void setMaxBatchSize(int maxBatchSize)
public int getMaxBatchSize()
public void setSkippedOperations(String skippedOperations)
public String getSkippedOperations()
public void setSnapshotMode(String snapshotMode)
public String getSnapshotMode()
public void setMaxQueueSize(int maxQueueSize)
public int getMaxQueueSize()
public void setSnapshotCustomClass(String snapshotCustomClass)
public String getSnapshotCustomClass()
public void setSlotName(String slotName)
public String getSlotName()
public void setHstoreHandlingMode(String hstoreHandlingMode)
public String getHstoreHandlingMode()
public void setRetriableRestartConnectorWaitMs(long retriableRestartConnectorWaitMs)
public long getRetriableRestartConnectorWaitMs()
public void setSnapshotDelayMs(long snapshotDelayMs)
public long getSnapshotDelayMs()
public void setProvideTransactionMetadata(boolean provideTransactionMetadata)
public boolean isProvideTransactionMetadata()
public void setTableWhitelist(String tableWhitelist)
public String getTableWhitelist()
public void setTombstonesOnDelete(boolean tombstonesOnDelete)
public boolean isTombstonesOnDelete()
public void setSlotRetryDelayMs(long slotRetryDelayMs)
public long getSlotRetryDelayMs()
public void setDecimalHandlingMode(String decimalHandlingMode)
public String getDecimalHandlingMode()
public void setBinaryHandlingMode(String binaryHandlingMode)
public String getBinaryHandlingMode()
public void setTableIgnoreBuiltin(boolean tableIgnoreBuiltin)
public boolean isTableIgnoreBuiltin()
public void setDatabaseTcpkeepalive(boolean databaseTcpkeepalive)
public boolean isDatabaseTcpkeepalive()
public void setSchemaExcludeList(String schemaExcludeList)
public String getSchemaExcludeList()
public void setPublicationAutocreateMode(String publicationAutocreateMode)
public String getPublicationAutocreateMode()
public void setSnapshotIncludeCollectionList(String snapshotIncludeCollectionList)
public String getSnapshotIncludeCollectionList()
public void setDatabaseHistoryFileFilename(String databaseHistoryFileFilename)
public String getDatabaseHistoryFileFilename()
public void setSlotDropOnStop(boolean slotDropOnStop)
public boolean isSlotDropOnStop()
public void setMaxQueueSizeInBytes(long maxQueueSizeInBytes)
public long getMaxQueueSizeInBytes()
public void setXminFetchIntervalMs(long xminFetchIntervalMs)
public long getXminFetchIntervalMs()
public void setTimePrecisionMode(String timePrecisionMode)
public String getTimePrecisionMode()
public void setDatabaseServerName(String databaseServerName)
public String getDatabaseServerName()
public void setEventProcessingFailureHandlingMode(String eventProcessingFailureHandlingMode)
public String getEventProcessingFailureHandlingMode()
public void setSnapshotMaxThreads(int snapshotMaxThreads)
public int getSnapshotMaxThreads()
public void setDatabasePort(int databasePort)
public int getDatabasePort()
public void setColumnExcludeList(String columnExcludeList)
public String getColumnExcludeList()
public void setIncludeUnknownDatatypes(boolean includeUnknownDatatypes)
public boolean isIncludeUnknownDatatypes()
public void setDatabaseHostname(String databaseHostname)
public String getDatabaseHostname()
public void setTableIncludeList(String tableIncludeList)
public String getTableIncludeList()
public void setSlotStreamParams(String slotStreamParams)
public String getSlotStreamParams()
protected io.debezium.config.Configuration createConnectorConfiguration()
createConnectorConfiguration in class org.apache.camel.component.debezium.configuration.EmbeddedDebeziumConfigurationprotected Class configureConnectorClass()
configureConnectorClass in class org.apache.camel.component.debezium.configuration.EmbeddedDebeziumConfigurationprotected org.apache.camel.component.debezium.configuration.ConfigurationValidation validateConnectorConfiguration()
validateConnectorConfiguration in class org.apache.camel.component.debezium.configuration.EmbeddedDebeziumConfigurationpublic String getConnectorDatabaseType()
getConnectorDatabaseType in class org.apache.camel.component.debezium.configuration.EmbeddedDebeziumConfigurationApache Camel