Class OpenSearchShutdownAsyncClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchShutdownAsyncClient>
-
- org.opensearch.client.opensearch.shutdown.OpenSearchShutdownAsyncClient
-
public class OpenSearchShutdownAsyncClient extends ApiClient<OpenSearchTransport,OpenSearchShutdownAsyncClient>
Client for the shutdown namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchShutdownAsyncClient(OpenSearchTransport transport)OpenSearchShutdownAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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<DeleteNodeResponse>deleteNode(DeleteNodeRequest request)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(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<GetNodeResponse>getNode(GetNodeRequest request)Retrieve status of a node or nodes that are currently marked as shutting down.java.util.concurrent.CompletableFuture<PutNodeResponse>putNode(java.util.function.Function<PutNodeRequest.Builder,ObjectBuilder<PutNodeRequest>> fn)Adds a node to be shut down.java.util.concurrent.CompletableFuture<PutNodeResponse>putNode(PutNodeRequest request)Adds a node to be shut down.OpenSearchShutdownAsyncClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request options-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchShutdownAsyncClient
public OpenSearchShutdownAsyncClient(OpenSearchTransport transport)
-
OpenSearchShutdownAsyncClient
public OpenSearchShutdownAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
withTransportOptions
public OpenSearchShutdownAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchShutdownAsyncClient>
-
deleteNode
public java.util.concurrent.CompletableFuture<DeleteNodeResponse> deleteNode(DeleteNodeRequest request) throws java.io.IOException, OpenSearchException
Removes a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteNode
public final java.util.concurrent.CompletableFuture<DeleteNodeResponse> deleteNode(java.util.function.Function<DeleteNodeRequest.Builder,ObjectBuilder<DeleteNodeRequest>> fn) throws java.io.IOException, OpenSearchException
Removes 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.IOExceptionOpenSearchException
-
getNode
public java.util.concurrent.CompletableFuture<GetNodeResponse> getNode(GetNodeRequest request) throws java.io.IOException, OpenSearchException
Retrieve 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.IOExceptionOpenSearchException
-
getNode
public final java.util.concurrent.CompletableFuture<GetNodeResponse> getNode(java.util.function.Function<GetNodeRequest.Builder,ObjectBuilder<GetNodeRequest>> fn) throws java.io.IOException, OpenSearchException
Retrieve 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.IOExceptionOpenSearchException
-
getNode
public java.util.concurrent.CompletableFuture<GetNodeResponse> getNode() throws java.io.IOException, OpenSearchException
Retrieve 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.IOExceptionOpenSearchException
-
putNode
public java.util.concurrent.CompletableFuture<PutNodeResponse> putNode(PutNodeRequest request) throws java.io.IOException, OpenSearchException
Adds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOExceptionOpenSearchException
-
putNode
public final java.util.concurrent.CompletableFuture<PutNodeResponse> putNode(java.util.function.Function<PutNodeRequest.Builder,ObjectBuilder<PutNodeRequest>> fn) throws java.io.IOException, OpenSearchException
Adds 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.IOExceptionOpenSearchException
-
-