Package net.scharrenbach.zookeeper.test

Examples of net.scharrenbach.zookeeper.test.ZooKeeperServerRunnable


      // Note: The Kafka Runnable must be created before the ZooKeeper
      // Runnable when using shutdown hooks.
      final KafkaServerRunnable kafkaServerRunnable = KafkaServerRunnable
          .newInstance(kafkaConfigFile, true);
      final ZooKeeperServerRunnable zooKeeperServerRunnable = ZooKeeperServerRunnable
          .newInstance(zooKeeperConfig, true);

      final Thread kafkaThread = new Thread(kafkaServerRunnable);
      final Thread zkThread = new Thread(zooKeeperServerRunnable);
      zkThread.start();
View Full Code Here


            zooKeeperDataDir);
        delete(zooKeeperDataDir);
      }
      assert (!zooKeeperDataDir.exists());

      final ZooKeeperServerRunnable zooKeeperServerRunnable = ZooKeeperServerRunnable
          .newInstance(zooKeeperConfig, true);

      final Thread zkThread = new Thread(zooKeeperServerRunnable);
      zkThread.start();
      Thread.sleep(1000);
View Full Code Here

TOP

Related Classes of net.scharrenbach.zookeeper.test.ZooKeeperServerRunnable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.