@Singleton public class Indices extends Object implements IndexManagement
| Constructor and Description |
|---|
Indices(org.elasticsearch.client.Client client,
ElasticsearchConfiguration configuration,
IndexMapping indexMapping) |
| 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) |
Set<String> |
getReopenedIndices() |
org.joda.time.DateTime |
indexCreationDate(String index) |
boolean |
isReadOnly(String index) |
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) |
void |
setReadWrite(String index) |
org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus |
waitForRecovery(String index) |
org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus |
waitForStatus(String index,
org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus clusterHealthStatus) |
@Inject
public Indices(org.elasticsearch.client.Client client,
ElasticsearchConfiguration configuration,
IndexMapping indexMapping)
public void delete(String indexName)
delete in interface IndexManagementpublic void close(String indexName)
close in interface IndexManagementpublic long numberOfMessages(String indexName) throws IndexNotFoundException
IndexNotFoundExceptionpublic String allIndicesAlias()
public boolean exists(String index)
public boolean aliasExists(String alias)
public boolean create(String indexName)
public void setReadOnly(String index)
public boolean isReadOnly(String index)
public void setReadWrite(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)
public org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus waitForRecovery(String index)
public org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus waitForStatus(String index, org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus clusterHealthStatus)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.