Class ElasticsearchSearchableSnapshotsAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSearchableSnapshotsAsyncClient>
co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsAsyncClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ElasticsearchSearchableSnapshotsAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchSearchableSnapshotsAsyncClient>
Client for the searchable_snapshots namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchSearchableSnapshotsAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionGet cache statistics.cacheStats(CacheStatsRequest request) Get cache statistics.Get cache statistics.Clear the cache.clearCache(ClearCacheRequest request) Clear the cache.Clear the cache.mount(MountRequest request) Mount a snapshot.final CompletableFuture<MountResponse>Mount a snapshot.stats()Get searchable snapshot statistics.stats(SearchableSnapshotsStatsRequest request) Get searchable snapshot statistics.stats(Function<SearchableSnapshotsStatsRequest.Builder, ObjectBuilder<SearchableSnapshotsStatsRequest>> fn) Get searchable snapshot statistics.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchSearchableSnapshotsAsyncClient
-
ElasticsearchSearchableSnapshotsAsyncClient
public ElasticsearchSearchableSnapshotsAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSearchableSnapshotsAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchSearchableSnapshotsAsyncClient>
-
cacheStats
Get cache statistics. Get statistics about the shared cache for partially mounted indices.- See Also:
-
cacheStats
public final CompletableFuture<CacheStatsResponse> cacheStats(Function<CacheStatsRequest.Builder, ObjectBuilder<CacheStatsRequest>> fn) Get cache statistics. Get statistics about the shared cache for partially mounted indices.- Parameters:
fn- a function that initializes a builder to create theCacheStatsRequest- See Also:
-
cacheStats
Get cache statistics. Get statistics about the shared cache for partially mounted indices.- See Also:
-
clearCache
Clear the cache. Clear indices and data streams from the shared cache for partially mounted indices.- See Also:
-
clearCache
public final CompletableFuture<ClearCacheResponse> clearCache(Function<ClearCacheRequest.Builder, ObjectBuilder<ClearCacheRequest>> fn) Clear the cache. Clear indices and data streams from the shared cache for partially mounted indices.- Parameters:
fn- a function that initializes a builder to create theClearCacheRequest- See Also:
-
clearCache
Clear the cache. Clear indices and data streams from the shared cache for partially mounted indices.- See Also:
-
mount
Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use this API for snapshots managed by index lifecycle management (ILM). Manually mounting ILM-managed snapshots can interfere with ILM processes.- See Also:
-
mount
public final CompletableFuture<MountResponse> mount(Function<MountRequest.Builder, ObjectBuilder<MountRequest>> fn) Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use this API for snapshots managed by index lifecycle management (ILM). Manually mounting ILM-managed snapshots can interfere with ILM processes.- Parameters:
fn- a function that initializes a builder to create theMountRequest- See Also:
-
stats
public CompletableFuture<SearchableSnapshotsStatsResponse> stats(SearchableSnapshotsStatsRequest request) Get searchable snapshot statistics.- See Also:
-
stats
public final CompletableFuture<SearchableSnapshotsStatsResponse> stats(Function<SearchableSnapshotsStatsRequest.Builder, ObjectBuilder<SearchableSnapshotsStatsRequest>> fn) Get searchable snapshot statistics.- Parameters:
fn- a function that initializes a builder to create theSearchableSnapshotsStatsRequest- See Also:
-
stats
Get searchable snapshot statistics.- See Also:
-