WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
The basic status of the license can be retrieved as follows:
GetBasicStatusResponse response = client.license().getBasicStatus(RequestOptions.DEFAULT);
The returned GetTrialStatusResponse holds only a boolean flag:
GetTrialStatusResponse
boolean
boolean eligibleToStartbasic = response.isEligibleToStartBasic();
Whether the license is eligible to start basic or not
Most Popular
Video
Get Started with Elasticsearch
Intro to Kibana
ELK for Logs & Metrics