public interface IndexSetRegistry extends Iterable<IndexSet>
Modifier and Type | Method and Description |
---|---|
Optional<IndexSet> |
get(String indexSetId)
Returns the
IndexSet for the given ID. |
Set<IndexSet> |
getAll()
Returns a list of all
IndexSet instances. |
IndexSet |
getDefault()
Returns the
IndexSet that is marked as default. |
Optional<IndexSet> |
getForIndex(String index)
Returns the
IndexSet for the given index. |
Set<IndexSet> |
getForIndices(Collection<String> indices)
Returns the
IndexSet s for the given indices. |
String[] |
getIndexWildcards()
Returns the list of all index wildcards.
|
String[] |
getManagedIndices()
Returns a list of all managed indices.
|
String[] |
getWriteIndexAliases()
Returns the list of all write index aliases.
|
boolean |
isCurrentWriteIndex(String index)
Checks if the given index is a current write index in any
IndexSet . |
boolean |
isCurrentWriteIndexAlias(String indexName)
Checks if the given index name is a current write index alias in any
IndexSet . |
Map<String,Boolean> |
isManagedIndex(Collection<String> indices)
Checks if the given indices are managed by any index set.
|
boolean |
isManagedIndex(String index)
Checks if the given index is managed by any index set.
|
boolean |
isUp()
Checks if all deflector aliases exist.
|
forEach, iterator, spliterator
Optional<IndexSet> get(String indexSetId)
IndexSet
for the given ID.indexSetId
- ID of the index setOptional<IndexSet> getForIndex(String index)
IndexSet
for the given index.index
- name of the indexSet<IndexSet> getForIndices(Collection<String> indices)
IndexSet
s for the given indices.indices
- Collection with the name of the indiciesIndexSet getDefault()
IndexSet
that is marked as default.
Throws an IllegalStateException
if the default index set does not exist.String[] getManagedIndices()
boolean isManagedIndex(String index)
index
- the index name to checkMap<String,Boolean> isManagedIndex(Collection<String> indices)
indices
- the index names to checkString[] getIndexWildcards()
String[] getWriteIndexAliases()
boolean isUp()
boolean isCurrentWriteIndexAlias(String indexName)
IndexSet
.indexName
- the name of the index to checkboolean isCurrentWriteIndex(String index) throws TooManyAliasesException
IndexSet
.index
- the index name to checkTooManyAliasesException
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.