Package com.tinkerpop.blueprints.impls.orient

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


  public Iterable<Vertex> getVertices(final String key, final Object value) {
    final OrientBaseGraph g = acquire();
    try {
      return g.getVertices(key, value);
    } finally {
      g.shutdown();
    }
  }

  public Edge addEdgeByVerticesKeys(final Object iOutVertex, final Object iInVertex, final String iEdgeLabel) {
    beginAsynchOperation();
View Full Code Here


                      + maxRetries + ") Thread: " + Thread.currentThread().getId());
              e.printStackTrace();
            }
          }
        } finally {
          g.shutdown();
          endAsynchOperation();
        }
      }
    }));
  }
View Full Code Here

                      + maxRetries + ") Thread: " + Thread.currentThread().getId());
              e.printStackTrace();
            }
          }
        } finally {
          g.shutdown();
          endAsynchOperation();
        }
      }
    }));
  }
View Full Code Here

  public Edge getEdge(final Object id) {
    final OrientBaseGraph g = acquire();
    try {
      return g.getEdge(id);
    } finally {
      g.shutdown();
    }
  }

  @Override
  public void removeEdge(final Edge edge) {
View Full Code Here

      public Object call() throws Exception {
        final OrientBaseGraph g = acquire();
        try {
          g.removeEdge(edge);
        } finally {
          g.shutdown();
          endAsynchOperation();
        }
        return null;
      }
    });
View Full Code Here

  public Iterable<Edge> getEdges() {
    final OrientBaseGraph g = acquire();
    try {
      return g.getEdges();
    } finally {
      g.shutdown();
    }
  }

  @Override
  public Iterable<Edge> getEdges(final String key, final Object value) {
View Full Code Here

    final OrientBaseGraph g = acquire();
    try {
      return g.getEdges(key, value);
    } finally {
      g.shutdown();
    }
  }

  @Override
  public void drop() {
View Full Code Here

  public void drop() {
    final OrientBaseGraph g = acquire();
    try {
      g.drop();
    } finally {
      g.shutdown();
    }
  }

  @Override
  public OrientVertex addTemporaryVertex(final String iClassName, final Object... prop) {
View Full Code Here

  public OrientVertex addTemporaryVertex(final String iClassName, final Object... prop) {
    final OrientBaseGraph g = acquire();
    try {
      return g.addTemporaryVertex(iClassName, prop);
    } finally {
      g.shutdown();
    }
  }

  @Override
  public OrientVertexType getVertexBaseType() {
View Full Code Here

  public OrientVertexType getVertexBaseType() {
    final OrientBaseGraph g = acquire();
    try {
      return g.getVertexBaseType();
    } finally {
      g.shutdown();
    }
  }

  @Override
  public OrientVertexType getVertexType(final String iClassName) {
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.