public class ElasticSearchServer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
_configuration |
| Constructor and Description |
|---|
ElasticSearchServer(Map<String,String> configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkServerStatus()
Wait for the ES server to reach at least YELLOW state.
|
protected boolean |
deleteRecursively(File root) |
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() |
protected org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus |
getHealthStatus() |
protected static String |
getValue(Map<String,String> map,
String key) |
protected int |
maxOpenFiles(File testDir) |
void |
setRecoveryWait(String recoveryWait) |
void |
start() |
void |
stop() |
public void start()
public void stop()
public org.elasticsearch.client.Client getClient()
protected int maxOpenFiles(File testDir)
protected boolean deleteRecursively(File root)
protected 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()
public void setRecoveryWait(String recoveryWait)
Copyright © 2015. All rights reserved.