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 properlyIOException
public void runFromConfig(ZookeeperConfig config) throws IOException
config
- ServerConfig to use.IOException
public void stop()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.