WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
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