public class CassandraConnectorConfig
extends io.debezium.config.CommonConnectorConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
CassandraConnectorConfig.SnapshotMode
The set of predefined SnapshotMode options.
|
| Modifier and Type | Field and Description |
|---|---|
static io.debezium.config.Field |
CASSANDRA_CONFIG
The absolute path of the YAML config file used by a Cassandra node.
|
static io.debezium.config.Field |
CASSANDRA_HOSTS |
static io.debezium.config.Field |
CASSANDRA_PASSWORD
The password used when connecting to Cassandra hosts.
|
static io.debezium.config.Field |
CASSANDRA_PORT |
static io.debezium.config.Field |
CASSANDRA_SSL_CONFIG_PATH
The SSL config file path required for storage node.
|
static io.debezium.config.Field |
CASSANDRA_SSL_ENABLED |
static io.debezium.config.Field |
CASSANDRA_USERNAME
The username used when connecting to Cassandra hosts.
|
static io.debezium.config.Field |
CDC_DIR_POLL_INTERVAL_MS |
static io.debezium.config.Field |
COMMIT_LOG_POST_PROCESSING_ENABLED |
static io.debezium.config.Field |
COMMIT_LOG_RELOCATION_DIR
The local directory which commit logs get relocated to once processed.
|
static io.debezium.config.Field |
COMMIT_LOG_TRANSFER_CLASS |
static String |
COMMIT_LOG_TRANSFER_CONFIG_PREFIX
The prefix for all
CommitLogTransfer configurations. |
static io.debezium.config.Field |
CONNECTOR_NAME
Logical name for the Cassandra connector.
|
static String |
DEFAULT_CASSANDRA_HOST
One or more addresses of Cassandra nodes that driver uses to discover topology, separated by ","
|
static int |
DEFAULT_CASSANDRA_PORT
The port used to connect to Cassandra host(s).
|
static boolean |
DEFAULT_CASSANDRA_SSL_ENABLED
If set to true, Cassandra connector agent will use SSL to connect to Cassandra node.
|
static int |
DEFAULT_CDC_DIR_POLL_INTERVAL_MS
The maximum amount of time to wait on each poll before reattempt.
|
static boolean |
DEFAULT_COMMIT_LOG_POST_PROCESSING_ENABLED
Determines whether or not the CommitLogPostProcessor should run.
|
static String |
DEFAULT_COMMIT_LOG_TRANSFER_CLASS
The fully qualified
CommitLogTransfer class used to transfer commit logs. |
static int |
DEFAULT_HTTP_PORT
The port used by the HTTP server for ping, health check, and build info
|
static boolean |
DEFAULT_LATEST_COMMIT_LOG_ONLY
Instead of parsing commit logs from CDC directory, this will look for the commit log with the
latest modified timestamp in the commit log directory and attempt to process this file only.
|
static int |
DEFAULT_MAX_OFFSET_FLUSH_SIZE
The maximum records that are allowed to be processed until it is required to flush offset to disk.
|
static int |
DEFAULT_OFFSET_FLUSH_INTERVAL_MS
The minimum amount of time to wait before committing the offset.
|
static int |
DEFAULT_POLL_INTERVAL_MS |
static int |
DEFAULT_SCHEMA_POLL_INTERVAL_MS
Positive integer value that specifies the number of milliseconds the schema processor should wait before
refreshing the cached Cassandra table schemas.
|
static String |
DEFAULT_SNAPSHOT_CONSISTENCY
Specify the
ConsistencyLevel used for the snapshot query. |
protected static int |
DEFAULT_SNAPSHOT_FETCH_SIZE |
static String |
DEFAULT_SNAPSHOT_MODE
Specifies the criteria for running a snapshot (eg.
|
static int |
DEFAULT_SNAPSHOT_POLL_INTERVAL_MS
Positive integer value that specifies the number of milliseconds the snapshot processor should wait before
re-scanning tables to look for new cdc-enabled tables.
|
static boolean |
DEFAULT_TOMBSTONES_ON_DELETE |
static io.debezium.config.Field |
FIELD_BLACKLIST
A comma-separated list of fully-qualified names of fields that should be excluded from change event message values.
|
static io.debezium.config.Field |
HTTP_PORT |
static String |
KAFKA_PRODUCER_CONFIG_PREFIX
The prefix prepended to all Kafka producer configurations, including schema registry
|
static io.debezium.config.Field |
KAFKA_TOPIC_PREFIX
Logical name for the Cassandra cluster.
|
static io.debezium.config.Field |
KEY_CONVERTER_CLASS_CONFIG
Required config for Kafka key converter.
|
static String |
KEY_CONVERTER_PREFIX
The prefix prepended to all Kafka key converter configurations, including schema registry.
|
static io.debezium.config.Field |
LATEST_COMMIT_LOG_ONLY |
static io.debezium.config.Field |
MAX_OFFSET_FLUSH_SIZE |
static io.debezium.config.Field |
OFFSET_BACKING_STORE_DIR
The directory to store offset tracking files.
|
static io.debezium.config.Field |
OFFSET_FLUSH_INTERVAL_MS |
static io.debezium.config.Field |
SCHEMA_POLL_INTERVAL_MS |
static io.debezium.config.Field |
SNAPSHOT_CONSISTENCY |
static io.debezium.config.Field |
SNAPSHOT_MODE |
static io.debezium.config.Field |
SNAPSHOT_POLL_INTERVAL_MS |
static io.debezium.config.Field |
VALUE_CONVERTER_CLASS_CONFIG
Required config for Kafka value converter.
|
static String |
VALUE_CONVERTER_PREFIX
The prefix prepended to all Kafka value converter configurations, including schema registry.
|
CONFIG_DEFINITION, CUSTOM_CONVERTERS, DATABASE_CONFIG_PREFIX, DEFAULT_MAX_BATCH_SIZE, DEFAULT_MAX_QUEUE_SIZE, DEFAULT_POLL_INTERVAL_MILLIS, EVENT_PROCESSING_FAILURE_HANDLING_MODE, MAX_BATCH_SIZE, MAX_QUEUE_SIZE, POLL_INTERVAL_MS, PROVIDE_TRANSACTION_METADATA, SANITIZE_FIELD_NAMES, SKIPPED_OPERATIONS, SNAPSHOT_DELAY_MS, SNAPSHOT_FETCH_SIZE, SOURCE_STRUCT_MAKER_VERSION, TOMBSTONES_ON_DELETE| Constructor and Description |
|---|
CassandraConnectorConfig(io.debezium.config.Configuration config) |
customConverterRegistry, getConfig, getEventProcessingFailureHandlingMode, getHeartbeatTopicsPrefix, getLogicalName, getMaxBatchSize, getMaxQueueSize, getPollInterval, getSanitizeFieldNames, getSkippedOps, getSnapshotDelay, getSnapshotFetchSize, getSourceInfoStructMaker, isEmitTombstoneOnDelete, isSchemaChangesHistoryEnabled, shouldProvideTransactionMetadata, validateServerNameIsDifferentFromHistoryTopicNamepublic static final String KAFKA_PRODUCER_CONFIG_PREFIX
public static final String KEY_CONVERTER_PREFIX
public static final String VALUE_CONVERTER_PREFIX
public static final String COMMIT_LOG_TRANSFER_CONFIG_PREFIX
CommitLogTransfer configurations.public static final io.debezium.config.Field CONNECTOR_NAME
public static final io.debezium.config.Field KAFKA_TOPIC_PREFIX
public static final io.debezium.config.Field KEY_CONVERTER_CLASS_CONFIG
public static final io.debezium.config.Field VALUE_CONVERTER_CLASS_CONFIG
public static final String DEFAULT_SNAPSHOT_MODE
for details.public static final io.debezium.config.Field SNAPSHOT_MODE
public static final String DEFAULT_SNAPSHOT_CONSISTENCY
ConsistencyLevel used for the snapshot query.public static final io.debezium.config.Field SNAPSHOT_CONSISTENCY
public static final int DEFAULT_HTTP_PORT
public static final io.debezium.config.Field HTTP_PORT
public static final io.debezium.config.Field CASSANDRA_CONFIG
public static final String DEFAULT_CASSANDRA_HOST
public static final io.debezium.config.Field CASSANDRA_HOSTS
public static final int DEFAULT_CASSANDRA_PORT
public static final io.debezium.config.Field CASSANDRA_PORT
public static final io.debezium.config.Field CASSANDRA_USERNAME
public static final io.debezium.config.Field CASSANDRA_PASSWORD
public static final boolean DEFAULT_CASSANDRA_SSL_ENABLED
public static final io.debezium.config.Field CASSANDRA_SSL_ENABLED
public static final io.debezium.config.Field CASSANDRA_SSL_CONFIG_PATH
public static final io.debezium.config.Field COMMIT_LOG_RELOCATION_DIR
public static final boolean DEFAULT_COMMIT_LOG_POST_PROCESSING_ENABLED
public static final io.debezium.config.Field COMMIT_LOG_POST_PROCESSING_ENABLED
public static final String DEFAULT_COMMIT_LOG_TRANSFER_CLASS
CommitLogTransfer class used to transfer commit logs.
The default option will delete all commit log files after processing (successful or otherwise).
You can extend a custom implementation.public static final io.debezium.config.Field COMMIT_LOG_TRANSFER_CLASS
public static final io.debezium.config.Field OFFSET_BACKING_STORE_DIR
public static final int DEFAULT_OFFSET_FLUSH_INTERVAL_MS
public static final io.debezium.config.Field OFFSET_FLUSH_INTERVAL_MS
public static final int DEFAULT_MAX_OFFSET_FLUSH_SIZE
public static final io.debezium.config.Field MAX_OFFSET_FLUSH_SIZE
public static final int DEFAULT_SCHEMA_POLL_INTERVAL_MS
public static final io.debezium.config.Field SCHEMA_POLL_INTERVAL_MS
public static final int DEFAULT_CDC_DIR_POLL_INTERVAL_MS
public static final io.debezium.config.Field CDC_DIR_POLL_INTERVAL_MS
public static final int DEFAULT_SNAPSHOT_POLL_INTERVAL_MS
public static final io.debezium.config.Field SNAPSHOT_POLL_INTERVAL_MS
public static final io.debezium.config.Field FIELD_BLACKLIST
<keyspace_name>.<field_name>.<nested_field_name>.public static final boolean DEFAULT_LATEST_COMMIT_LOG_ONLY
public static final io.debezium.config.Field LATEST_COMMIT_LOG_ONLY
public static final int DEFAULT_POLL_INTERVAL_MS
public static final boolean DEFAULT_TOMBSTONES_ON_DELETE
protected static final int DEFAULT_SNAPSHOT_FETCH_SIZE
public CassandraConnectorConfig(io.debezium.config.Configuration config)
public String connectorName()
public String kafkaTopicPrefix()
public Properties getKafkaConfigs()
public Properties commitLogTransferConfigs()
public boolean latestCommitLogOnly()
public CassandraConnectorConfig.SnapshotMode snapshotMode()
public com.datastax.driver.core.ConsistencyLevel snapshotConsistencyLevel()
public int httpPort()
public String cassandraConfig()
public String[] cassandraHosts()
public int cassandraPort()
public boolean cassandraSslEnabled()
public String cassandraSslConfigPath()
public String cassandraUsername()
public String cassandraPassword()
public String commitLogRelocationDir()
public boolean postProcessEnabled()
public CommitLogTransfer getCommitLogTransfer()
public String offsetBackingStoreDir()
public Duration offsetFlushIntervalMs()
public long maxOffsetFlushSize()
public int maxQueueSize()
public int maxBatchSize()
public Duration pollIntervalMs()
public Duration schemaPollIntervalMs()
public Duration cdcDirPollIntervalMs()
public Duration snapshotPollIntervalMs()
public String[] fieldBlacklist()
public boolean tombstonesOnDelete()
public org.apache.kafka.connect.storage.Converter getKeyConverter()
throws CassandraConnectorConfigException
public org.apache.kafka.connect.storage.Converter getValueConverter()
throws CassandraConnectorConfigException
private Map<String,Object> keyValueConverterConfigs(String converterPrefix)
public String getContextName()
getContextName in class io.debezium.config.CommonConnectorConfigprotected io.debezium.connector.SourceInfoStructMaker<? extends io.debezium.connector.AbstractSourceInfo> getSourceInfoStructMaker(io.debezium.config.CommonConnectorConfig.Version version)
getSourceInfoStructMaker in class io.debezium.config.CommonConnectorConfigpublic String getConnectorName()
getConnectorName in class io.debezium.config.CommonConnectorConfigCopyright © 2020 JBoss by Red Hat. All rights reserved.