Package org.elasticsearch.client
Class LicenseClient
java.lang.Object
org.elasticsearch.client.LicenseClient
Deprecated.
The High Level Rest Client is deprecated in favor of the
Elasticsearch Java API Client
A wrapper for the
RestHighLevelClient
that provides methods for
accessing the Elastic License-related methods
See the X-Pack Licensing APIs on elastic.co for more information.
-
Method Summary
Modifier and TypeMethodDescriptiondeleteLicense
(DeleteLicenseRequest request, RequestOptions options) Deprecated.Deletes license from the cluster.deleteLicenseAsync
(DeleteLicenseRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously deletes license from the cluster.getBasicStatus
(RequestOptions options) Deprecated.Retrieve the license basic statusgetLicense
(GetLicenseRequest request, RequestOptions options) Deprecated.Returns the current license for the cluster.getLicenseAsync
(GetLicenseRequest request, RequestOptions options, ActionListener<GetLicenseResponse> listener) Deprecated.Asynchronously returns the current license for the cluster cluster.getTrialStatus
(RequestOptions options) Deprecated.Retrieve the license trial statusputLicense
(PutLicenseRequest request, RequestOptions options) Deprecated.Updates license for the cluster.putLicenseAsync
(PutLicenseRequest request, RequestOptions options, ActionListener<PutLicenseResponse> listener) Deprecated.Asynchronously updates license for the cluster.startBasic
(StartBasicRequest request, RequestOptions options) Deprecated.Initiates an indefinite basic license.startBasicAsync
(StartBasicRequest request, RequestOptions options, ActionListener<StartBasicResponse> listener) Deprecated.Asynchronously initiates an indefinite basic license.startTrial
(StartTrialRequest request, RequestOptions options) Deprecated.Starts a trial license on the cluster.startTrialAsync
(StartTrialRequest request, RequestOptions options, ActionListener<StartTrialResponse> listener) Deprecated.Asynchronously starts a trial license on the cluster.
-
Method Details
-
putLicense
public PutLicenseResponse putLicense(PutLicenseRequest request, RequestOptions options) throws IOException Deprecated.Updates license for the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putLicenseAsync
public Cancellable putLicenseAsync(PutLicenseRequest request, RequestOptions options, ActionListener<PutLicenseResponse> listener) Deprecated.Asynchronously updates license for the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getLicense
public GetLicenseResponse getLicense(GetLicenseRequest request, RequestOptions options) throws IOException Deprecated.Returns the current license for the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getLicenseAsync
public Cancellable getLicenseAsync(GetLicenseRequest request, RequestOptions options, ActionListener<GetLicenseResponse> listener) Deprecated.Asynchronously returns the current license for the cluster cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteLicense
public AcknowledgedResponse deleteLicense(DeleteLicenseRequest request, RequestOptions options) throws IOException Deprecated.Deletes license from the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteLicenseAsync
public Cancellable deleteLicenseAsync(DeleteLicenseRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously deletes license from the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
startTrial
public StartTrialResponse startTrial(StartTrialRequest request, RequestOptions options) throws IOException Deprecated.Starts a trial license on the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
startTrialAsync
public Cancellable startTrialAsync(StartTrialRequest request, RequestOptions options, ActionListener<StartTrialResponse> listener) Deprecated.Asynchronously starts a trial license on the cluster.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
startBasic
public StartBasicResponse startBasic(StartBasicRequest request, RequestOptions options) throws IOException Deprecated.Initiates an indefinite basic license.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
startBasicAsync
public Cancellable startBasicAsync(StartBasicRequest request, RequestOptions options, ActionListener<StartBasicResponse> listener) Deprecated.Asynchronously initiates an indefinite basic license.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getTrialStatus
Deprecated.Retrieve the license trial status- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getBasicStatus
Deprecated.Retrieve the license basic status- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-