Package org.elasticsearch.client
Class SearchableSnapshotsClient
java.lang.Object
org.elasticsearch.client.SearchableSnapshotsClient
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 searchable snapshots APIs.
See the Searchable Snapshots
APIs on elastic.co for more information.-
Constructor Summary
ConstructorDescriptionSearchableSnapshotsClient
(RestHighLevelClient restHighLevelClient) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncacheStats
(CachesStatsRequest request, RequestOptions options) Deprecated.Executes the cache stats API, which provides statistics about searchable snapshot cache.cacheStatsAsync
(CachesStatsRequest request, RequestOptions options, ActionListener<CachesStatsResponse> listener) Deprecated.Asynchronously executes the cache stats API, which provides statistics about searchable snapshot cache.mountSnapshot
(MountSnapshotRequest request, RequestOptions options) Deprecated.Executes the mount snapshot API, which mounts a snapshot as a searchable snapshot.mountSnapshotAsync
(MountSnapshotRequest request, RequestOptions options, ActionListener<RestoreSnapshotResponse> listener) Deprecated.Asynchronously executes the mount snapshot API, which mounts a snapshot as a searchable snapshot.
-
Constructor Details
-
SearchableSnapshotsClient
Deprecated.
-
-
Method Details
-
mountSnapshot
public RestoreSnapshotResponse mountSnapshot(MountSnapshotRequest request, RequestOptions options) throws IOException Deprecated.Executes the mount snapshot API, which mounts a snapshot as a searchable snapshot. See the docs for more information.- Parameters:
request
- the requestoptions
- the request options- Returns:
- the response
- Throws:
IOException
- if an I/O exception occurred sending the request, or receiving or parsing the response
-
mountSnapshotAsync
public Cancellable mountSnapshotAsync(MountSnapshotRequest request, RequestOptions options, ActionListener<RestoreSnapshotResponse> listener) Deprecated.Asynchronously executes the mount snapshot API, which mounts a snapshot as a searchable snapshot.- Parameters:
request
- the requestoptions
- the request optionslistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
cacheStats
public CachesStatsResponse cacheStats(CachesStatsRequest request, RequestOptions options) throws IOException Deprecated.Executes the cache stats API, which provides statistics about searchable snapshot cache. See the docs for more information.- Parameters:
request
- the requestoptions
- the request options- Returns:
- the response
- Throws:
IOException
- if an I/O exception occurred sending the request, or receiving or parsing the response
-
cacheStatsAsync
public Cancellable cacheStatsAsync(CachesStatsRequest request, RequestOptions options, ActionListener<CachesStatsResponse> listener) Deprecated.Asynchronously executes the cache stats API, which provides statistics about searchable snapshot cache.- Parameters:
request
- the requestoptions
- the request optionslistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-