Package org.elasticsearch.client
Class XPackClient
- java.lang.Object
-
- org.elasticsearch.client.XPackClient
-
public final class XPackClient extends java.lang.ObjectA wrapper for theRestHighLevelClientthat provides methods for accessing the Elastic Licensed X-Pack APIs that are shipped with the default distribution of Elasticsearch. All of these APIs will 404 if run against the OSS distribution of Elasticsearch.See the X-Pack APIs on elastic.co for more information.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XPackInfoResponseinfo(XPackInfoRequest request, RequestOptions options)Fetch information about X-Pack from the cluster.voidinfoAsync(XPackInfoRequest request, RequestOptions options, ActionListener<XPackInfoResponse> listener)Asynchronously fetch information about X-Pack from the cluster.XPackUsageResponseusage(XPackUsageRequest request, RequestOptions options)Fetch usage information about X-Pack features from the cluster.voidusageAsync(XPackUsageRequest request, RequestOptions options, ActionListener<XPackUsageResponse> listener)Asynchronously fetch usage information about X-Pack features from the cluster.
-
-
-
Method Detail
-
info
public XPackInfoResponse info(XPackInfoRequest request, RequestOptions options) throws java.io.IOException
Fetch information about X-Pack from the cluster. See the docs for more.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException- in case there is a problem sending the request or parsing back the response
-
infoAsync
public void infoAsync(XPackInfoRequest request, RequestOptions options, ActionListener<XPackInfoResponse> listener)
Asynchronously fetch information about X-Pack from the cluster. See the docs for more.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
usage
public XPackUsageResponse usage(XPackUsageRequest request, RequestOptions options) throws java.io.IOException
Fetch usage information about X-Pack features from the cluster.- Parameters:
options- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException- in case there is a problem sending the request or parsing back the response
-
usageAsync
public void usageAsync(XPackUsageRequest request, RequestOptions options, ActionListener<XPackUsageResponse> listener)
Asynchronously fetch usage information about X-Pack features from the cluster.- Parameters:
options- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
-