Example #1
0
 public static void shutDownZooKeeper() throws IOException, InterruptedException {
   cnxnFactory.shutdown();
   cnxnFactory.join();
   if (zooKeeper.isRunning()) {
     zooKeeper.shutdown();
   }
 }
 @Override
 public void stop() throws Exception {
   cnxnFactory.shutdown();
   cnxnFactory.join();
   if (zkServer.isRunning()) {
     zkServer.shutdown();
   }
 }