@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 |
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()
public void close()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.