Example #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();
   }
 }
Example #2
0
 public void releaseGraph(final OrientBaseGraph iGraph) {
   checkStatus();
   graphPool.returnResource(iGraph);
 }
Example #3
0
 public OrientGraph acquireGraph(final ODatabaseDocumentTx iDatabase) {
   checkStatus();
   return (OrientGraph) ((OrientGraph) graphPool.getResource(iDatabase, timeout));
 }