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>
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.