public class OracleSnapshotChangeEventSource extends Object implements io.debezium.pipeline.source.spi.SnapshotChangeEventSource
| Modifier and Type | Class and Description |
|---|---|
private static class |
OracleSnapshotChangeEventSource.SnapshotContext
Mutable context which is populated in the course of snapshotting.
|
| Modifier and Type | Field and Description |
|---|---|
private OracleConnectorConfig |
connectorConfig |
private OracleConnection |
jdbcConnection |
private static org.slf4j.Logger |
LOGGER |
private OracleOffsetContext |
previousOffset |
private OracleDatabaseSchema |
schema |
| Constructor and Description |
|---|
OracleSnapshotChangeEventSource(OracleConnectorConfig connectorConfig,
OracleOffsetContext previousOffset,
OracleConnection jdbcConnection,
OracleDatabaseSchema schema) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
createSchemaChangeEventsForTables(OracleSnapshotChangeEventSource.SnapshotContext ctx) |
private void |
determineCapturedTables(OracleSnapshotChangeEventSource.SnapshotContext ctx) |
private void |
determineOffsetContextWithScn(OracleSnapshotChangeEventSource.SnapshotContext ctx) |
io.debezium.pipeline.spi.SnapshotResult |
execute(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context) |
private boolean |
lockTablesToBeCaptured(OracleSnapshotChangeEventSource.SnapshotContext ctx) |
private void |
readTableStructure(OracleSnapshotChangeEventSource.SnapshotContext ctx) |
private void |
rollbackTransaction(Connection connection) |
private static final org.slf4j.Logger LOGGER
private final OracleConnectorConfig connectorConfig
private final OracleOffsetContext previousOffset
private final OracleConnection jdbcConnection
private final OracleDatabaseSchema schema
public OracleSnapshotChangeEventSource(OracleConnectorConfig connectorConfig, OracleOffsetContext previousOffset, OracleConnection jdbcConnection, OracleDatabaseSchema schema)
public io.debezium.pipeline.spi.SnapshotResult execute(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context)
throws InterruptedException
execute in interface io.debezium.pipeline.source.spi.SnapshotChangeEventSourceInterruptedExceptionprivate void determineCapturedTables(OracleSnapshotChangeEventSource.SnapshotContext ctx) throws SQLException
SQLExceptionprivate boolean lockTablesToBeCaptured(OracleSnapshotChangeEventSource.SnapshotContext ctx) throws SQLException
SQLExceptionprivate void determineOffsetContextWithScn(OracleSnapshotChangeEventSource.SnapshotContext ctx) throws SQLException
SQLExceptionprivate void readTableStructure(OracleSnapshotChangeEventSource.SnapshotContext ctx) throws SQLException
SQLExceptionprivate boolean createSchemaChangeEventsForTables(OracleSnapshotChangeEventSource.SnapshotContext ctx) throws SQLException
SQLExceptionprivate void rollbackTransaction(Connection connection)
Copyright © 2018 JBoss by Red Hat. All rights reserved.