Class ElasticsearchTasksClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchTasksClient>
co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchTasksClient
extends ApiClient<ElasticsearchTransport,ElasticsearchTasksClient>
Client for the tasks namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchTasksClient
(ElasticsearchTransport transport) ElasticsearchTasksClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptioncancel()
Cancels a task, if it can be cancelled through an API.cancel
(CancelRequest request) Cancels a task, if it can be cancelled through an API.final CancelResponse
Cancels a task, if it can be cancelled through an API.get
(GetTasksRequest request) Get task information.final GetTasksResponse
Get task information.list()
The task management API returns information about tasks currently executing on one or more nodes in the cluster.list
(ListRequest request) The task management API returns information about tasks currently executing on one or more nodes in the cluster.final ListResponse
The task management API returns information about tasks currently executing on one or more nodes in the cluster.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
-
ElasticsearchTasksClient
-
ElasticsearchTasksClient
public ElasticsearchTasksClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchTasksClient>
-
cancel
Cancels a task, if it can be cancelled through an API.- Throws:
IOException
ElasticsearchException
- See Also:
-
cancel
public final CancelResponse cancel(Function<CancelRequest.Builder, ObjectBuilder<CancelRequest>> fn) throws IOException, ElasticsearchExceptionCancels a task, if it can be cancelled through an API.- Parameters:
fn
- a function that initializes a builder to create theCancelRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
cancel
Cancels a task, if it can be cancelled through an API.- Throws:
IOException
ElasticsearchException
- See Also:
-
get
Get task information. Returns information about the tasks currently executing in the cluster.- Throws:
IOException
ElasticsearchException
- See Also:
-
get
public final GetTasksResponse get(Function<GetTasksRequest.Builder, ObjectBuilder<GetTasksRequest>> fn) throws IOException, ElasticsearchExceptionGet task information. Returns information about the tasks currently executing in the cluster.- Parameters:
fn
- a function that initializes a builder to create theGetTasksRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
list
The task management API returns information about tasks currently executing on one or more nodes in the cluster.- Throws:
IOException
ElasticsearchException
- See Also:
-
list
public final ListResponse list(Function<ListRequest.Builder, ObjectBuilder<ListRequest>> fn) throws IOException, ElasticsearchExceptionThe task management API returns information about tasks currently executing on one or more nodes in the cluster.- Parameters:
fn
- a function that initializes a builder to create theListRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
list
The task management API returns information about tasks currently executing on one or more nodes in the cluster.- Throws:
IOException
ElasticsearchException
- See Also:
-