Package org.elasticsearch.shutdown
Class PluginShutdownService
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.boolean
nodeId, SingleNodeShutdownMetadata.Type shutdownType)
Check with registered plugins whether the shutdown is safe for the given node id and typestatic <>
shutdownNodes(ClusterState clusterState)
Return all nodes shutting down from the given cluster statestatic <>
shutdownTypeNodes(ClusterState clusterState, SingleNodeShutdownMetadata.Type shutdownType)
Return all nodes shutting down with the given shutdown type from the given cluster statevoid
signalShutdown(ClusterState state)
Signal to plugins the nodes that are currently shutting downMethods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
plugins
-
-
Constructor Details
-
PluginShutdownService
-
-
Method Details
-
shutdownNodes
Return all nodes shutting down from the given cluster state -
shutdownTypeNodes
public static <> shutdownTypeNodes(ClusterState clusterState, SingleNodeShutdownMetadata.Type shutdownType)Return all nodes shutting down with the given shutdown type from the given cluster state -
readyToShutdown
Check with registered plugins whether the shutdown is safe for the given node id and type -
signalShutdown
Signal to plugins the nodes that are currently shutting down -
clusterChanged
Description copied from interface:ClusterStateListener
Called when cluster state changes.- Specified by:
clusterChanged
in interfaceClusterStateListener
-