Package org.opensearch.common.component
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
,FsHealthService
,FsRepository
,GatewayService
,HierarchyCircuitBreakerService
,IndicesClusterStateService
,IndicesService
,JvmGcMonitorService
,MasterService
,MeteredBlobStoreRepository
,MonitorService
,NodeConnectionsService
,NoneCircuitBreakerService
,PeerRecoverySourceService
,RepositoriesService
,SearchService
,SeedHostsResolver
,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()
-
Method Details
-
lifecycleState
Lifecycle.State lifecycleState() -
addLifecycleListener
-
removeLifecycleListener
-
start
void start() -
stop
void stop()
-