@InterfaceAudience.Public public class ZooKeeperServerMain extends Object
Constructor and Description |
---|
ZooKeeperServerMain() |
Modifier and Type | Method and Description |
---|---|
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
|
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.IOException
AdminServer.AdminServerException
protected void shutdown()
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.