Examples of shutdown()


Examples of com.tinkerpop.blueprints.IndexableGraph.shutdown()

            counter++;
            assertEquals(itty.next().getProperty("name"), "marko");
        }
        assertEquals(counter, 1);

        graph.shutdown();
    }

    private String getWorkingDirectory() {
        String directory = this.computeTestDataRoot().getAbsolutePath();
        deleteDirectory(new File(directory));
View Full Code Here

Examples of com.tinkerpop.blueprints.KeyIndexableGraph.shutdown()

            assertEquals(graph.getEdges("date", 2012).iterator().next(), edge);
            graph.createKeyIndex("date", Edge.class);
            assertEquals(count(graph.getEdges("date", 2012)), 1);
            assertEquals(graph.getEdges("date", 2012).iterator().next(), edge);
        }
        graph.shutdown();
    }

    public void testNoConcurrentModificationException() {
        KeyIndexableGraph graph = (KeyIndexableGraph) graphTest.generateGraph();
        if (graph.getFeatures().supportsEdgeKeyIndex) {
View Full Code Here

Examples of com.tinkerpop.blueprints.TransactionalGraph.shutdown()

        assertTrue(((SparkseeGraph) graph).getRawSession(false) == null);
        graph.commit();
        assertTrue(((SparkseeGraph) graph).getRawSession(false) == null);

        graph.addVertex(null);
        graph.shutdown();
        assertTrue(((SparkseeGraph) graph).getRawSession(false) == null);
        printPerformance(graph.toString(), null, "testTx", this.stopWatch());
        graph.shutdown();
    }
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph.shutdown()

        assertNotNull(graph.getVertex(1L));
        assertNull(graph.getVertex(100L));
        assertNull(graph.getEdge(100L));

        graph.shutdown();
    }

    public void testAddingVerticesWithUserIdsThenSettingProperties() {
        List<Long> ids = new ArrayList<Long>(Arrays.asList(100L, 5L, 10L, 4L, 10000L));
        final String directory = this.getWorkingDirectory();
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph.shutdown()

                assertEquals(e.getLabel(), "created");
                counter++;
            }
        }
        assertEquals(counter, 2);
        graph.shutdown();
    }

    public void testIndexParameters() throws Exception {
        final String directory = this.getWorkingDirectory();
        final Neo4j2BatchGraph batch = new Neo4j2BatchGraph(directory);
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.shutdown()

        product = graph.addVertex("class:Product");

        fishing = graph.addVertex("class:Hobby");
        fishing.setProperty("name", "Fishing");
      } finally {
        graph.shutdown();
      }

      vertices = new OrientVertex[serverInstance.size()];
      for (int i = 0; i < vertices.length; ++i) {
        final String nodeName = serverInstance.get(i).getServerInstance().getDistributedManager().getLocalNodeName();
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.orient.OrientGraph.shutdown()

          } catch (OValidationException e) {
            // EXPECTED
          }
        }
      } finally {
        g.shutdown();
      }
    }
  }
}
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx.shutdown()

        graphNoTx.createEdgeType("Knows");
        graphNoTx.createEdgeType("Buy");
        graphNoTx.createEdgeType("Loves");
      } finally {
        graphNoTx.shutdown();
      }

      final OrientVertex product;
      final OrientVertex fishing;
View Full Code Here

Examples of com.tinkerpop.blueprints.pgm.impls.orientdb.OrientGraph.shutdown()

    final long startTime = System.currentTimeMillis();

    g.setTransactionMode(Mode.MANUAL);

    GraphMLReader.inputGraph(g, new FileInputStream(inputFile), 100000, null, null, null);
    g.shutdown();

    System.out.println("Imported in " + (System.currentTimeMillis() - startTime) + "ms. Vertexes: "
        + g.getRawGraph().countVertexes() + " Edges: " + g.getRawGraph().countEdges());

  }
View Full Code Here

Examples of com.tinkerpop.blueprints.pgm.impls.sail.SailGraph.shutdown()

      @Override
      public void run() {
        try {
          System.out.println("Shutting down...");
          server.stop();
          sail.shutdown();
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
        });
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.