public class Indexer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Indexer.DateHistogramInterval |
static class |
Indexer.TermsStatsOrder |
| Constructor and Description |
|---|
Indexer(Configuration configuration,
Searches.Factory searchesFactory,
Counts.Factory countsFactory,
Cluster.Factory clusterFactory,
Indices.Factory indicesFactory,
com.ning.http.client.AsyncHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bulkIndex(List<Message> messages) |
Cluster |
cluster() |
Counts |
counts() |
boolean |
cycleAlias(String aliasName,
String targetIndex) |
boolean |
cycleAlias(String aliasName,
String targetIndex,
String oldIndex) |
org.elasticsearch.client.Client |
getClient() |
LinkedBlockingQueue<List<DeadLetter>> |
getDeadLetterQueue() |
org.elasticsearch.node.Node |
getNode() |
Indices |
indices() |
boolean |
isConnectedAndHealthy()
Check if the Elasticsearch
Node is connected and that the cluster health status
is not ClusterHealthStatus.RED. |
Messages |
messages() |
String |
nodeIdToHostName(String nodeId) |
String |
nodeIdToName(String nodeId) |
Searches |
searches() |
void |
start() |
public static final String TYPE
public Indexer(Configuration configuration, Searches.Factory searchesFactory, Counts.Factory countsFactory, Cluster.Factory clusterFactory, Indices.Factory indicesFactory, com.ning.http.client.AsyncHttpClient httpClient)
public void start()
public org.elasticsearch.client.Client getClient()
public Searches searches()
public Counts counts()
public Messages messages()
public Cluster cluster()
public Indices indices()
public boolean isConnectedAndHealthy()
Node is connected and that the cluster health status
is not ClusterHealthStatus.RED.true if the Elasticsearch client is up and the cluster is healthy, false otherwisepublic LinkedBlockingQueue<List<DeadLetter>> getDeadLetterQueue()
public org.elasticsearch.node.Node getNode()
Copyright © 2012–2014 TORCH GmbH. All rights reserved.