Class OpenSearchFeaturesClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchFeaturesClient>
-
- org.opensearch.client.opensearch.features.OpenSearchFeaturesClient
-
public class OpenSearchFeaturesClient extends ApiClient<OpenSearchTransport,OpenSearchFeaturesClient>
Client for the features namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchFeaturesClient(OpenSearchTransport transport)OpenSearchFeaturesClient(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetFeaturesResponsegetFeatures()Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshotResetFeaturesResponseresetFeatures()Resets the internal state of features, usually by deleting system indicesOpenSearchFeaturesClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request options-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchFeaturesClient
public OpenSearchFeaturesClient(OpenSearchTransport transport)
-
OpenSearchFeaturesClient
public OpenSearchFeaturesClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
withTransportOptions
public OpenSearchFeaturesClient withTransportOptions(@Nullable TransportOptions transportOptions)
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchFeaturesClient>
-
getFeatures
public GetFeaturesResponse getFeatures() throws java.io.IOException, OpenSearchException
Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot- Throws:
java.io.IOExceptionOpenSearchException
-
resetFeatures
public ResetFeaturesResponse resetFeatures() throws java.io.IOException, OpenSearchException
Resets the internal state of features, usually by deleting system indices- Throws:
java.io.IOExceptionOpenSearchException
-
-