Package io.debezium.connector.postgresql
Class PostgresTaskContext
java.lang.Object
io.debezium.connector.common.CdcSourceTaskContext
io.debezium.connector.postgresql.PostgresTaskContext
The context of a
PostgresConnectorTask. This deals with most of the brunt of reading various configuration options
and creating other objects with these various options.- Author:
- Horia Chiorean (hchiorea@redhat.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PostgresConnectorConfigprivate Longprotected static final org.slf4j.Loggerprivate ElapsedTimeStrategyprivate final PostgresSchemaprivate final io.debezium.spi.topic.TopicNamingStrategy<TableId> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPostgresTaskContext(PostgresConnectorConfig config, PostgresSchema schema, io.debezium.spi.topic.TopicNamingStrategy<TableId> topicNamingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected PostgresConnectorConfigconfig()protected ReplicationConnectioncreateReplicationConnection(PostgresConnection jdbcConnection) (package private) PostgresConnectorConfigprivate SlotStategetCurrentSlotState(PostgresConnection connection) (package private) LonggetSlotXmin(PostgresConnection connection) protected voidrefreshSchema(PostgresConnection connection, boolean printReplicaIdentityInfo) protected PostgresSchemaschema()protected io.debezium.spi.topic.TopicNamingStrategy<TableId>Methods inherited from class io.debezium.connector.common.CdcSourceTaskContext
capturedDataCollections, configureLoggingContext, configureLoggingContext, getClock, getConnectorName, getConnectorType, getTaskId, temporaryLoggingContext
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
config
-
topicNamingStrategy
-
schema
-
refreshXmin
-
lastXmin
-
-
Constructor Details
-
PostgresTaskContext
protected PostgresTaskContext(PostgresConnectorConfig config, PostgresSchema schema, io.debezium.spi.topic.TopicNamingStrategy<TableId> topicNamingStrategy)
-
-
Method Details
-
topicNamingStrategy
-
schema
-
config
-
refreshSchema
protected void refreshSchema(PostgresConnection connection, boolean printReplicaIdentityInfo) throws SQLException - Throws:
SQLException
-
getSlotXmin
- Throws:
SQLException
-
getCurrentSlotState
- Throws:
SQLException
-
createReplicationConnection
protected ReplicationConnection createReplicationConnection(PostgresConnection jdbcConnection) throws SQLException - Throws:
SQLException
-
getConfig
PostgresConnectorConfig getConfig()
-