Class ElasticsearchSearchableSnapshotsClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSearchableSnapshotsClient>
co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ElasticsearchSearchableSnapshotsClient
extends ApiClient<ElasticsearchTransport,ElasticsearchSearchableSnapshotsClient>
Client for the searchable_snapshots namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchSearchableSnapshotsClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionGet cache statistics.cacheStats(CacheStatsRequest request) Get cache statistics.final CacheStatsResponseGet cache statistics.Clear the cache.clearCache(ClearCacheRequest request) Clear the cache.final ClearCacheResponseClear the cache.mount(MountRequest request) Mount a snapshot.final MountResponseMount 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
-
ElasticsearchSearchableSnapshotsClient
-
ElasticsearchSearchableSnapshotsClient
public ElasticsearchSearchableSnapshotsClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSearchableSnapshotsClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchSearchableSnapshotsClient>
-
cacheStats
public CacheStatsResponse cacheStats(CacheStatsRequest request) throws IOException, ElasticsearchException Get cache statistics. Get statistics about the shared cache for partially mounted indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
cacheStats
public final CacheStatsResponse cacheStats(Function<CacheStatsRequest.Builder, ObjectBuilder<CacheStatsRequest>> fn) throws IOException, ElasticsearchExceptionGet cache statistics. Get statistics about the shared cache for partially mounted indices.- Parameters:
fn- a function that initializes a builder to create theCacheStatsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
cacheStats
Get cache statistics. Get statistics about the shared cache for partially mounted indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCache
public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOException, ElasticsearchException Clear the cache. Clear indices and data streams from the shared cache for partially mounted indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCache
public final ClearCacheResponse clearCache(Function<ClearCacheRequest.Builder, ObjectBuilder<ClearCacheRequest>> fn) throws IOException, ElasticsearchExceptionClear 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- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCache
Clear the cache. Clear indices and data streams from the shared cache for partially mounted indices.- Throws:
IOExceptionElasticsearchException- 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.- Throws:
IOExceptionElasticsearchException- See Also:
-
mount
public final MountResponse mount(Function<MountRequest.Builder, ObjectBuilder<MountRequest>> fn) throws IOException, ElasticsearchExceptionMount 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- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
public SearchableSnapshotsStatsResponse stats(SearchableSnapshotsStatsRequest request) throws IOException, ElasticsearchException Get searchable snapshot statistics.- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
public final SearchableSnapshotsStatsResponse stats(Function<SearchableSnapshotsStatsRequest.Builder, ObjectBuilder<SearchableSnapshotsStatsRequest>> fn) throws IOException, ElasticsearchExceptionGet searchable snapshot statistics.- Parameters:
fn- a function that initializes a builder to create theSearchableSnapshotsStatsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
Get searchable snapshot statistics.- Throws:
IOExceptionElasticsearchException- See Also:
-