Exemple #1
0
 private static void shutdownSensei() {
   try {
     broker.shutdown();
   } catch (Throwable t) {
   }
   try {
     httpRestSenseiService.shutdown();
   } catch (Throwable t) {
   }
   try {
     node1.shutdown();
   } catch (Throwable t) {
   }
   try {
     httpServer1.stop();
   } catch (Throwable t) {
   }
   try {
     node2.shutdown();
   } catch (Throwable t) {
   }
   try {
     httpServer2.stop();
   } catch (Throwable t) {
   }
   try {
     networkClient.shutdown();
   } catch (Throwable t) {
   }
   try {
     clusterClient.shutdown();
   } catch (Throwable t) {
   }
   rmrf(new File(IndexDir));
 }
 @Override
 public void destroy() {
   if (_senseiServer != null) {
     _senseiServer.shutdown();
   }
   super.destroy();
 }