Class ServerLifecycleComponent
- java.lang.Object
-
- org.apache.bookkeeper.common.component.AbstractComponent<ConfT>
-
- org.apache.bookkeeper.common.component.AbstractLifecycleComponent<BookieConfiguration>
-
- org.apache.bookkeeper.server.component.ServerLifecycleComponent
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,LifecycleComponent
- Direct Known Subclasses:
AutoRecoveryService
,BookieService
,HttpService
,ScrubberService
,StatsProviderService
@Evolving public abstract class ServerLifecycleComponent extends AbstractLifecycleComponent<BookieConfiguration>
ALifecycleComponent
that runs on a bookie server. It can be loaded via reflections.
-
-
Field Summary
-
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 Modifier Constructor Description protected
ServerLifecycleComponent(java.lang.String componentName, BookieConfiguration conf, StatsLogger statsLogger)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<ServerLifecycleComponent>
loadServerComponents(java.lang.String[] componentClassNames, BookieConfiguration conf, StatsLogger statsLogger)
(package private) static ServerLifecycleComponent
newComponent(java.lang.Class<? extends ServerLifecycleComponent> theCls, BookieConfiguration conf, StatsLogger statsLogger)
-
Methods inherited from class org.apache.bookkeeper.common.component.AbstractLifecycleComponent
addLifecycleListener, close, doClose, doStart, doStop, 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, publishInfo
-
-
-
-
Constructor Detail
-
ServerLifecycleComponent
protected ServerLifecycleComponent(java.lang.String componentName, BookieConfiguration conf, StatsLogger statsLogger)
-
-
Method Detail
-
loadServerComponents
public static java.util.List<ServerLifecycleComponent> loadServerComponents(java.lang.String[] componentClassNames, BookieConfiguration conf, StatsLogger statsLogger)
-
newComponent
static ServerLifecycleComponent newComponent(java.lang.Class<? extends ServerLifecycleComponent> theCls, BookieConfiguration conf, StatsLogger statsLogger)
-
-