java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, ReleasableBlobStoreRepository, CircuitBreakerService, ClusterApplierService, ClusterService, DelayedAllocationService, GatewayService, IndicesClusterStateService, IndicesService, JvmGcMonitorService, MasterService, MonitorService, NodeConnectionsService, ResourceWatcherService, RoutingService, SearchService, SingleNodeDiscovery, SnapshotShardsService, SnapshotsService, TcpTransport, TransportService, ZenDiscoverypublic abstract class AbstractLifecycleComponent extends AbstractComponent implements LifecycleComponent
| Modifier and Type | Field | Description |
|---|---|---|
protected Lifecycle |
lifecycle |
deprecationLogger, logger, settings| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractLifecycleComponent(Settings settings) |
|
protected |
AbstractLifecycleComponent(Settings settings,
java.lang.Class customClass) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addLifecycleListener(LifecycleListener listener) |
|
void |
close() |
|
protected abstract void |
doClose() |
|
protected abstract void |
doStart() |
|
protected abstract void |
doStop() |
|
Lifecycle.State |
lifecycleState() |
|
void |
removeLifecycleListener(LifecycleListener listener) |
|
void |
start() |
|
void |
stop() |
logDeprecatedSetting, logRemovedSetting, nodeNameprotected final Lifecycle lifecycle
protected AbstractLifecycleComponent(Settings settings)
protected AbstractLifecycleComponent(Settings settings, java.lang.Class customClass)
public Lifecycle.State lifecycleState()
lifecycleState in interface LifecycleComponentpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface LifecycleComponentpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface LifecycleComponentpublic void start()
start in interface LifecycleComponentprotected abstract void doStart()
public void stop()
stop in interface LifecycleComponentprotected abstract void doStop()
public void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in interface Releasableprotected abstract void doClose()
throws java.io.IOException
java.io.IOException