org.apache.zookeeper.server
Class ZooKeeperServerMain
java.lang.Object
org.apache.zookeeper.server.ZooKeeperServerMain
public class ZooKeeperServerMain
- extends java.lang.Object
This class starts and runs a standalone ZooKeeperServer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZooKeeperServerMain
public ZooKeeperServerMain()
main
public static void main(java.lang.String[] args)
initializeAndRun
protected void initializeAndRun(java.lang.String[] args)
throws QuorumPeerConfig.ConfigException,
java.io.IOException
- Throws:
QuorumPeerConfig.ConfigException
java.io.IOException
runFromConfig
public void runFromConfig(ServerConfig config)
throws java.io.IOException
- Run from a ServerConfig.
- Parameters:
config
- ServerConfig to use.
- Throws:
java.io.IOException
shutdown
protected void shutdown()
- Shutdown the serving instance
Copyright © 2012 The Apache Software Foundation