Package io.debezium.storage.file.history
Class FileDatabaseHistory
java.lang.Object
io.debezium.relational.history.AbstractDatabaseHistory
io.debezium.storage.file.history.FileDatabaseHistory
- All Implemented Interfaces:
DatabaseHistory
A
DatabaseHistory implementation that stores the schema history in a local file.- Author:
- Randall Hauch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Collection<Field>static final Fieldprivate final FunctionalReadWriteLockprivate Pathprivate final DocumentReaderprivate final AtomicBooleanprivate static final Charsetprivate final DocumentWriterFields inherited from class io.debezium.relational.history.AbstractDatabaseHistory
config, INTERNAL_CONNECTOR_CLASS, INTERNAL_CONNECTOR_ID, INTERNAL_PREFER_DDL, loggerFields inherited from interface io.debezium.relational.history.DatabaseHistory
CONFIGURATION_FIELD_PREFIX_STRING, DDL_FILTER, NAME, SKIP_UNPARSEABLE_DDL_STATEMENTS, STORE_ONLY_CAPTURED_TABLES_DDL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration config, HistoryRecordComparator comparator, DatabaseHistoryListener listener, boolean useCatalogBeforeSchema) booleanexists()protected voidrecoverRecords(Consumer<HistoryRecord> records) voidstart()voidstop()booleanprotected voidstoreRecord(HistoryRecord record) toString()Methods inherited from class io.debezium.relational.history.AbstractDatabaseHistory
initializeStorage, record, record, recover, skipUnparseableDdlStatements, storeOnlyCapturedTablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.debezium.relational.history.DatabaseHistory
recover, recover
-
Field Details
-
FILE_PATH
-
ALL_FIELDS
-
UTF8
-
lock
-
writer
-
reader
-
running
-
path
-
-
Constructor Details
-
FileDatabaseHistory
public FileDatabaseHistory()
-
-
Method Details
-
configure
public void configure(Configuration config, HistoryRecordComparator comparator, DatabaseHistoryListener listener, boolean useCatalogBeforeSchema) - Specified by:
configurein interfaceDatabaseHistory- Overrides:
configurein classAbstractDatabaseHistory
-
start
public void start()- Specified by:
startin interfaceDatabaseHistory- Overrides:
startin classAbstractDatabaseHistory
-
storeRecord
- Specified by:
storeRecordin classAbstractDatabaseHistory- Throws:
DatabaseHistoryException
-
stop
public void stop()- Specified by:
stopin interfaceDatabaseHistory- Overrides:
stopin classAbstractDatabaseHistory
-
recoverRecords
- Specified by:
recoverRecordsin classAbstractDatabaseHistory
-
storageExists
public boolean storageExists() -
exists
public boolean exists() -
toString
-