Examples of shutdown()


Examples of org.neo4j.kernel.EmbeddedGraphDatabase.shutdown()

        kmlBuilder.finish();
        kmlBuilder.writeToFile(new File("siem-reap.kml"));


        //Close Neo4j
        db.shutdown();

    }

    private Node getStartNode(GraphDatabaseService db) {
        return db.index().forNodes("nodes").get(OsmEntityAttributeKey.NODE_ID.name(), START_NODE_ID).getSingle();
View Full Code Here

Examples of org.neo4j.kernel.EmbeddedReadOnlyGraphDatabase.shutdown()

      }

    }

    // Finished db reading.
    graphDB.shutdown();

    // sort list by page rank
    System.out.println("Sorting index entries.");
    Collections.sort(PaperEntryList, new Comparator<CompleteEntry>() {
      @Override
View Full Code Here

Examples of org.neo4j.kernel.HighlyAvailableGraphDatabase.shutdown()

        Runtime.getRuntime().addShutdownHook( new Thread()
        {
            @Override
            public void run()
            {
                graphDb.shutdown();
            }
        } );
    }
}
View Full Code Here

Examples of org.neo4j.kernel.ha.MasterClient.shutdown()

        if ( cachedMaster != null )
        {
            MasterClient client = (MasterClient) cachedMaster.first();
            if ( client != null )
            {
                client.shutdown();
            }
            cachedMaster = Pair.<Master, Machine>of( null, Machine.NO_MACHINE );
        }
    }
View Full Code Here

Examples of org.neo4j.kernel.ha.zookeeper.ClusterManager.shutdown()

            throw new ComException(
                    "Master couldn't be found from cluster managed by " + from );
        }
        finally
        {
            clusterManager.shutdown();
        }
    }
}
View Full Code Here

Examples of org.neo4j.kernel.impl.batchinsert.BatchInserter.shutdown()

            long second = inserter.createNode( nodeProperties );
            inserter.createRelationship( first, second, TYPE, relationshipProperties );
            if ( i > 0 && i % 1000000 == 0 ) System.out.println( (i/1000000) + "M" );
            first = second;
        }
        inserter.shutdown();
        System.out.println( "Switch to embedded" );
       
        // Then create the rest with embedded graph db.
        GraphDatabaseService db = new EmbeddedGraphDatabase( PATH );
        Node firstNode = db.getNodeById( first );
View Full Code Here

Examples of org.neo4j.kernel.impl.batchinsert.BatchInserterImpl.shutdown()

            long second = inserter.createNode( nodeProperties );
            inserter.createRelationship( first, second, TYPE, relationshipProperties );
            if ( i > 0 && i % 1000000 == 0 ) System.out.println( (i/1000000) + "M" );
            first = second;
        }
        inserter.shutdown();
        System.out.println( "Switch to embedded" );
       
        // Then create the rest with embedded graph db.
        GraphDatabaseService db = new EmbeddedGraphDatabase( PATH );
        Node firstNode = db.getNodeById( first );
View Full Code Here

Examples of org.neo4j.test.ImpermanentGraphDatabase.shutdown()

//        tracking.detachProcedure(procedureId);
//       
//        tracking.detachEmergency(emergencyId);
//       

        myDb.shutdown();
        srv.stop();
       

    }
}
View Full Code Here

Examples of org.neo4j.unsafe.batchinsert.BatchInserter.shutdown()

    // START SNIPPET: importOsm
    OSMImporter importer = new OSMImporter("map.osm");
    importer.setCharset(Charset.forName("UTF-8"));
    BatchInserter batchInserter = BatchInserters.inserter(databasePath);
    importer.importFile(batchInserter, "map.osm", false);
    batchInserter.shutdown();

    GraphDatabaseService db = new GraphDatabaseFactory().newEmbeddedDatabase(databasePath);
    importer.reIndex(db);
    db.shutdown();
    // END SNIPPET: importOsm
View Full Code Here

Examples of org.neo4j.unsafe.batchinsert.BatchInserterIndexProvider.shutdown()

                    graphNode.handlePostEvent();
                }
            }

            // Shutdown Batch inserter
            indexProvider.shutdown();
            inserter.shutdown();

            // Restore Graph Database service
            factory.setConnection((GraphDatabaseService) factory.createPoolOrConnection());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.