Class HttpService
- java.lang.Object
-
- org.apache.bookkeeper.common.component.AbstractComponent<ConfT>
-
- org.apache.bookkeeper.common.component.AbstractLifecycleComponent<BookieConfiguration>
-
- org.apache.bookkeeper.server.component.ServerLifecycleComponent
-
- org.apache.bookkeeper.server.service.HttpService
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,LifecycleComponent
public class HttpService extends ServerLifecycleComponent
AServerLifecycleComponent
that runs http service.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
Fields inherited from class org.apache.bookkeeper.common.component.AbstractLifecycleComponent
lifecycle, statsLogger, uncaughtExceptionHandler
-
Fields inherited from class org.apache.bookkeeper.common.component.AbstractComponent
componentName, conf
-
-
Constructor Summary
Constructors Constructor Description HttpService(BKHttpServiceProvider provider, BookieConfiguration conf, StatsLogger statsLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doClose()
protected void
doStart()
protected void
doStop()
void
publishInfo(ComponentInfoPublisher componentInfoPublisher)
-
Methods inherited from class org.apache.bookkeeper.server.component.ServerLifecycleComponent
loadServerComponents
-
Methods inherited from class org.apache.bookkeeper.common.component.AbstractLifecycleComponent
addLifecycleListener, close, getStatsLogger, lifecycleState, removeLifecycleListener, setExceptionHandler, start, stop
-
Methods inherited from class org.apache.bookkeeper.common.component.AbstractComponent
getConf, getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.bookkeeper.common.component.LifecycleComponent
getName
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpService
public HttpService(BKHttpServiceProvider provider, BookieConfiguration conf, StatsLogger statsLogger)
-
-
Method Detail
-
doStart
protected void doStart()
- Specified by:
doStart
in classAbstractLifecycleComponent<BookieConfiguration>
-
doStop
protected void doStop()
- Specified by:
doStop
in classAbstractLifecycleComponent<BookieConfiguration>
-
doClose
protected void doClose() throws java.io.IOException
- Specified by:
doClose
in classAbstractLifecycleComponent<BookieConfiguration>
- Throws:
java.io.IOException
-
publishInfo
public void publishInfo(ComponentInfoPublisher componentInfoPublisher)
-
-