The ping() method checks if the cluster is up and available to process requests and returns a boolean:
ping()
boolean response = client.ping(RequestOptions.DEFAULT);
Most Popular
Video
Get Started with Elasticsearch
Intro to Kibana
ELK for Logs & Metrics