Package blobit.server

Class ServletHttpServer

  • All Implemented Interfaces:
    org.apache.bookkeeper.http.HttpServer

    public class ServletHttpServer
    extends Object
    implements org.apache.bookkeeper.http.HttpServer
    Simple Bookie HttpServer implementation as standard Servlet. In order to use this HttpServer implementation you have to start an instance of ServletHttpServerServlet and map it to '/'.
    • Constructor Detail

      • ServletHttpServer

        public ServletHttpServer()
    • Method Detail

      • getBookie

        public static org.apache.bookkeeper.http.HttpServiceProvider getBookie()
        Open the access to the Bookie to other components inside the same JVM.
        Returns:
        the bookie or null.
      • initialize

        public void initialize​(org.apache.bookkeeper.http.HttpServiceProvider service)
        Specified by:
        initialize in interface org.apache.bookkeeper.http.HttpServer
      • startServer

        public boolean startServer​(int i)
        Specified by:
        startServer in interface org.apache.bookkeeper.http.HttpServer
      • startServer

        public boolean startServer​(int i,
                                   String s)
        Specified by:
        startServer in interface org.apache.bookkeeper.http.HttpServer
      • startServer

        public boolean startServer​(int i,
                                   String s,
                                   org.apache.bookkeeper.http.HttpServerConfiguration httpServerConfiguration)
        Specified by:
        startServer in interface org.apache.bookkeeper.http.HttpServer
      • stopServer

        public void stopServer()
        Specified by:
        stopServer in interface org.apache.bookkeeper.http.HttpServer
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface org.apache.bookkeeper.http.HttpServer