public interface IndicesAdapter
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
aliases(String indexPattern) |
boolean |
aliasExists(String alias) |
void |
close(String indexName) |
Set<String> |
closedIndices(Collection<String> indices) |
void |
create(String indexName,
IndexSettings indexSettings,
String templateName,
Map<String,Object> template) |
void |
cycleAlias(String aliasName,
String targetIndex) |
void |
cycleAlias(String aliasName,
String targetIndex,
String oldIndex) |
void |
delete(String indexName) |
boolean |
deleteIndexTemplate(String templateName) |
boolean |
ensureIndexTemplate(String templateName,
Map<String,Object> template) |
boolean |
exists(String indexName) |
Map<String,Set<String>> |
fieldsInIndices(String[] writeIndexWildcards) |
void |
flush(String index) |
com.fasterxml.jackson.databind.JsonNode |
getIndexStats(Collection<String> index) |
Optional<IndexStatistics> |
getIndexStats(String index) |
Optional<org.joda.time.DateTime> |
indexCreationDate(String index) |
IndexRangeStats |
indexRangeStatsOfIndex(String index) |
Set<String> |
indices(String indexWildcard,
List<String> status,
String id) |
Set<IndexStatistics> |
indicesStats(Collection<String> indices) |
boolean |
isClosed(String index) |
boolean |
isOpen(String index) |
void |
markIndexReopened(String index) |
void |
move(String source,
String target,
Consumer<IndexMoveResult> resultCallback) |
long |
numberOfMessages(String indexName) |
void |
openIndex(String index) |
void |
optimizeIndex(String index,
int maxNumSegments,
com.github.joschi.jadconfig.util.Duration timeout) |
void |
removeAlias(String indexName,
String alias) |
void |
removeAliases(Set<String> indices,
String alias) |
Set<String> |
resolveAlias(String alias) |
void |
setReadOnly(String index) |
Optional<Long> |
storeSizeInBytes(String index) |
void |
updateIndexMapping(String indexName,
String mappingType,
Map<String,Object> mapping)
Add fields to an existing index or to change search only settings of existing fields
|
HealthStatus |
waitForRecovery(String index) |
HealthStatus |
waitForRecovery(String index,
int timeout) |
void move(String source, String target, Consumer<IndexMoveResult> resultCallback)
void delete(String indexName)
void create(String indexName, IndexSettings indexSettings, String templateName, Map<String,Object> template)
void updateIndexMapping(@Nonnull String indexName, @Nonnull String mappingType, @Nonnull Map<String,Object> mapping)
indexName - existing index namemappingType - target mapping type (e.g. message). Not relevant for ES7+ (will be simply ignored).mapping - field mappingsvoid openIndex(String index)
void setReadOnly(String index)
void flush(String index)
void markIndexReopened(String index)
void close(String indexName)
long numberOfMessages(String indexName)
boolean aliasExists(String alias) throws IOException
IOExceptionboolean deleteIndexTemplate(String templateName)
Set<String> closedIndices(Collection<String> indices)
Set<IndexStatistics> indicesStats(Collection<String> indices)
Optional<IndexStatistics> getIndexStats(String index)
com.fasterxml.jackson.databind.JsonNode getIndexStats(Collection<String> index)
boolean exists(String indexName) throws IOException
IOExceptionvoid optimizeIndex(String index, int maxNumSegments, com.github.joschi.jadconfig.util.Duration timeout)
IndexRangeStats indexRangeStatsOfIndex(String index)
HealthStatus waitForRecovery(String index)
HealthStatus waitForRecovery(String index, int timeout)
boolean isOpen(String index)
boolean isClosed(String index)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.