private File extractStorePath(ManagementData management) { NeoStoreXaDataSource nioneodb = management .getKernelData() .graphDatabase() .getXaDataSourceManager() .getNeoStoreDataSource(); File path; try { path = new File(nioneodb.getStoreDir()).getCanonicalFile().getAbsoluteFile(); } catch (IOException e) { path = new File(nioneodb.getStoreDir()).getAbsoluteFile(); } return path; }
DiagnosticsImpl(ManagementData management) throws NotCompliantMBeanException { super(management); DependencyResolver resolver = management.getKernelData().graphDatabase().getDependencyResolver(); this.diagnostics = resolver.resolveDependency(DiagnosticsManager.class); }
PageCacheImpl(ManagementData management) throws NotCompliantMBeanException { super(management); this.pageCacheMonitor = management.resolveDependency(CountingPageCacheMonitor.class); }
private static boolean isHA(ManagementData management) { return management.getKernelData().graphDatabase() instanceof AbstractHAGraphDatabase; }