Class ElasticsearchShutdownAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchShutdownAsyncClient>
co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownAsyncClient
public class ElasticsearchShutdownAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchShutdownAsyncClient>
Client for the shutdown namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchShutdownAsyncClient(ElasticsearchTransport transport)
ElasticsearchShutdownAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
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()
Retrieve status of a node or nodes that are currently marked as shutting down.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.ElasticsearchShutdownAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchShutdownAsyncClient
-
ElasticsearchShutdownAsyncClient
public ElasticsearchShutdownAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchShutdownAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchShutdownAsyncClient>
-
deleteNode
public java.util.concurrent.CompletableFuture<DeleteNodeResponse> deleteNode(DeleteNodeRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRemoves 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 builder to create theDeleteNodeRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getNode
public java.util.concurrent.CompletableFuture<GetNodeResponse> getNode(GetNodeRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieve 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
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieve 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 builder to create theGetNodeRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getNode
public java.util.concurrent.CompletableFuture<GetNodeResponse> getNode() throws java.io.IOException, ElasticsearchExceptionRetrieve 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
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putNode
public java.util.concurrent.CompletableFuture<PutNodeResponse> putNode(PutNodeRequest request) throws java.io.IOException, ElasticsearchExceptionAdds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionAdds 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 builder to create thePutNodeRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-