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() |
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 LinkedBlockingQueue<List<DeadLetter>> getDeadLetterQueue()
public org.elasticsearch.node.Node getNode()
Copyright © 2014. All Rights Reserved.