Package org.apache.bookkeeper.server
Class Main
- java.lang.Object
-
- org.apache.bookkeeper.server.Main
-
public class Main extends java.lang.Object
A bookie server is a server that run bookie and serving rpc requests.It is a rewritten server using
LifecycleComponent
, replacing the legacy serverBookieServer
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.apache.commons.cli.Options
BK_OPTS
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LifecycleComponentStack
buildBookieServer(BookieConfiguration conf)
Build the bookie server.(package private) static int
doMain(java.lang.String[] args)
static void
main(java.lang.String[] args)
static java.util.List<java.io.File>
storageDirectoriesFromConf(ServerConfiguration conf)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
doMain
static int doMain(java.lang.String[] args)
-
buildBookieServer
public static LifecycleComponentStack buildBookieServer(BookieConfiguration conf) throws java.lang.Exception
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:
java.lang.Exception
-
storageDirectoriesFromConf
public static java.util.List<java.io.File> storageDirectoriesFromConf(ServerConfiguration conf) throws java.io.IOException
- Throws:
java.io.IOException
-
-