Package org.apache.bookkeeper.server
Class Main
java.lang.Object
org.apache.bookkeeper.server.Main
A bookie server is a server that run bookie and serving rpc requests.
It is a rewritten server using LifecycleComponent,
replacing the legacy server BookieServer.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.apache.commons.cli.Options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LifecycleComponentStackBuild the bookie server.(package private) static intstatic void
-
Field Details
-
BK_OPTS
static final org.apache.commons.cli.Options BK_OPTS
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
-
doMain
-
buildBookieServer
Build the bookie server.The sequence of the components is:
- stats provider - bookie server - autorecovery daemon - http service
- Parameters:
conf- bookie server configuration- Returns:
- lifecycle stack
- Throws:
Exception
-
storageDirectoriesFromConf
- Throws:
IOException
-