Search in sources :

Example 1 with DiagnosticsManager

use of org.neo4j.kernel.info.DiagnosticsManager in project neo4j by neo4j.

the class EditionModule method doAfterRecoveryAndStartup.

protected void doAfterRecoveryAndStartup(DatabaseInfo databaseInfo, DependencyResolver dependencyResolver) {
    DiagnosticsManager diagnosticsManager = dependencyResolver.resolveDependency(DiagnosticsManager.class);
    NeoStoreDataSource neoStoreDataSource = dependencyResolver.resolveDependency(NeoStoreDataSource.class);
    diagnosticsManager.prependProvider(new KernelDiagnostics.Versions(databaseInfo, neoStoreDataSource.getStoreId()));
    neoStoreDataSource.registerDiagnosticsWith(diagnosticsManager);
    diagnosticsManager.appendProvider(new KernelDiagnostics.StoreFiles(neoStoreDataSource.getStoreDir()));
}
Also used : KernelDiagnostics(org.neo4j.kernel.internal.KernelDiagnostics) DiagnosticsManager(org.neo4j.kernel.info.DiagnosticsManager) NeoStoreDataSource(org.neo4j.kernel.NeoStoreDataSource)

Aggregations

NeoStoreDataSource (org.neo4j.kernel.NeoStoreDataSource)1 DiagnosticsManager (org.neo4j.kernel.info.DiagnosticsManager)1 KernelDiagnostics (org.neo4j.kernel.internal.KernelDiagnostics)1