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;
 }
Beispiel #2
0
 DiagnosticsImpl(ManagementData management) throws NotCompliantMBeanException {
   super(management);
   DependencyResolver resolver =
       management.getKernelData().graphDatabase().getDependencyResolver();
   this.diagnostics = resolver.resolveDependency(DiagnosticsManager.class);
 }
Beispiel #3
0
 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;
 }