I want to control starting and stopping elasticsearch with Java. Is there an easy / good way to do this?
We are trying to deploy ElasticSearch in our product, and we want to save an instance of ElasticSearch on our client machine in our own product, and now it all depends on whether the ElasticSearch instance started with es.bat or something else.
How can anyone give me an example of how to mock some code around the Jest API for ElasticSearch, so that I can unit test our stuff that calls ElasticSearch without having to run an instance of ElasticSearch?
java elasticsearch
cdietschrun
source share