use of org.neo4j.kernel.internal.KernelEventHandlers in project neo4j by neo4j.
the class Runner method createBatchingTransactionAppender.
private BatchingTransactionAppender createBatchingTransactionAppender(TransactionIdStore transactionIdStore, TransactionMetadataCache transactionMetadataCache, LogFile logFile) {
Log log = NullLog.getInstance();
KernelEventHandlers kernelEventHandlers = new KernelEventHandlers(log);
DatabasePanicEventGenerator panicEventGenerator = new DatabasePanicEventGenerator(kernelEventHandlers);
DatabaseHealth databaseHealth = new DatabaseHealth(panicEventGenerator, log);
LogRotationImpl logRotation = new LogRotationImpl(NOOP_LOGROTATION_MONITOR, logFile, databaseHealth);
return new BatchingTransactionAppender(logFile, logRotation, transactionMetadataCache, transactionIdStore, IdOrderingQueue.BYPASS, databaseHealth);
}
Aggregations