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 DeprecationsResponse
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.DeprecationsResponse
deprecations(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.DeprecationsResponse
deprecations(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.GetFeatureUpgradeStatusResponse
getFeatureUpgradeStatus()
Find out whether system features need to be upgraded or notPostFeatureUpgradeResponse
postFeatureUpgrade()
Begin upgrades for system featuresElasticsearchMigrationClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
Methods 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:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
postFeatureUpgrade
public PostFeatureUpgradeResponse postFeatureUpgrade() throws java.io.IOException, ElasticsearchExceptionBegin upgrades for system features- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-