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 TypeMethodDescriptionvoidclose()Shutdowns properly the service, this method is not a public API.intintprotected voidinitializeAndRun(String[] args) static voidvoidrunFromConfig(ServerConfig config) Run from a ServerConfig.protected voidprotected voidshutdown()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:
IOExceptionAdminServer.AdminServerException
-
shutdown
protected void shutdown()Shutdown the serving instance -
getClientPort
public int getClientPort() -
getSecureClientPort
public int getSecureClientPort() -
close
public void close()Shutdowns properly the service, this method is not a public API. -
serverStarted
protected void serverStarted()
-