@InterfaceAudience.Public public class ZooKeeperServerMain extends Object
| Constructor and Description |
|---|
ZooKeeperServerMain() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdowns properly the service, this method is not a public API.
|
protected void |
initializeAndRun(String[] args) |
static void |
main(String[] args) |
void |
runFromConfig(ServerConfig config)
Run from a ServerConfig.
|
protected void |
serverStarted() |
protected void |
shutdown()
Shutdown the serving instance
|
public static void main(String[] args)
protected void initializeAndRun(String[] args) throws QuorumPeerConfig.ConfigException, IOException, AdminServer.AdminServerException
public void runFromConfig(ServerConfig config) throws IOException, AdminServer.AdminServerException
config - ServerConfig to use.IOExceptionAdminServer.AdminServerExceptionprotected void shutdown()
public void close()
protected void serverStarted()
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.