public class ExternalElasticsearchServer extends Object implements ESStatisticsServer
ESMinTransportClient
which only have Netty4Plugin
pre-installed. In order to use additional plugins, required libraries must be added to the classpath and following
property set must be specified in spring configuration.
<property name="classpathPlugins">
<list>
<value>org.elasticsearch.transport.Netty3Plugin</value>
</list>
</property>
Constructor and Description |
---|
ExternalElasticsearchServer() |
ExternalElasticsearchServer(Map<String,Integer> addresses,
String esClusterName) |
ExternalElasticsearchServer(String esClusterName) |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.client.Client |
getClient()
Retrieves the elasticsearch client to be used for connecting to the server
|
void |
setClasspathPlugins(Collection<Class<? extends org.elasticsearch.plugins.Plugin>> classpathPlugins) |
void |
start(String confDir)
Initializes the Statistics Server
|
void |
stop()
Destroys the Statistics Server
|
public ExternalElasticsearchServer()
public ExternalElasticsearchServer(String esClusterName)
public void setClasspathPlugins(Collection<Class<? extends org.elasticsearch.plugins.Plugin>> classpathPlugins)
public void start(String confDir)
ESStatisticsServer
start
in interface ESStatisticsServer
confDir
- Path of the base configuration directory to be used by this statistics serverpublic org.elasticsearch.client.Client getClient()
ESStatisticsServer
getClient
in interface ESStatisticsServer
public void stop()
ESStatisticsServer
stop
in interface ESStatisticsServer
Copyright © 2016–2019 AdroitLogic. All rights reserved.