org.elasticsearch.indices
Interface IndicesService

All Superinterfaces:
CloseableComponent, java.lang.Iterable<IndexService>, LifecycleComponent<IndicesService>
All Known Implementing Classes:
InternalIndicesService

@ThreadSafe
public interface IndicesService
extends java.lang.Iterable<IndexService>, LifecycleComponent<IndicesService>


Method Summary
 boolean changesAllowed()
          Returns true if changes (adding / removing) indices, shards and so on are allowed.
 void cleanIndex(java.lang.String index)
          Cleans the index without actually deleting any content for it.
 IndexService createIndex(java.lang.String index, Settings settings, java.lang.String localNodeId)
           
 void deleteIndex(java.lang.String index)
           
 boolean hasIndex(java.lang.String index)
           
 IndexService indexService(java.lang.String index)
           
 IndexService indexServiceSafe(java.lang.String index)
           
 java.util.Set<java.lang.String> indices()
           
 IndicesLifecycle indicesLifecycle()
           
 IndicesStats stats()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent
close
 

Method Detail

changesAllowed

boolean changesAllowed()
Returns true if changes (adding / removing) indices, shards and so on are allowed.


stats

IndicesStats stats()

hasIndex

boolean hasIndex(java.lang.String index)

indicesLifecycle

IndicesLifecycle indicesLifecycle()

indices

java.util.Set<java.lang.String> indices()

indexService

IndexService indexService(java.lang.String index)

indexServiceSafe

IndexService indexServiceSafe(java.lang.String index)
                              throws IndexMissingException
Throws:
IndexMissingException

createIndex

IndexService createIndex(java.lang.String index,
                         Settings settings,
                         java.lang.String localNodeId)
                         throws ElasticSearchException
Throws:
ElasticSearchException

deleteIndex

void deleteIndex(java.lang.String index)
                 throws ElasticSearchException
Throws:
ElasticSearchException

cleanIndex

void cleanIndex(java.lang.String index)
                throws ElasticSearchException
Cleans the index without actually deleting any content for it.

Throws:
ElasticSearchException