public void configure(Configuration config, HistoryRecordComparator comparator, DatabaseHistoryListener listener,
            boolean useCatalogBeforeSchema) {
        Collection var10001 = ALL_FIELDS;
        Logger var10002 = this.logger;
        Objects.requireNonNull(var10002);
        if (!config.validateAndRecord(var10001, var10002::error)) {
            throw new ConnectException("Error configuring an instance of " + this.getClass().getSimpleName()
                    + "; check the logs for details");
        } else {
            if (this.running.get()) {
                throw new IllegalStateException("Database history file already initialized to " + this.path);
            } else {
                super.configure(config, comparator, listener, useCatalogBeforeSchema);
                this.instanceName = config.getString("database.history.instance.name");
                this.schemaRecords = this.getRegisteredHistoryRecord(this.instanceName);
                DatabaseHistoryUtil.registerHistory(this.instanceName, this.schemaRecords);
                this.path = Paths.get(config.getString(FILE_PATH));
            }
        }
    }
A {@link DatabaseHistory} implementation that stores the schema history in a local file.
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/utils/InLongDatabaseHistory.java