java.lang.Object
org.elasticsearch.shutdown.PluginShutdownService
- All Implemented Interfaces:
- ClusterStateListener
The 
PluginShutdownService is used for the node shutdown infrastructure to signal to
 plugins that a shutdown is occurring, and to check whether it is safe to shut down.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled when cluster state changes.booleanreadyToShutdown(String nodeId, SingleNodeShutdownMetadata.Type shutdownType) Check with registered plugins whether the shutdown is safe for the given node id and typeshutdownNodes(ClusterState clusterState) Return all nodes shutting down from the given cluster stateshutdownTypeNodes(ClusterState clusterState, SingleNodeShutdownMetadata.Type... shutdownTypes) Return all nodes shutting down with the given shutdown types from the given cluster statevoidsignalShutdown(ClusterState state) Signal to plugins the nodes that are currently shutting down
- 
Field Details- 
plugins
 
- 
- 
Constructor Details- 
PluginShutdownService
 
- 
- 
Method Details- 
shutdownNodesReturn all nodes shutting down from the given cluster state
- 
shutdownTypeNodespublic static Set<String> shutdownTypeNodes(ClusterState clusterState, SingleNodeShutdownMetadata.Type... shutdownTypes) Return all nodes shutting down with the given shutdown types from the given cluster state
- 
readyToShutdownCheck with registered plugins whether the shutdown is safe for the given node id and type
- 
signalShutdownSignal to plugins the nodes that are currently shutting down
- 
clusterChangedDescription copied from interface:ClusterStateListenerCalled when cluster state changes.Cluster states are applied one-by-one which means they can be a performance bottleneck. Implementations of this method should therefore be fast, so please consider forking work into the background rather than doing everything inline. - Specified by:
- clusterChangedin interface- ClusterStateListener
 
 
-