Class 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 server BookieServer.

    • Field Detail

      • BK_OPTS

        static final org.apache.commons.cli.Options BK_OPTS
    • Constructor Detail

      • Main

        public Main()
    • 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