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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
InProcessZookeeper- Throws:
- Exception
 
 
- 
- 
Method Details- 
getPortpublic long getPort()Get port.- Returns:
- the port ZK is listening on (localhost)
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- Exception
 
 
-