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>
Methods inherited from interface java.lang.Iterable |
iterator |
changesAllowed
boolean changesAllowed()
- Returns true if changes (adding / removing) indices, shards and so on are allowed.
stats
NodeIndicesStats 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,
java.lang.String reason)
throws ElasticSearchException
- Throws:
ElasticSearchException
cleanIndex
void cleanIndex(java.lang.String index,
java.lang.String reason)
throws ElasticSearchException
- Cleans the index without actually deleting any content for it.
- Throws:
ElasticSearchException