public class InProcessZookeeper extends Object implements AutoCloseable
A local Zookeeper instance available for testing. java
try (InProcessZookeeper zk = new InProcessZookeeper) {
// Run Tests...
}
Constructor and Description |
---|
InProcessZookeeper() |
public long getPort()
Get port.
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2020 The Apache Software Foundation. All rights reserved.