org.elasticsearch.indices
Interface IndicesService

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

public interface IndicesService
extends Iterable<IndexService>, LifecycleComponent<IndicesService>


Method Summary
 boolean changesAllowed()
          Returns true if changes (adding / removing) indices, shards and so on are allowed.
 void cleanIndex(String index, String reason)
          Cleans the index without actually deleting any content for it.
 IndexService createIndex(String index, Settings settings, String localNodeId)
           
 void deleteIndex(String index, String reason)
           
 boolean hasIndex(String index)
           
 IndexService indexService(String index)
           
 IndexService indexServiceSafe(String index)
           
 Set<String> indices()
           
 IndicesLifecycle indicesLifecycle()
           
 NodeIndicesStats stats(boolean includePrevious)
          Returns the node stats indices 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

NodeIndicesStats stats(boolean includePrevious)
Returns the node stats indices stats. The includePrevious flag controls if old shards stats will be aggregated as well (only for relevant stats, such as refresh and indexing, not for docs/store).


hasIndex

boolean hasIndex(String index)

indicesLifecycle

IndicesLifecycle indicesLifecycle()

indices

Set<String> indices()

indexService

IndexService indexService(String index)

indexServiceSafe

IndexService indexServiceSafe(String index)
                              throws IndexMissingException
Throws:
IndexMissingException

createIndex

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

deleteIndex

void deleteIndex(String index,
                 String reason)
                 throws ElasticSearchException
Throws:
ElasticSearchException

cleanIndex

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

Throws:
ElasticSearchException


Copyright © 2009-2012. All Rights Reserved.