Class ElasticsearchMigrationClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchMigrationClient>
co.elastic.clients.elasticsearch.migration.ElasticsearchMigrationClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
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
ConstructorsConstructorDescriptionElasticsearchMigrationClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionGet deprecation information.deprecations
(DeprecationsRequest request) Get deprecation information.final DeprecationsResponse
Get deprecation information.Get feature migration information.Start the feature migration.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
-
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 IOException, ElasticsearchException Get deprecation information. Get information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are strongly recommended to use the Upgrade Assistant.
- Throws:
IOException
ElasticsearchException
- See Also:
-
deprecations
public final DeprecationsResponse deprecations(Function<DeprecationsRequest.Builder, ObjectBuilder<DeprecationsRequest>> fn) throws IOException, ElasticsearchExceptionGet deprecation information. Get information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are strongly recommended to use the Upgrade Assistant.
- Parameters:
fn
- a function that initializes a builder to create theDeprecationsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deprecations
Get deprecation information. Get information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.TIP: This APIs is designed for indirect use by the Upgrade Assistant. You are strongly recommended to use the Upgrade Assistant.
- Throws:
IOException
ElasticsearchException
- See Also:
-
getFeatureUpgradeStatus
public GetFeatureUpgradeStatusResponse getFeatureUpgradeStatus() throws IOException, ElasticsearchExceptionGet feature migration information. Version upgrades sometimes require changes to how features store configuration information and data in system indices. Check which features need to be migrated and the status of any migrations that are in progress.TIP: This API is designed for indirect use by the Upgrade Assistant. You are strongly recommended to use the Upgrade Assistant.
- Throws:
IOException
ElasticsearchException
- See Also:
-
postFeatureUpgrade
Start the feature migration. Version upgrades sometimes require changes to how features store configuration information and data in system indices. This API starts the automatic migration process.Some functionality might be temporarily unavailable during the migration process.
TIP: The API is designed for indirect use by the Upgrade Assistant. We strongly recommend you use the Upgrade Assistant.
- Throws:
IOException
ElasticsearchException
- See Also:
-