Class ElasticsearchShutdownAsyncClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownAsyncClient
public class ElasticsearchShutdownAsyncClient extends ApiClient
Client for the shutdown namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchShutdownAsyncClient(Transport transport)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<DeleteNodeResponse>
deleteNode(DeleteNodeRequest request)
Removes a node from the shutdown list.java.util.concurrent.CompletableFuture<DeleteNodeResponse>
deleteNode(java.util.function.Function<DeleteNodeRequest.Builder,ObjectBuilder<DeleteNodeRequest>> fn)
Removes a node from the shutdown list.java.util.concurrent.CompletableFuture<GetNodeResponse>
getNode(GetNodeRequest request)
Retrieve status of a node or nodes that are currently marked as shutting down.java.util.concurrent.CompletableFuture<GetNodeResponse>
getNode(java.util.function.Function<GetNodeRequest.Builder,ObjectBuilder<GetNodeRequest>> fn)
Retrieve status of a node or nodes that are currently marked as shutting down.java.util.concurrent.CompletableFuture<PutNodeResponse>
putNode(PutNodeRequest request)
Adds a node to be shut down.java.util.concurrent.CompletableFuture<PutNodeResponse>
putNode(java.util.function.Function<PutNodeRequest.Builder,ObjectBuilder<PutNodeRequest>> fn)
Adds a node to be shut down.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchShutdownAsyncClient
-
-
Method Details
-
deleteNode
public java.util.concurrent.CompletableFuture<DeleteNodeResponse> deleteNode(DeleteNodeRequest request) throws java.io.IOExceptionRemoves a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteNode
public final java.util.concurrent.CompletableFuture<DeleteNodeResponse> deleteNode(java.util.function.Function<DeleteNodeRequest.Builder,ObjectBuilder<DeleteNodeRequest>> fn) throws java.io.IOExceptionRemoves a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getNode
public java.util.concurrent.CompletableFuture<GetNodeResponse> getNode(GetNodeRequest request) throws java.io.IOExceptionRetrieve status of a node or nodes that are currently marked as shutting down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getNode
public final java.util.concurrent.CompletableFuture<GetNodeResponse> getNode(java.util.function.Function<GetNodeRequest.Builder,ObjectBuilder<GetNodeRequest>> fn) throws java.io.IOExceptionRetrieve status of a node or nodes that are currently marked as shutting down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putNode
public java.util.concurrent.CompletableFuture<PutNodeResponse> putNode(PutNodeRequest request) throws java.io.IOExceptionAdds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putNode
public final java.util.concurrent.CompletableFuture<PutNodeResponse> putNode(java.util.function.Function<PutNodeRequest.Builder,ObjectBuilder<PutNodeRequest>> fn) throws java.io.IOExceptionAdds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-