@Override
  public void destroy() throws FalconException {
    Services.get()
        .<WorkflowJobEndNotificationService>getService(
            WorkflowJobEndNotificationService.SERVICE_NAME)
        .unregisterListener(this);

    LOG.info("Shutting down graph db");
    graph.shutdown();
  }
  private void cleanupGraphStore(Graph graph) {
    for (Edge edge : graph.getEdges()) {
      graph.removeEdge(edge);
    }

    for (Vertex vertex : graph.getVertices()) {
      graph.removeVertex(vertex);
    }

    graph.shutdown();
  }
Пример #3
0
 /** Close the delegate graph. */
 public void close() {
   delegate.shutdown();
 }