org.elasticsearch.common.component
Interface LifecycleComponent<T>
- All Superinterfaces:
- CloseableComponent
- All Known Subinterfaces:
- ClusterService, Discovery, Gateway, HttpServerTransport, IndicesService, Transport, ZenPing
- All Known Implementing Classes:
- AbstractLifecycleComponent, BlobStoreGateway, DiscoveryService, FsGateway, GatewayService, HttpServer, IndexingMemoryBufferController, IndicesClusterStateService, InternalClusterService, InternalIndicesService, JvmMonitorService, LocalDiscovery, LocalGateway, LocalTransport, MonitorService, MulticastZenPing, NettyHttpServerTransport, NettyTransport, NoneGateway, RestController, RiverClusterService, RiversManager, RiversRouter, RiversService, RoutingService, SearchService, SharedStorageGateway, TransportService, UnicastZenPing, ZenDiscovery, ZenPingService
public interface LifecycleComponent<T>
- extends CloseableComponent
lifecycleState
Lifecycle.State lifecycleState()
addLifecycleListener
void addLifecycleListener(LifecycleListener listener)
removeLifecycleListener
void removeLifecycleListener(LifecycleListener listener)
start
T start()
throws ElasticSearchException
- Throws:
ElasticSearchException
stop
T stop()
throws ElasticSearchException
- Throws:
ElasticSearchException