org.elasticsearch.cluster.metadata
Class MetaDataService

java.lang.Object
  extended by org.elasticsearch.util.component.AbstractComponent
      extended by org.elasticsearch.cluster.metadata.MetaDataService

public class MetaDataService
extends AbstractComponent


Nested Class Summary
static class MetaDataService.CreateIndexResult
           
static class MetaDataService.DeleteIndexResult
           
static class MetaDataService.IndicesAliasesResult
           
static class MetaDataService.PutMappingResult
          The result of a putting mapping.
 
Field Summary
 
Fields inherited from class org.elasticsearch.util.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
MetaDataService(Settings settings, Environment environment, ClusterService clusterService, IndicesService indicesService, ShardsRoutingStrategy shardsRoutingStrategy, NodeIndexCreatedAction nodeIndexCreatedAction, NodeIndexDeletedAction nodeIndexDeletedAction, NodeMappingCreatedAction nodeMappingCreatedAction)
           
 
Method Summary
 MetaDataService.CreateIndexResult createIndex(java.lang.String cause, java.lang.String index, Settings indexSettings, java.util.Map<java.lang.String,java.lang.String> mappings, TimeValue timeout)
           
 MetaDataService.DeleteIndexResult deleteIndex(java.lang.String index, TimeValue timeout)
           
 MetaDataService.IndicesAliasesResult indicesAliases(java.util.List<AliasAction> aliasActions)
           
 MetaDataService.PutMappingResult putMapping(java.lang.String[] indices, java.lang.String mappingType, java.lang.String mappingSource, boolean ignoreConflicts, TimeValue timeout)
           
 void updateMapping(java.lang.String index, java.lang.String type, java.lang.String mappingSource)
           
 
Methods inherited from class org.elasticsearch.util.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataService

@Inject
public MetaDataService(Settings settings,
                              Environment environment,
                              ClusterService clusterService,
                              IndicesService indicesService,
                              ShardsRoutingStrategy shardsRoutingStrategy,
                              NodeIndexCreatedAction nodeIndexCreatedAction,
                              NodeIndexDeletedAction nodeIndexDeletedAction,
                              NodeMappingCreatedAction nodeMappingCreatedAction)
Method Detail

indicesAliases

public MetaDataService.IndicesAliasesResult indicesAliases(java.util.List<AliasAction> aliasActions)

createIndex

public MetaDataService.CreateIndexResult createIndex(java.lang.String cause,
                                                     java.lang.String index,
                                                     Settings indexSettings,
                                                     java.util.Map<java.lang.String,java.lang.String> mappings,
                                                     TimeValue timeout)
                                              throws IndexAlreadyExistsException
Throws:
IndexAlreadyExistsException

deleteIndex

public MetaDataService.DeleteIndexResult deleteIndex(java.lang.String index,
                                                     TimeValue timeout)
                                              throws IndexMissingException
Throws:
IndexMissingException

updateMapping

public void updateMapping(java.lang.String index,
                          java.lang.String type,
                          java.lang.String mappingSource)

putMapping

public MetaDataService.PutMappingResult putMapping(java.lang.String[] indices,
                                                   java.lang.String mappingType,
                                                   java.lang.String mappingSource,
                                                   boolean ignoreConflicts,
                                                   TimeValue timeout)
                                            throws ElasticSearchException
Throws:
ElasticSearchException