Class ElasticsearchMigrationClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchMigrationClient>
co.elastic.clients.elasticsearch.migration.ElasticsearchMigrationClient
public class ElasticsearchMigrationClient extends ApiClient<ElasticsearchTransport,ElasticsearchMigrationClient>
Client for the migration namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
Constructors Constructor Description ElasticsearchMigrationClient(ElasticsearchTransport transport)ElasticsearchMigrationClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and Type Method Description DeprecationsResponsedeprecations()Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.DeprecationsResponsedeprecations(DeprecationsRequest request)Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.DeprecationsResponsedeprecations(java.util.function.Function<DeprecationsRequest.Builder,ObjectBuilder<DeprecationsRequest>> fn)Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.GetFeatureUpgradeStatusResponsegetFeatureUpgradeStatus()Find out whether system features need to be upgraded or notPostFeatureUpgradeResponsepostFeatureUpgrade()Begin upgrades for system featuresElasticsearchMigrationClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchMigrationClient
-
ElasticsearchMigrationClient
public ElasticsearchMigrationClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchMigrationClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchMigrationClient>
-
deprecations
public DeprecationsResponse deprecations(DeprecationsRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deprecations
public final DeprecationsResponse deprecations(java.util.function.Function<DeprecationsRequest.Builder,ObjectBuilder<DeprecationsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.- Parameters:
fn- a function that initializes a builder to create theDeprecationsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deprecations
Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getFeatureUpgradeStatus
public GetFeatureUpgradeStatusResponse getFeatureUpgradeStatus() throws java.io.IOException, ElasticsearchExceptionFind out whether system features need to be upgraded or not- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
postFeatureUpgrade
public PostFeatureUpgradeResponse postFeatureUpgrade() throws java.io.IOException, ElasticsearchExceptionBegin upgrades for system features- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-