public class ZookeeperResource
extends org.junit.rules.ExternalResource
| Modifier and Type | Class and Description |
|---|---|
static class |
ZookeeperResource.Starter |
| Constructor and Description |
|---|
ZookeeperResource(int curatorPort,
boolean initializeOnce) |
ZookeeperResource(int curatorPort,
boolean initializeOnce,
java.util.function.Consumer<ZookeeperResource.Starter> initializer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
org.apache.curator.framework.CuratorFramework |
curator() |
int |
curatorPort() |
void |
deleteAllNodes() |
void |
deleteData(java.lang.String path) |
public ZookeeperResource(int curatorPort,
boolean initializeOnce)
public ZookeeperResource(int curatorPort,
boolean initializeOnce,
java.util.function.Consumer<ZookeeperResource.Starter> initializer)
public org.apache.curator.framework.CuratorFramework curator()
public int curatorPort()
protected void before()
throws java.lang.Throwable
before in class org.junit.rules.ExternalResourcejava.lang.Throwableprotected void after()
after in class org.junit.rules.ExternalResourcepublic void deleteData(java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionpublic void deleteAllNodes()
throws java.lang.Exception
java.lang.Exception