Package org.apache.zookeeper.server
Class ZooKeeperServerMain
java.lang.Object
org.apache.zookeeper.server.ZooKeeperServerMain
This class starts and runs a standalone ZooKeeperServer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Shutdowns properly the service, this method is not a public API.protected void
initializeAndRun
(String[] args) static void
void
runFromConfig
(ServerConfig config) Run from a ServerConfig.protected void
protected void
shutdown()
Shutdown the serving instance
-
Constructor Details
-
ZooKeeperServerMain
public ZooKeeperServerMain()
-
-
Method Details
-
main
-
initializeAndRun
protected void initializeAndRun(String[] args) throws QuorumPeerConfig.ConfigException, IOException, AdminServer.AdminServerException -
runFromConfig
Run from a ServerConfig.- Parameters:
config
- ServerConfig to use.- Throws:
IOException
AdminServer.AdminServerException
-
shutdown
protected void shutdown()Shutdown the serving instance -
close
public void close()Shutdowns properly the service, this method is not a public API. -
serverStarted
protected void serverStarted()
-