public class CassandraConnectorConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CassandraConnectorConfig.SnapshotMode
The set of predefined SnapshotMode options.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CASSANDRA_CONFIG
The absolute path of the YAML config file used by a Cassandra node.
|
static String |
CASSANDRA_HOSTS
One or more addresses of Cassandra nodes that driver uses to discover topology, separated by ","
|
static String |
CASSANDRA_PASSWORD
The password used when connecting to Cassandra hosts.
|
static String |
CASSANDRA_PORT
The port used to connect to Cassandra host(s).
|
static String |
CASSANDRA_SSL_CONFIG_PATH
The SSL config file path required for storage node.
|
static String |
CASSANDRA_SSL_ENABLED
If set to true, Cassandra connector agent will use SSL to connect to Cassandra node.
|
static String |
CASSANDRA_USERNAME
The username used when connecting to Cassandra hosts.
|
static String |
CDC_DIR_POLL_INTERVAL_MS
The maximum amount of time to wait on each poll before reattempt.
|
static String |
COMMIT_LOG_POST_PROCESSING_ENABLED
Determines whether or not the CommitLogPostProcessor should run.
|
static String |
COMMIT_LOG_RELOCATION_DIR
The local directory which commit logs get relocated to once processed.
|
static String |
COMMIT_LOG_TRANSFER_CLASS
The fully qualified
CommitLogTransfer class used to transfer commit logs. |
static String |
COMMIT_LOG_TRANSFER_CONFIG_PREFIX
The prefix for all
CommitLogTransfer configurations. |
private Map<String,Object> |
configs |
static String |
CONNECTOR_NAME
Logical name for the Cassandra connector.
|
static String |
DEFAULT_CASSANDRA_HOST |
static int |
DEFAULT_CASSANDRA_PORT |
static boolean |
DEFAULT_CASSANDRA_SSL_ENABLED |
static int |
DEFAULT_CDC_DIR_POLL_INTERVAL_MS |
static boolean |
DEFAULT_COMMIT_LOG_POST_PROCESSING_ENABLED |
static String |
DEFAULT_COMMIT_LOG_TRANSFER_CLASS |
static int |
DEFAULT_HTTP_PORT |
static boolean |
DEFAULT_LATEST_COMMIT_LOG_ONLY |
static int |
DEFAULT_MAX_BATCH_SIZE |
static int |
DEFAULT_MAX_OFFSET_FLUSH_SIZE |
static int |
DEFAULT_MAX_QUEUE_SIZE |
static int |
DEFAULT_OFFSET_FLUSH_INTERVAL_MS |
static int |
DEFAULT_POLL_INTERVAL_MS |
static int |
DEFAULT_SCHEMA_POLL_INTERVAL_MS |
static String |
DEFAULT_SNAPSHOT_CONSISTENCY |
static String |
DEFAULT_SNAPSHOT_MODE |
static int |
DEFAULT_SNAPSHOT_POLL_INTERVAL_MS |
static boolean |
DEFAULT_TOMBSTONES_ON_DELETE |
static String |
FIELD_BLACKLIST
A comma-separated list of fully-qualified names of fields that should be excluded from change event message values.
|
static String |
HTTP_PORT
The port used by the HTTP server for ping, health check, and build info
|
static String |
KAFKA_PRODUCER_CONFIG_PREFIX
The prefix prepended to all Kafka producer configurations, including schema registry
|
static String |
KAFKA_TOPIC_PREFIX
Logical name for the Cassandra cluster.
|
static String |
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 String |
MAX_BATCH_SIZE
The maximum number of change events to dequeue each time.
|
static String |
MAX_OFFSET_FLUSH_SIZE
The maximum records that are allowed to be processed until it is required to flush offset to disk.
|
static String |
MAX_QUEUE_SIZE
Positive integer value that specifies the maximum size of the blocking queue into which change events read from
the commit log are placed before they are written to Kafka.
|
static String |
OFFSET_BACKING_STORE_DIR
The directory to store offset tracking files.
|
static String |
OFFSET_FLUSH_INTERVAL_MS
The minimum amount of time to wait before committing the offset.
|
static String |
POLL_INTERVAL_MS
Positive integer value that specifies the number of milliseconds the commit log processor should wait during
each iteration for new change events to appear in the queue.
|
static String |
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 |
SNAPSHOT_CONSISTENCY
Specify the
ConsistencyLevel used for the snapshot query. |
static String |
SNAPSHOT_MODE
Specifies the criteria for running a snapshot (eg.
|
static String |
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 String |
TOMBSTONES_ON_DELETE
Whether deletion events should have a subsequent tombstone event (true) or not (false).
|
| Constructor and Description |
|---|
CassandraConnectorConfig(Map<String,Object> configs) |
| Modifier and Type | Method and Description |
|---|---|
String |
cassandraConfig() |
String[] |
cassandraHosts() |
String |
cassandraPassword() |
int |
cassandraPort() |
String |
cassandraSslConfigPath() |
boolean |
cassandraSslEnabled() |
String |
cassandraUsername() |
Duration |
cdcDirPollIntervalMs() |
String |
commitLogRelocationDir() |
Properties |
commitLogTransferConfigs() |
String |
connectorName() |
String[] |
fieldBlacklist() |
CommitLogTransfer |
getCommitLogTransfer() |
Properties |
getKafkaConfigs() |
int |
httpPort() |
String |
kafkaTopicPrefix() |
boolean |
latestCommitLogOnly() |
int |
maxBatchSize() |
long |
maxOffsetFlushSize() |
int |
maxQueueSize() |
String |
offsetBackingStoreDir() |
Duration |
offsetFlushIntervalMs() |
Duration |
pollIntervalMs() |
boolean |
postProcessEnabled() |
Duration |
schemaPollIntervalMs() |
com.datastax.driver.core.ConsistencyLevel |
snapshotConsistencyLevel() |
CassandraConnectorConfig.SnapshotMode |
snapshotMode() |
Duration |
snapshotPollIntervalMs() |
boolean |
tombstonesOnDelete() |
String |
toString() |
public static final String CONNECTOR_NAME
public static final String KAFKA_TOPIC_PREFIX
public static final String KAFKA_PRODUCER_CONFIG_PREFIX
public static final String SNAPSHOT_MODE
for details.public static final String DEFAULT_SNAPSHOT_MODE
public static final String SNAPSHOT_CONSISTENCY
ConsistencyLevel used for the snapshot query.public static final String DEFAULT_SNAPSHOT_CONSISTENCY
public static final String HTTP_PORT
public static final int DEFAULT_HTTP_PORT
public static final String CASSANDRA_CONFIG
public static final String CASSANDRA_HOSTS
public static final String DEFAULT_CASSANDRA_HOST
public static final String CASSANDRA_PORT
public static final int DEFAULT_CASSANDRA_PORT
public static final String CASSANDRA_USERNAME
public static final String CASSANDRA_PASSWORD
public static final String CASSANDRA_SSL_ENABLED
public static final boolean DEFAULT_CASSANDRA_SSL_ENABLED
public static final String CASSANDRA_SSL_CONFIG_PATH
public static final String COMMIT_LOG_RELOCATION_DIR
public static final String COMMIT_LOG_POST_PROCESSING_ENABLED
public static final boolean DEFAULT_COMMIT_LOG_POST_PROCESSING_ENABLED
public static final String 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 String DEFAULT_COMMIT_LOG_TRANSFER_CLASS
public static final String COMMIT_LOG_TRANSFER_CONFIG_PREFIX
CommitLogTransfer configurations.public static final String OFFSET_BACKING_STORE_DIR
public static final String OFFSET_FLUSH_INTERVAL_MS
public static final int DEFAULT_OFFSET_FLUSH_INTERVAL_MS
public static final String MAX_OFFSET_FLUSH_SIZE
public static final int DEFAULT_MAX_OFFSET_FLUSH_SIZE
public static final String MAX_QUEUE_SIZE
Record
before they are converted to Avro Records and emitted to Kafka.public static final int DEFAULT_MAX_QUEUE_SIZE
public static final String MAX_BATCH_SIZE
public static final int DEFAULT_MAX_BATCH_SIZE
public static final String POLL_INTERVAL_MS
public static final int DEFAULT_POLL_INTERVAL_MS
public static final String SCHEMA_POLL_INTERVAL_MS
public static final int DEFAULT_SCHEMA_POLL_INTERVAL_MS
public static final String CDC_DIR_POLL_INTERVAL_MS
public static final int DEFAULT_CDC_DIR_POLL_INTERVAL_MS
public static final String SNAPSHOT_POLL_INTERVAL_MS
public static final int DEFAULT_SNAPSHOT_POLL_INTERVAL_MS
public static final String TOMBSTONES_ON_DELETE
public static final boolean DEFAULT_TOMBSTONES_ON_DELETE
public static final String FIELD_BLACKLIST
<keyspace_name>.<field_name>.<nested_field_name>.public static final String LATEST_COMMIT_LOG_ONLY
public static final boolean DEFAULT_LATEST_COMMIT_LOG_ONLY
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()
Copyright © 2019 JBoss by Red Hat. All rights reserved.