public abstract static class DebeziumIO.ConnectorConfiguration
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ConnectorConfiguration() |
Modifier and Type | Method and Description |
---|---|
static DebeziumIO.ConnectorConfiguration |
create()
Creates a ConnectorConfiguration.
|
java.util.Map<java.lang.String,java.lang.String> |
getConfigurationMap()
Configuration Map Getter.
|
DebeziumIO.ConnectorConfiguration |
withConnectionProperties(java.util.Map<java.lang.String,java.lang.String> connectionProperties)
Sets a custom property to be used within the connection to your database.
|
DebeziumIO.ConnectorConfiguration |
withConnectionProperties(ValueProvider<java.util.Map<java.lang.String,java.lang.String>> connectionProperties)
Sets a custom property to be used within the connection to your database.
|
DebeziumIO.ConnectorConfiguration |
withConnectionProperty(java.lang.String key,
java.lang.String value)
Sets a custom property to be used within the connection to your database.
|
DebeziumIO.ConnectorConfiguration |
withConnectorClass(java.lang.Class<?> connectorClass)
Applies the connectorClass to be used to connect to your database.
|
DebeziumIO.ConnectorConfiguration |
withConnectorClass(ValueProvider<java.lang.Class<?>> connectorClass)
Sets the connectorClass to be used to connect to your database.
|
DebeziumIO.ConnectorConfiguration |
withHostName(java.lang.String hostName)
Sets the host name to be used on the database.
|
DebeziumIO.ConnectorConfiguration |
withHostName(ValueProvider<java.lang.String> hostName)
Sets the host name to be used on the database.
|
DebeziumIO.ConnectorConfiguration |
withPassword(java.lang.String password)
Sets the password to connect to your database.
|
DebeziumIO.ConnectorConfiguration |
withPassword(ValueProvider<java.lang.String> password)
Sets the password to connect to your database.
|
DebeziumIO.ConnectorConfiguration |
withPort(java.lang.String port)
Sets the port on which your database is listening.
|
DebeziumIO.ConnectorConfiguration |
withPort(ValueProvider<java.lang.String> port)
Sets the port on which your database is listening.
|
DebeziumIO.ConnectorConfiguration |
withSourceConnector(org.apache.kafka.connect.source.SourceConnector sourceConnector)
Sets the
SourceConnector to be used. |
DebeziumIO.ConnectorConfiguration |
withSourceConnector(ValueProvider<org.apache.kafka.connect.source.SourceConnector> sourceConnector) |
DebeziumIO.ConnectorConfiguration |
withUsername(java.lang.String username)
Sets the username to connect to your database.
|
DebeziumIO.ConnectorConfiguration |
withUsername(ValueProvider<java.lang.String> username)
Sets the username to connect to your database.
|
public static DebeziumIO.ConnectorConfiguration create()
DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withConnectorClass(java.lang.Class<?> connectorClass)
Currently supported connectors are:
io.debezium.connector.mysql.MySqlConnector
io.debezium.connector.postgresql.PostgresConnector
io.debezium.connector.sqlserver.SqlServerConnector
connectorClass
- Any of the supported connectors.DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withConnectorClass(ValueProvider<java.lang.Class<?>> connectorClass)
Currently supported connectors are:
io.debezium.connector.mysql.MySqlConnector
io.debezium.connector.postgresql.PostgresConnector
io.debezium.connector.sqlserver.SqlServerConnector
connectorClass
- (as ValueProvider)DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withHostName(java.lang.String hostName)
hostName
- The hostname of your database.DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withHostName(ValueProvider<java.lang.String> hostName)
hostName
- The hostname of your database (as ValueProvider).DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withPort(java.lang.String port)
port
- The port to be used to connect to your database (as ValueProvider).DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withPort(ValueProvider<java.lang.String> port)
port
- The port to be used to connect to your database.DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withUsername(java.lang.String username)
username
- Database usernameDebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withUsername(ValueProvider<java.lang.String> username)
username
- (as ValueProvider).DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withPassword(java.lang.String password)
password
- Database passwordDebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withPassword(ValueProvider<java.lang.String> password)
password
- (as ValueProvider).DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withConnectionProperties(java.util.Map<java.lang.String,java.lang.String> connectionProperties)
You may use this to set special configurations such as:
connectionProperties
- Properties (Key, Value) MapDebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withConnectionProperties(ValueProvider<java.util.Map<java.lang.String,java.lang.String>> connectionProperties)
You may use this to set special configurations such as:
connectionProperties
- (as ValueProvider).DebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withConnectionProperty(java.lang.String key, java.lang.String value)
You may use this to set special configurations such as:
key
- Property namevalue
- Property valueDebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withSourceConnector(org.apache.kafka.connect.source.SourceConnector sourceConnector)
SourceConnector
to be used. It cannot be null.sourceConnector
- Any supported connectorDebeziumIO.ConnectorConfiguration
public DebeziumIO.ConnectorConfiguration withSourceConnector(ValueProvider<org.apache.kafka.connect.source.SourceConnector> sourceConnector)
public java.util.Map<java.lang.String,java.lang.String> getConfigurationMap()