public class EmbeddedElasticsearchServer extends Object implements ESStatisticsServer
Netty4Plugin
plugin 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 |
---|
EmbeddedElasticsearchServer() |
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 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.