Search in sources :

Example 1 with LogProgressReporter

use of org.neo4j.kernel.impl.util.monitoring.LogProgressReporter in project neo4j by neo4j.

the class Recovery method transactionLogRecovery.

private static TransactionLogsRecovery transactionLogRecovery(FileSystemAbstraction fileSystemAbstraction, TransactionIdStore transactionIdStore, RecoveryMonitor recoveryMonitor, RecoveryStartInformationProvider.Monitor positionMonitor, LogFiles logFiles, StorageEngine storageEngine, LogicalTransactionStore logicalTransactionStore, LogVersionRepository logVersionRepository, Lifecycle schemaLife, DatabaseLayout databaseLayout, boolean failOnCorruptedLogFiles, Log log, RecoveryStartupChecker startupChecker, PageCacheTracer pageCacheTracer, MemoryTracker memoryTracker, boolean doParallelRecovery) {
    RecoveryService recoveryService = new DefaultRecoveryService(storageEngine, transactionIdStore, logicalTransactionStore, logVersionRepository, logFiles, positionMonitor, log, doParallelRecovery);
    CorruptedLogsTruncator logsTruncator = new CorruptedLogsTruncator(databaseLayout.databaseDirectory(), logFiles, fileSystemAbstraction, memoryTracker);
    ProgressReporter progressReporter = new LogProgressReporter(log);
    return new TransactionLogsRecovery(recoveryService, logsTruncator, schemaLife, recoveryMonitor, progressReporter, failOnCorruptedLogFiles, startupChecker, pageCacheTracer);
}
Also used : LogProgressReporter(org.neo4j.kernel.impl.util.monitoring.LogProgressReporter) LogProgressReporter(org.neo4j.kernel.impl.util.monitoring.LogProgressReporter) ProgressReporter(org.neo4j.common.ProgressReporter)

Aggregations

ProgressReporter (org.neo4j.common.ProgressReporter)1 LogProgressReporter (org.neo4j.kernel.impl.util.monitoring.LogProgressReporter)1