Package org.apache.storm.testing
Class InProcessZookeeper
java.lang.Object
org.apache.storm.testing.InProcessZookeeper
- All Implemented Interfaces:
AutoCloseable
A local Zookeeper instance available for testing.
```java
try (InProcessZookeeper zk = new InProcessZookeeper) {
// Run Tests...
}
```
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
InProcessZookeeper
- Throws:
Exception
-
-
Method Details
-
getPort
public long getPort()Get port.- Returns:
- the port ZK is listening on (localhost)
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-