public class MetaDataCreateIndexService extends AbstractComponent
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_INDEX_NAME_BYTES |
componentSettings, logger, settings| Constructor and Description |
|---|
MetaDataCreateIndexService(Settings settings,
Environment environment,
ThreadPool threadPool,
ClusterService clusterService,
IndicesService indicesService,
AllocationService allocationService,
MetaDataService metaDataService,
Version version,
String riverIndexName,
AliasValidator aliasValidator,
Set<IndexTemplateFilter> indexTemplateFilters,
NodeEnvironment nodeEnv) |
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(CreateIndexClusterStateUpdateRequest request,
ActionListener<ClusterStateUpdateResponse> listener) |
void |
validateIndexName(String index,
ClusterState state) |
void |
validateIndexSettings(String indexName,
Settings settings,
ClusterState state) |
nodeNamepublic static final int MAX_INDEX_NAME_BYTES
@Inject public MetaDataCreateIndexService(Settings settings, Environment environment, ThreadPool threadPool, ClusterService clusterService, IndicesService indicesService, AllocationService allocationService, MetaDataService metaDataService, Version version, @RiverIndexName String riverIndexName, AliasValidator aliasValidator, Set<IndexTemplateFilter> indexTemplateFilters, NodeEnvironment nodeEnv)
public void createIndex(CreateIndexClusterStateUpdateRequest request, ActionListener<ClusterStateUpdateResponse> listener)
public void validateIndexName(String index, ClusterState state) throws ElasticsearchException
ElasticsearchExceptionpublic void validateIndexSettings(String indexName, Settings settings, ClusterState state) throws IndexCreationException
IndexCreationExceptionCopyright © 2009–2016. All rights reserved.