Class TemplateUpgradeService
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- org.elasticsearch.cluster.metadata.TemplateUpgradeService
-
- All Implemented Interfaces:
ClusterStateListener
public class TemplateUpgradeService extends AbstractComponent implements ClusterStateListener
Upgrades Templates on behalf of installedPlugins when a node joins the cluster
-
-
Field Summary
Fields Modifier and Type Field Description ClientclientClusterServiceclusterServiceThreadPoolthreadPool-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
deprecationLogger, logger, settings
-
-
Constructor Summary
Constructors Constructor Description TemplateUpgradeService(Settings settings, Client client, ClusterService clusterService, ThreadPool threadPool, java.util.Collection<java.util.function.UnaryOperator<java.util.Map<java.lang.String,IndexTemplateMetaData>>> indexTemplateMetaDataUpgraders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclusterChanged(ClusterChangedEvent event)Called when cluster state changes.-
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
-
-
-
-
Field Detail
-
clusterService
public final ClusterService clusterService
-
threadPool
public final ThreadPool threadPool
-
client
public final Client client
-
-
Constructor Detail
-
TemplateUpgradeService
public TemplateUpgradeService(Settings settings, Client client, ClusterService clusterService, ThreadPool threadPool, java.util.Collection<java.util.function.UnaryOperator<java.util.Map<java.lang.String,IndexTemplateMetaData>>> indexTemplateMetaDataUpgraders)
-
-
Method Detail
-
clusterChanged
public void clusterChanged(ClusterChangedEvent event)
Description copied from interface:ClusterStateListenerCalled when cluster state changes.- Specified by:
clusterChangedin interfaceClusterStateListener
-
-