public static class InProcessZooKeeperRunner.ZooKeeperServerRunner extends Object
| Constructor and Description |
|---|
ZooKeeperServerRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
runFromConfig(ZookeeperConfig config)
Run from a ServerConfig.
|
int |
start(ZookeeperConfig config)
Start zookeeper service.
|
void |
stop()
Stop zookeeper service.
|
public int start(ZookeeperConfig config) throws IOException
config - zookeeper configuration
formatted properlyIOExceptionpublic void runFromConfig(ZookeeperConfig config) throws IOException
config - ServerConfig to use.IOExceptionpublic void stop()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.