Class OpenSearchShutdownClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchShutdownClient>
-
- org.opensearch.client.opensearch.shutdown.OpenSearchShutdownClient
-
public class OpenSearchShutdownClient extends ApiClient<OpenSearchTransport,OpenSearchShutdownClient>
Client for the shutdown namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchShutdownClient(OpenSearchTransport transport)OpenSearchShutdownClient(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteNodeResponsedeleteNode(java.util.function.Function<DeleteNodeRequest.Builder,ObjectBuilder<DeleteNodeRequest>> fn)Removes a node from the shutdown list.DeleteNodeResponsedeleteNode(DeleteNodeRequest request)Removes a node from the shutdown list.GetNodeResponsegetNode()Retrieve status of a node or nodes that are currently marked as shutting down.GetNodeResponsegetNode(java.util.function.Function<GetNodeRequest.Builder,ObjectBuilder<GetNodeRequest>> fn)Retrieve status of a node or nodes that are currently marked as shutting down.GetNodeResponsegetNode(GetNodeRequest request)Retrieve status of a node or nodes that are currently marked as shutting down.PutNodeResponseputNode(java.util.function.Function<PutNodeRequest.Builder,ObjectBuilder<PutNodeRequest>> fn)Adds a node to be shut down.PutNodeResponseputNode(PutNodeRequest request)Adds a node to be shut down.OpenSearchShutdownClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request options-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchShutdownClient
public OpenSearchShutdownClient(OpenSearchTransport transport)
-
OpenSearchShutdownClient
public OpenSearchShutdownClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
withTransportOptions
public OpenSearchShutdownClient withTransportOptions(@Nullable TransportOptions transportOptions)
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchShutdownClient>
-
deleteNode
public 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 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 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 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 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 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 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
-
-