public class TemplateUpgradeService extends AbstractComponent implements ClusterStateListener
Plugins when a node joins the cluster| Modifier and Type | Field and Description |
|---|---|
Client |
client |
ClusterService |
clusterService |
ThreadPool |
threadPool |
deprecationLogger, logger, settings| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
void |
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.
|
logDeprecatedSetting, logRemovedSetting, nodeNamepublic final ClusterService clusterService
public final ThreadPool threadPool
public final Client client
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)
public void clusterChanged(ClusterChangedEvent event)
ClusterStateListenerclusterChanged in interface ClusterStateListener