Class MetaDataIndexTemplateService
java.lang.Object
org.elasticsearch.cluster.metadata.MetaDataIndexTemplateService
public class MetaDataIndexTemplateService
extends java.lang.Object
Service responsible for submitting index templates updates
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MetaDataIndexTemplateService.PutListener
static class
MetaDataIndexTemplateService.PutRequest
static class
MetaDataIndexTemplateService.PutResponse
static interface
MetaDataIndexTemplateService.RemoveListener
static class
MetaDataIndexTemplateService.RemoveRequest
static class
MetaDataIndexTemplateService.RemoveResponse
-
Constructor Summary
Constructors Constructor Description MetaDataIndexTemplateService(ClusterService clusterService, MetaDataCreateIndexService metaDataCreateIndexService, AliasValidator aliasValidator, IndicesService indicesService, IndexScopedSettings indexScopedSettings, NamedXContentRegistry xContentRegistry)
-
Method Summary
Modifier and Type Method Description static java.util.List<IndexTemplateMetaData>
findTemplates(MetaData metaData, java.lang.String indexName)
Finds index templates whose index pattern matched with the given index name.void
putTemplate(MetaDataIndexTemplateService.PutRequest request, MetaDataIndexTemplateService.PutListener listener)
void
removeTemplates(MetaDataIndexTemplateService.RemoveRequest request, MetaDataIndexTemplateService.RemoveListener listener)
-
Constructor Details
-
MetaDataIndexTemplateService
@Inject public MetaDataIndexTemplateService(ClusterService clusterService, MetaDataCreateIndexService metaDataCreateIndexService, AliasValidator aliasValidator, IndicesService indicesService, IndexScopedSettings indexScopedSettings, NamedXContentRegistry xContentRegistry)
-
-
Method Details
-
removeTemplates
public void removeTemplates(MetaDataIndexTemplateService.RemoveRequest request, MetaDataIndexTemplateService.RemoveListener listener) -
putTemplate
public void putTemplate(MetaDataIndexTemplateService.PutRequest request, MetaDataIndexTemplateService.PutListener listener) -
findTemplates
public static java.util.List<IndexTemplateMetaData> findTemplates(MetaData metaData, java.lang.String indexName)Finds index templates whose index pattern matched with the given index name. The result is sorted byIndexTemplateMetaData.order
descending.
-