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, 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


Method Summary
 void addLifecycleListener(LifecycleListener listener)
           
 Lifecycle.State lifecycleState()
           
 void removeLifecycleListener(LifecycleListener listener)
           
 T start()
           
 T stop()
           
 
Methods inherited from interface org.elasticsearch.util.component.CloseableComponent
close
 

Method Detail

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