Package org.elasticsearch.client
Class SearchableSnapshotsClient
java.lang.Object
org.elasticsearch.client.SearchableSnapshotsClient
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
-
Method Summary
Modifier and TypeMethodDescriptioncacheStats(CachesStatsRequest request, org.elasticsearch.client.RequestOptions options)
Executes the cache stats API, which provides statistics about searchable snapshot cache.org.elasticsearch.client.Cancellable
cacheStatsAsync(CachesStatsRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<CachesStatsResponse> listener)
Asynchronously executes the cache stats API, which provides statistics about searchable snapshot cache.org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse
mountSnapshot(MountSnapshotRequest request, org.elasticsearch.client.RequestOptions options)
Executes the mount snapshot API, which mounts a snapshot as a searchable snapshot.org.elasticsearch.client.Cancellable
mountSnapshotAsync(MountSnapshotRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse> listener)
Asynchronously executes the mount snapshot API, which mounts a snapshot as a searchable snapshot.
-
Constructor Details
-
SearchableSnapshotsClient
-
-
Method Details
-
mountSnapshot
public org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse mountSnapshot(MountSnapshotRequest request, org.elasticsearch.client.RequestOptions options) throws IOExceptionExecutes 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 org.elasticsearch.client.Cancellable mountSnapshotAsync(MountSnapshotRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse> listener)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, org.elasticsearch.client.RequestOptions options) throws IOExceptionExecutes 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 org.elasticsearch.client.Cancellable cacheStatsAsync(CachesStatsRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<CachesStatsResponse> listener)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
-