Class TestingZooKeeperServer

    • Constructor Detail

      • TestingZooKeeperServer

        public TestingZooKeeperServer​(QuorumConfigBuilder configBuilder,
                                      int thisInstanceIndex)
    • Method Detail

      • getQuorumPeer

        public org.apache.zookeeper.server.quorum.QuorumPeer getQuorumPeer()
      • kill

        public void kill()
      • restart

        public void restart()
                     throws Exception
        Restart the server. If the server is running it will be stopped and then started again. If it is not running (in a LATENT or STOPPED state) then it will be restarted. If it is in a CLOSED state then an exception will be thrown.