@Singleton public class Indices extends Object implements IndexManagement
Constructor and Description |
---|
Indices(org.elasticsearch.node.Node node,
ElasticsearchConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
boolean |
aliasExists(String alias) |
String |
aliasTarget(String alias) |
String |
allIndicesAlias() |
protected Boolean |
checkForReopened(org.elasticsearch.cluster.metadata.IndexMetaData metaData) |
void |
close(String indexName) |
boolean |
create(String indexName) |
boolean |
cycleAlias(String aliasName,
String targetIndex) |
boolean |
cycleAlias(String aliasName,
String targetIndex,
String oldIndex) |
void |
delete(String indexName) |
boolean |
exists(String index) |
void |
flush(String index) |
Map<String,org.elasticsearch.action.admin.indices.stats.IndexStats> |
getAll() |
Set<String> |
getAllMessageFields() |
Set<String> |
getClosedIndices() |
IndexStatistics |
getIndexStats(String index) |
com.google.common.collect.ImmutableMap<String,org.elasticsearch.cluster.metadata.IndexMetaData> |
getMetadata() |
Set<String> |
getReopenedIndices() |
long |
getTotalNumberOfMessages() |
long |
getTotalSize() |
boolean |
isReopened(String indexName) |
void |
move(String source,
String target) |
long |
numberOfMessages(String indexName) |
void |
optimizeIndex(String index) |
void |
reopenIndex(String index) |
void |
setReadOnly(String index) |
@Inject public Indices(org.elasticsearch.node.Node node, ElasticsearchConfiguration configuration)
public void delete(String indexName)
delete
in interface IndexManagement
public void close(String indexName)
close
in interface IndexManagement
public long numberOfMessages(String indexName) throws IndexNotFoundException
IndexNotFoundException
public long getTotalNumberOfMessages()
public long getTotalSize()
public String allIndicesAlias()
public boolean exists(String index)
public boolean aliasExists(String alias)
public boolean create(String indexName)
public com.google.common.collect.ImmutableMap<String,org.elasticsearch.cluster.metadata.IndexMetaData> getMetadata()
public void setReadOnly(String index)
public void flush(String index)
public void reopenIndex(String index)
public boolean isReopened(String indexName)
protected Boolean checkForReopened(org.elasticsearch.cluster.metadata.IndexMetaData metaData)
public IndexStatistics getIndexStats(String index)
public void optimizeIndex(String index)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.