Package org.apache.zookeeper.server
Class ZooKeeperServerMain
- java.lang.Object
-
- org.apache.zookeeper.server.ZooKeeperServerMain
-
@Public public class ZooKeeperServerMain extends java.lang.Object
This class starts and runs a standalone ZooKeeperServer.
-
-
Constructor Summary
Constructors Constructor Description ZooKeeperServerMain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Shutdowns properly the service, this method is not a public API.protected void
initializeAndRun(java.lang.String[] args)
static void
main(java.lang.String[] args)
void
runFromConfig(ServerConfig config)
Run from a ServerConfig.protected void
serverStarted()
protected void
shutdown()
Shutdown the serving instance
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
initializeAndRun
protected void initializeAndRun(java.lang.String[] args) throws QuorumPeerConfig.ConfigException, java.io.IOException, AdminServer.AdminServerException
- Throws:
QuorumPeerConfig.ConfigException
java.io.IOException
AdminServer.AdminServerException
-
runFromConfig
public void runFromConfig(ServerConfig config) throws java.io.IOException, AdminServer.AdminServerException
Run from a ServerConfig.- Parameters:
config
- ServerConfig to use.- Throws:
java.io.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()
-
-