org.elasticsearch.util.component
Interface LifecycleComponent<T>
- All Superinterfaces:
- CloseableComponent
- All Known Subinterfaces:
- ClusterService, Discovery, Gateway, HttpServerTransport, IndicesService, MemoryMonitor, Transport, ZenPing
- All Known Implementing Classes:
- AbstractLifecycleComponent, AlphaMemoryMonitor, DiscoveryService, FsGateway, GatewayService, HttpClientService, HttpServer, IndicesClusterStateService, InternalClusterService, InternalIndicesService, JvmMonitorService, LocalDiscovery, LocalTransport, MemoryMonitorService, MonitorService, MulticastZenPing, NettyHttpServerTransport, NettyTransport, NoneGateway, RestController, RoutingService, SearchService, 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