794795796797798799800801802803804
final OrientBaseGraph g = acquire(); try { return g.command(iCommand); } finally { g.shutdown(); } } public long countVertices() { final OrientBaseGraph g = acquire();
803804805806807808809810811812813
public long countVertices() { final OrientBaseGraph g = acquire(); try { return g.countVertices(); } finally { g.shutdown(); } } @Override public long countVertices(String iClassName) {
814815816817818819820821822823824
final OrientBaseGraph g = acquire(); try { return g.countVertices(iClassName); } finally { g.shutdown(); } } public long countEdges() {
824825826827828829830831832833834
final OrientBaseGraph g = acquire(); try { return g.countEdges(); } finally { g.shutdown(); } } @Override public long countEdges(String iClassName) {
835836837838839840841842843844845
final OrientBaseGraph g = acquire(); try { return g.countEdges(iClassName); } finally { g.shutdown(); } } public <V> V execute(final OCallable<V, OrientBaseGraph> iCallable) { final OrientBaseGraph graph = acquire();
844845846847848849850851852853854
public <V> V execute(final OCallable<V, OrientBaseGraph> iCallable) { final OrientBaseGraph graph = acquire(); try { return iCallable.call(graph); } finally { graph.shutdown(); } } public int getMaxPoolSize() { return maxPoolSize;
191192193194195196197198199200201
case ERROR: throw e; } } } finally { g.shutdown(); endAsynchOperation(); } } })); }
213214215216217218219220221222223
verticesCreated.incrementAndGet(); return v; } finally { g.shutdown(); endAsynchOperation(); } } })); }
234235236237238239240241242243244
verticesCreated.incrementAndGet(); return v; } finally { g.shutdown(); } } @Override public Vertex addVertex(final Object id) {