public class DebeziumUtils extends Object
| Constructor and Description |
|---|
DebeziumUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.github.shyiko.mysql.binlog.BinaryLogClient |
createBinaryClient(io.debezium.config.Configuration dbzConfiguration)
Creates a new
BinaryLogClient for consuming mysql binlog. |
static io.debezium.connector.mysql.MySqlConnection |
createMySqlConnection(io.debezium.config.Configuration dbzConfiguration)
Creates a new
MySqlConnection, but not open the connection. |
static io.debezium.connector.mysql.MySqlDatabaseSchema |
createMySqlDatabaseSchema(io.debezium.connector.mysql.MySqlConnectorConfig dbzMySqlConfig,
boolean isTableIdCaseSensitive)
Creates a new
MySqlDatabaseSchema to monitor the latest MySql database schemas. |
static BinlogOffset |
currentBinlogOffset(io.debezium.jdbc.JdbcConnection jdbc)
Fetch current binlog offsets in MySql Server.
|
static List<io.debezium.relational.TableId> |
discoverCapturedTables(io.debezium.jdbc.JdbcConnection jdbc,
MySqlSourceConfig sourceConfig) |
static boolean |
isTableIdCaseSensitive(io.debezium.jdbc.JdbcConnection connection) |
static io.debezium.jdbc.JdbcConnection |
openJdbcConnection(MySqlSourceConfig sourceConfig)
Creates and opens a new
JdbcConnection backing connection pool. |
static Map<String,String> |
readMySqlSystemVariables(io.debezium.jdbc.JdbcConnection connection) |
public static io.debezium.jdbc.JdbcConnection openJdbcConnection(MySqlSourceConfig sourceConfig)
JdbcConnection backing connection pool.public static io.debezium.connector.mysql.MySqlConnection createMySqlConnection(io.debezium.config.Configuration dbzConfiguration)
MySqlConnection, but not open the connection.public static com.github.shyiko.mysql.binlog.BinaryLogClient createBinaryClient(io.debezium.config.Configuration dbzConfiguration)
BinaryLogClient for consuming mysql binlog.public static io.debezium.connector.mysql.MySqlDatabaseSchema createMySqlDatabaseSchema(io.debezium.connector.mysql.MySqlConnectorConfig dbzMySqlConfig,
boolean isTableIdCaseSensitive)
MySqlDatabaseSchema to monitor the latest MySql database schemas.public static BinlogOffset currentBinlogOffset(io.debezium.jdbc.JdbcConnection jdbc)
public static List<io.debezium.relational.TableId> discoverCapturedTables(io.debezium.jdbc.JdbcConnection jdbc, MySqlSourceConfig sourceConfig)
public static boolean isTableIdCaseSensitive(io.debezium.jdbc.JdbcConnection connection)
Copyright © 2022 The Apache Software Foundation. All rights reserved.