public class ElasticsearchServer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
_configuration |
| Constructor and Description |
|---|
ElasticsearchServer(Map<String,String> configuration)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkServerStatus()
Check the server status
|
protected boolean |
deleteRecursively(File root)
Delete recursively
|
protected boolean |
deleteRecursively(File root,
boolean deleteRoot)
Delete the supplied
File - for directories, recursively
delete any nested directories or files as well. |
org.elasticsearch.client.Client |
getClient()
Get client
|
protected org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus |
getHealthStatus()
Returns the cluster health status
|
protected static String |
getValue(Map<String,String> map,
String key)
Get s property value
|
protected int |
maxOpenFiles(File testDir)
Gets max open files
|
void |
start()
Start the server
|
void |
stop()
Stop the server
|
public void start()
public void stop()
public org.elasticsearch.client.Client getClient()
protected int maxOpenFiles(File testDir)
testDir - The directoryprotected boolean deleteRecursively(File root)
root - The root directoryprotected boolean deleteRecursively(File root, boolean deleteRoot)
File - for directories, recursively
delete any nested directories or files as well.root - the root File to deletedeleteRoot - whether or not to delete the root itself or just the
content of the root.true if the File was deleted, otherwise
falseprotected org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus getHealthStatus()
protected void checkServerStatus()
Copyright © 2017 City of Paris. All rights reserved.