Package io.debezium.connector.cassandra
Class TestUtils
java.lang.Object
io.debezium.connector.cassandra.TestUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearCommitLogFromDirectory(File directory, boolean recursive) Delete all commit log files in directorystatic voidstatic voidstatic voiddeleteTestOffsets(io.debezium.connector.cassandra.CassandraConnectorContext context) Delete all files in offset backing store directoryprotected static PropertiesgetTables(com.datastax.oss.driver.api.core.CqlSession session) static StringkeyspaceTable(String tableName) Return the full name of the test table in the form of. static voidpopulateFakeCommitLogsForDirectory(int numOfFiles, File directory) Generate commit log files in directorystatic voidrunCql(com.datastax.oss.driver.api.core.cql.SimpleStatement statement) static voidstatic void
-
Field Details
-
TEST_CONNECTOR_NAME
- See Also:
-
TEST_CASSANDRA_YAML_CONFIG
- See Also:
-
TEST_CASSANDRA_HOSTS
- See Also:
-
TEST_CASSANDRA_PORT
public static final int TEST_CASSANDRA_PORT- See Also:
-
TEST_KAFKA_SERVERS
- See Also:
-
TEST_SCHEMA_REGISTRY_URL
- See Also:
-
TEST_KAFKA_TOPIC_PREFIX
- See Also:
-
TEST_KEYSPACE_NAME
- See Also:
-
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
generateDefaultConfigMap
- Throws:
IOException
-
propertiesForContext
- Throws:
IOException
-
createTestKeyspace
public static void createTestKeyspace() -
getTables
-
truncateTestKeyspaceTableData
public static void truncateTestKeyspaceTableData() -
deleteTestKeyspaceTables
public static void deleteTestKeyspaceTables() -
runCql
-
runCql
public static void runCql(com.datastax.oss.driver.api.core.cql.SimpleStatement statement) -
deleteTestOffsets
public static void deleteTestOffsets(io.debezium.connector.cassandra.CassandraConnectorContext context) throws IOException Delete all files in offset backing store directory- Throws:
IOException
-
keyspaceTable
Return the full name of the test table in the form of. populateFakeCommitLogsForDirectory
public static void populateFakeCommitLogsForDirectory(int numOfFiles, File directory) throws IOException Generate commit log files in directory- Throws:
IOException
clearCommitLogFromDirectory
public static void clearCommitLogFromDirectory(File directory, boolean recursive) throws IOException Delete all commit log files in directory- Throws:
IOException
-