public class ElasticsearchClientManager extends Object
Constructor and Description |
---|
ElasticsearchClientManager(ElasticsearchConfiguration elasticsearchConfiguration) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.elasticsearch.client.Client |
getClient()
***********************************************************************************
Get the Client for this return, it is actually a transport client, but it is much
easier to work with the generic object as this interface likely won't change from
elasticsearch.
|
org.elasticsearch.client.Client |
getClient(String clusterName) |
ElasticsearchConfiguration |
getElasticsearchConfiguration() |
org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse |
getStatus() |
int |
hashCode() |
boolean |
isOnOrAfterVersion(org.elasticsearch.Version version) |
boolean |
refresh(String index) |
boolean |
refresh(String[] indexes) |
void |
start() |
void |
stop() |
String |
toString() |
public ElasticsearchClientManager(ElasticsearchConfiguration elasticsearchConfiguration)
public ElasticsearchConfiguration getElasticsearchConfiguration()
public org.elasticsearch.client.Client getClient()
public org.elasticsearch.client.Client getClient(String clusterName)
public boolean isOnOrAfterVersion(org.elasticsearch.Version version)
public boolean refresh(String index)
public boolean refresh(String[] indexes)
public void stop()
public org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse getStatus() throws ExecutionException, InterruptedException
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.