Package blobit.server
Class ServletHttpServer
- java.lang.Object
-
- blobit.server.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 ofServletHttpServerServletand map it to '/'.
-
-
Constructor Summary
Constructors Constructor Description ServletHttpServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.bookkeeper.http.HttpServiceProvidergetBookie()Open the access to the Bookie to other components inside the same JVM.voidinitialize(org.apache.bookkeeper.http.HttpServiceProvider service)booleanisRunning()booleanstartServer(int i)booleanstartServer(int i, String s)booleanstartServer(int i, String s, org.apache.bookkeeper.http.HttpServerConfiguration httpServerConfiguration)voidstopServer()
-
-
-
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:
initializein interfaceorg.apache.bookkeeper.http.HttpServer
-
startServer
public boolean startServer(int i)
- Specified by:
startServerin interfaceorg.apache.bookkeeper.http.HttpServer
-
startServer
public boolean startServer(int i, String s)- Specified by:
startServerin interfaceorg.apache.bookkeeper.http.HttpServer
-
startServer
public boolean startServer(int i, String s, org.apache.bookkeeper.http.HttpServerConfiguration httpServerConfiguration)- Specified by:
startServerin interfaceorg.apache.bookkeeper.http.HttpServer
-
stopServer
public void stopServer()
- Specified by:
stopServerin interfaceorg.apache.bookkeeper.http.HttpServer
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceorg.apache.bookkeeper.http.HttpServer
-
-