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