public interface ZooKeeperTestManager
| Modifier and Type | Method and Description |
|---|---|
void |
awaitDown(int timeout,
TimeUnit timeunit)
Await zookeeper not able to serve requests.
|
void |
awaitUp(long timeout,
TimeUnit timeunit)
Await zookeeper successfully serving requests.
|
void |
close()
Tear down zookeeper.
|
String |
connectString()
Get a connection string for this zk cluster.
|
org.apache.curator.framework.CuratorFramework |
curator()
Get a curator client connected to this cluster.
|
void |
ensure(String path)
Ensure a path.
|
void |
start()
Start zookeeper.
|
void |
stop()
Stop zookeeper.
|
void start()
void stop() throws InterruptedException
InterruptedException - If the thread is interrupted.void ensure(String path) throws Exception
path - The path to ensure.Exception - If an unexpected exception occurs.void close()
throws InterruptedException
InterruptedException - If the thread is interrupted.String connectString()
org.apache.curator.framework.CuratorFramework curator()
void awaitUp(long timeout,
TimeUnit timeunit)
throws TimeoutException
timeout - The timeout value.timeunit - The time unit.TimeoutException - If the operation times out.void awaitDown(int timeout,
TimeUnit timeunit)
throws TimeoutException
timeout - The timeout value.timeunit - The timeout unit.TimeoutException - If the operation times out.Copyright © 2015. All rights reserved.