public class TransportClientFactory extends Object implements ESClientFactory
| Constructor and Description |
|---|
TransportClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.client.Client |
client(String logName)
Returns a client.
|
void |
setClusterName(String clusterName) |
void |
setElasticSearchHosts(String string) |
void |
setIgnoreClusterName(boolean ignoreClusterName) |
void |
setImplicitHttpToJavaPort(boolean implicitHttpToJavaPort) |
void |
setTransportAddresses(UrlProvider... transportAddresses) |
void |
shutdown() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclientpublic org.elasticsearch.client.Client client(String logName)
ESClientFactoryclient in interface ESClientFactorypublic void setElasticSearchHosts(String string)
public void setTransportAddresses(UrlProvider... transportAddresses)
public void setClusterName(String clusterName)
public void setImplicitHttpToJavaPort(boolean implicitHttpToJavaPort)
public void setIgnoreClusterName(boolean ignoreClusterName)
@PreDestroy public void shutdown()
Copyright © 2020. All rights reserved.