public class InProcessZooKeeperRunner extends DefaultImmutableClassesGiraphConfigurable implements ZooKeeperRunner
| Modifier and Type | Class and Description |
|---|---|
static class |
InProcessZooKeeperRunner.ZooKeeperServerRunner
Wrapper around zookeeper service.
|
| Constructor and Description |
|---|
InProcessZooKeeperRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Does necessary cleanup after zookeeper job is complete.
|
int |
start(String zkDir,
ZookeeperConfig config)
Starts zookeeper service in specified working directory with
specified config file.
|
void |
stop()
Stops zookeeper.
|
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfsetConfpublic int start(String zkDir, ZookeeperConfig config) throws IOException
ZooKeeperRunnerstart in interface ZooKeeperRunnerzkDir - working directoryconfig - zookeeper configurationIOExceptionpublic void stop()
ZooKeeperRunnerstop in interface ZooKeeperRunnerpublic void cleanup()
ZooKeeperRunnercleanup in interface ZooKeeperRunnerCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.