Java Code Examples for io.debezium.config.Configuration#create()

The following examples show how to use io.debezium.config.Configuration#create() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestHelper.java    From debezium-incubator with Apache License 2.0 5 votes vote down vote up
/**
 * Returns a default configuration suitable for most test cases. Can be amended/overridden in individual tests as
 * needed.
 */
public static Configuration.Builder defaultConfig() {
    JdbcConfiguration jdbcConfiguration = defaultJdbcConfig();
    Configuration.Builder builder = Configuration.create();

    jdbcConfiguration.forEach(
            (field, value) -> builder.with(Db2ConnectorConfig.DATABASE_CONFIG_PREFIX + field, value));

    return builder.with(RelationalDatabaseConnectorConfig.SERVER_NAME, "testdb")
            .with(Db2ConnectorConfig.DATABASE_HISTORY, FileDatabaseHistory.class)
            .with(FileDatabaseHistory.FILE_PATH, DB_HISTORY_PATH)
            .with(RelationalDatabaseConnectorConfig.INCLUDE_SCHEMA_CHANGES, false);
}
 
Example 2
Source File: TestHelper.java    From debezium-incubator with Apache License 2.0 5 votes vote down vote up
/**
 * Returns a default configuration suitable for most test cases. Can be amended/overridden in individual tests as
 * needed.
 */
public static Configuration.Builder defaultConfig() {
    JdbcConfiguration jdbcConfiguration = defaultJdbcConfig();
    Configuration.Builder builder = Configuration.create();

    jdbcConfiguration.forEach(
            (field, value) -> builder.with(OracleConnectorConfig.DATABASE_CONFIG_PREFIX + field, value));

    return builder.with(RelationalDatabaseConnectorConfig.SERVER_NAME, SERVER_NAME)
            .with(OracleConnectorConfig.PDB_NAME, "ORCLPDB1")
            .with(OracleConnectorConfig.XSTREAM_SERVER_NAME, "dbzxout")
            .with(OracleConnectorConfig.DATABASE_HISTORY, FileDatabaseHistory.class)
            .with(FileDatabaseHistory.FILE_PATH, DB_HISTORY_PATH)
            .with(RelationalDatabaseConnectorConfig.INCLUDE_SCHEMA_CHANGES, false);
}
 
Example 3
Source File: TestHelper.java    From debezium-incubator with Apache License 2.0 5 votes vote down vote up
private static Configuration.Builder testConfig() {
    JdbcConfiguration jdbcConfiguration = testJdbcConfig();
    Configuration.Builder builder = Configuration.create();

    jdbcConfiguration.forEach(
            (field, value) -> builder.with(OracleConnectorConfig.DATABASE_CONFIG_PREFIX + field, value));

    return builder;
}
 
Example 4
Source File: TestHelper.java    From debezium-incubator with Apache License 2.0 5 votes vote down vote up
private static Configuration.Builder adminConfig() {
    JdbcConfiguration jdbcConfiguration = adminJdbcConfig();
    Configuration.Builder builder = Configuration.create();

    jdbcConfiguration.forEach(
            (field, value) -> builder.with(OracleConnectorConfig.DATABASE_CONFIG_PREFIX + field, value));

    return builder;
}