Package io.debezium.storage.jdbc.history
Class JdbcSchemaHistory
java.lang.Object
io.debezium.relational.history.AbstractSchemaHistory
io.debezium.storage.jdbc.history.JdbcSchemaHistory
- All Implemented Interfaces:
SchemaHistory
A
SchemaHistory implementation that stores the schema history to database table- Author:
- Ismail Simsek
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JdbcSchemaHistoryConfigprivate RetriableConnectionprivate final FunctionalReadWriteLockprivate static final org.slf4j.Loggerprivate final DocumentReaderprivate final AtomicIntegerprivate final AtomicBooleanprivate final DocumentWriterFields inherited from class io.debezium.relational.history.AbstractSchemaHistory
ALL_FIELDS, loggerFields inherited from interface io.debezium.relational.history.SchemaHistory
CONFIGURATION_FIELD_PREFIX_STRING, DDL_FILTER, INTERNAL_CONNECTOR_CLASS, INTERNAL_CONNECTOR_ID, INTERNAL_PREFER_DDL, NAME, SKIP_UNPARSEABLE_DDL_STATEMENTS, STORE_ONLY_CAPTURED_DATABASES_DDL, STORE_ONLY_CAPTURED_TABLES_DDL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration config, HistoryRecordComparator comparator, SchemaHistoryListener listener, boolean useCatalogBeforeSchema) booleanexists()(package private) JdbcSchemaHistoryConfigvoidprotected voidrecoverRecords(Consumer<HistoryRecord> records) voidstart()voidstop()booleanprotected voidstoreRecord(HistoryRecord record) toString()Methods inherited from class io.debezium.relational.history.AbstractSchemaHistory
record, record, recoverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.debezium.relational.history.SchemaHistory
recover, recover
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
lock
-
writer
-
reader
-
running
-
recordInsertSeq
-
conn
-
config
-
-
Constructor Details
-
JdbcSchemaHistory
public JdbcSchemaHistory()
-
-
Method Details
-
configure
public void configure(Configuration config, HistoryRecordComparator comparator, SchemaHistoryListener listener, boolean useCatalogBeforeSchema) - Specified by:
configurein interfaceSchemaHistory- Overrides:
configurein classAbstractSchemaHistory
-
start
public void start()- Specified by:
startin interfaceSchemaHistory- Overrides:
startin classAbstractSchemaHistory
-
storeRecord
- Specified by:
storeRecordin classAbstractSchemaHistory- Throws:
SchemaHistoryException
-
split
-
stop
public void stop()- Specified by:
stopin interfaceSchemaHistory- Overrides:
stopin classAbstractSchemaHistory
-
recoverRecords
- Specified by:
recoverRecordsin classAbstractSchemaHistory
-
storageExists
public boolean storageExists() -
exists
public boolean exists() -
getConfig
-
toString
-
initializeStorage
public void initializeStorage()- Specified by:
initializeStoragein interfaceSchemaHistory- Overrides:
initializeStoragein classAbstractSchemaHistory
-