Exemplo n.º 1
0
 /** Destroys the helper by cleaning all the in memory objects. */
 public void destroy() {
   if (graphPool != null) {
     for (OrientBaseGraph graph : graphPool.getResources()) {
       graph.shutdown();
     }
     graphPool.close();
   }
 }
Exemplo n.º 2
0
 public void releaseGraph(final OrientBaseGraph iGraph) {
   checkStatus();
   graphPool.returnResource(iGraph);
 }
Exemplo n.º 3
0
 public OrientGraph acquireGraph(final ODatabaseDocumentTx iDatabase) {
   checkStatus();
   return (OrientGraph) ((OrientGraph) graphPool.getResource(iDatabase, timeout));
 }