Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 DiagnosticsImpl(ManagementData management) throws NotCompliantMBeanException {
   super(management);
   DependencyResolver resolver =
       management.getKernelData().graphDatabase().getDependencyResolver();
   this.diagnostics = resolver.resolveDependency(DiagnosticsManager.class);
 }
Exemplo n.º 3
0
 private static boolean isHA(ManagementData management) {
   return management.getKernelData().graphDatabase() instanceof AbstractHAGraphDatabase;
 }