Interface LifecycleComponent
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,Releasable
- All Known Subinterfaces:
Discovery
,HttpServerTransport
,Repository
,Transport
- All Known Implementing Classes:
AbstractHttpServerTransport
,AbstractLifecycleComponent
,BlobStoreRepository
,CircuitBreakerService
,ClusterApplierService
,ClusterService
,Coordinator
,DelayedAllocationService
,FilterRepository
,FsRepository
,GatewayService
,HierarchyCircuitBreakerService
,IndicesClusterStateService
,IndicesService
,JvmGcMonitorService
,MasterService
,MonitorService
,NodeConnectionsService
,NoneCircuitBreakerService
,ResourceWatcherService
,RoutingService
,SearchService
,SeedHostsResolver
,SingleNodeDiscovery
,SnapshotShardsService
,SnapshotsService
,TcpTransport
,TransportService
,ZenDiscovery
public interface LifecycleComponent extends Releasable
-
-
Method Summary
Modifier and Type Method Description void
addLifecycleListener(LifecycleListener listener)
Lifecycle.State
lifecycleState()
void
removeLifecycleListener(LifecycleListener listener)
void
start()
void
stop()
-
Methods inherited from interface org.elasticsearch.common.lease.Releasable
close
-
-
-
-
Method Detail
-
lifecycleState
Lifecycle.State lifecycleState()
-
addLifecycleListener
void addLifecycleListener(LifecycleListener listener)
-
removeLifecycleListener
void removeLifecycleListener(LifecycleListener listener)
-
start
void start()
-
stop
void stop()
-
-