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:
AutoCloseable,LifecycleComponent
- Direct Known Subclasses:
AutoRecoveryService,BookieService,HttpService,ScrubberService,StatsProviderService
@Evolving
public abstract class ServerLifecycleComponent
extends AbstractLifecycleComponent<BookieConfiguration>
A
LifecycleComponent 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, uncaughtExceptionHandlerFields inherited from class org.apache.bookkeeper.common.component.AbstractComponent
componentName, conf -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerLifecycleComponent(String componentName, BookieConfiguration conf, StatsLogger statsLogger) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ServerLifecycleComponent>loadServerComponents(String[] componentClassNames, BookieConfiguration conf, StatsLogger statsLogger) (package private) static ServerLifecycleComponentnewComponent(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, stopMethods inherited from class org.apache.bookkeeper.common.component.AbstractComponent
getConf, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.bookkeeper.common.component.LifecycleComponent
getName, publishInfo
-
Constructor Details
-
ServerLifecycleComponent
protected ServerLifecycleComponent(String componentName, BookieConfiguration conf, StatsLogger statsLogger)
-
-
Method Details
-
loadServerComponents
public static List<ServerLifecycleComponent> loadServerComponents(String[] componentClassNames, BookieConfiguration conf, StatsLogger statsLogger) -
newComponent
static ServerLifecycleComponent newComponent(Class<? extends ServerLifecycleComponent> theCls, BookieConfiguration conf, StatsLogger statsLogger)
-