Class TemplateUpgradeService
java.lang.Object
org.elasticsearch.cluster.metadata.TemplateUpgradeService
- All Implemented Interfaces:
ClusterStateListener
public class TemplateUpgradeService extends java.lang.Object implements ClusterStateListener
Upgrades Templates on behalf of installed
Plugin
s when a node joins the cluster-
Field Summary
Fields Modifier and Type Field Description Client
client
ClusterService
clusterService
ThreadPool
threadPool
-
Constructor Summary
Constructors Constructor Description TemplateUpgradeService(Client client, ClusterService clusterService, ThreadPool threadPool, java.util.Collection<java.util.function.UnaryOperator<java.util.Map<java.lang.String,IndexTemplateMetaData>>> indexTemplateMetaDataUpgraders)
-
Method Summary
Modifier and Type Method Description void
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.
-
Field Details
-
Constructor Details
-
TemplateUpgradeService
public TemplateUpgradeService(Client client, ClusterService clusterService, ThreadPool threadPool, java.util.Collection<java.util.function.UnaryOperator<java.util.Map<java.lang.String,IndexTemplateMetaData>>> indexTemplateMetaDataUpgraders)
-
-
Method Details
-
clusterChanged
Description copied from interface:ClusterStateListener
Called when cluster state changes.- Specified by:
clusterChanged
in interfaceClusterStateListener
-