org.apache.zookeeper.server
Class ZooKeeperServerMain

java.lang.Object
  extended by org.apache.zookeeper.server.ZooKeeperServerMain

public class ZooKeeperServerMain
extends Object

This class starts and runs a standalone ZooKeeperServer.


Constructor Summary
ZooKeeperServerMain()
           
 
Method Summary
protected  void initializeAndRun(String[] args)
           
static void main(String[] args)
           
 void runFromConfig(ServerConfig config)
          Run from a ServerConfig.
protected  void shutdown()
          Shutdown the serving instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZooKeeperServerMain

public ZooKeeperServerMain()
Method Detail

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



Copyright © 2011 The Apache Software Foundation