Package io.debezium.relational.history
Class AbstractFileBasedSchemaHistory
java.lang.Object
io.debezium.relational.history.AbstractSchemaHistory
io.debezium.relational.history.AbstractFileBasedSchemaHistory
- All Implemented Interfaces:
SchemaHistory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DocumentReaderprotected final DocumentWriterprotected final io.debezium.util.FunctionalReadWriteLockprivate static final org.slf4j.Loggerprotected List<HistoryRecord> protected final AtomicBooleanFields inherited from class io.debezium.relational.history.AbstractSchemaHistory
ALL_FIELDS, config, 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 TypeMethodDescriptionprotected voidprotected voiddoPreStoreRecord(HistoryRecord record) protected voiddoStart()protected voiddoStop()protected voiddoStoreRecord(HistoryRecord record) booleanexists()Determines if the database schema history entity exists; i.e. the storage must have been initialized and the history must have been populated.protected byte[]fromHistoryRecord(HistoryRecord record) protected List<HistoryRecord> protected voidrecoverRecords(Consumer<HistoryRecord> records) voidstart()Start the history.voidstop()Stop recording history and release any resources acquired sinceSchemaHistory.configure(Configuration, HistoryRecordComparator, SchemaHistoryListener, boolean).protected voidstoreRecord(HistoryRecord record) protected voidtoHistoryRecord(InputStream inputStream) Methods inherited from class io.debezium.relational.history.AbstractSchemaHistory
configure, initializeStorage, record, record, recoverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.relational.history.SchemaHistory
checkStorageSettings, recover, recover, startBuffering, stopBuffering, storageExists
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
lock
protected final io.debezium.util.FunctionalReadWriteLock lock -
running
-
documentWriter
-
documentReader
-
records
-
-
Constructor Details
-
AbstractFileBasedSchemaHistory
public AbstractFileBasedSchemaHistory()
-
-
Method Details
-
toHistoryRecord
-
fromHistoryRecord
-
getRecords
-
start
public void start()Description copied from interface:SchemaHistoryStart the history.- Specified by:
startin interfaceSchemaHistory- Overrides:
startin classAbstractSchemaHistory
-
stop
public void stop()Description copied from interface:SchemaHistoryStop recording history and release any resources acquired sinceSchemaHistory.configure(Configuration, HistoryRecordComparator, SchemaHistoryListener, boolean).- Specified by:
stopin interfaceSchemaHistory- Overrides:
stopin classAbstractSchemaHistory
-
storeRecord
- Specified by:
storeRecordin classAbstractSchemaHistory- Throws:
SchemaHistoryException
-
recoverRecords
- Specified by:
recoverRecordsin classAbstractSchemaHistory
-
exists
public boolean exists()Description copied from interface:SchemaHistoryDetermines if the database schema history entity exists; i.e. the storage must have been initialized and the history must have been populated. -
doPreStart
protected void doPreStart() -
doStart
protected void doStart() -
doStop
protected void doStop() -
doPreStoreRecord
-
doStoreRecord
-