org.apache.zookeeper.server
Class ZooKeeperServerMain
java.lang.Object
org.apache.zookeeper.server.ZooKeeperServerMain
public class ZooKeeperServerMain
- extends 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(String[] args)
initializeAndRun
protected void initializeAndRun(String[] args)
throws QuorumPeerConfig.ConfigException,
IOException
- Throws:
QuorumPeerConfig.ConfigException
IOException
runFromConfig
public void runFromConfig(ServerConfig config)
throws IOException
- Run from a ServerConfig.
- Parameters:
config
- ServerConfig to use.
- Throws:
IOException
shutdown
protected void shutdown()
- Shutdown the serving instance