Class ShutdownClient
java.lang.Object
org.opensearch.client.base.ApiClient<ShutdownClient>
org.opensearch.client.opensearch.api.shutdown.ShutdownClient
public class ShutdownClient extends ApiClient<ShutdownClient>
Client for the shutdown namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ShutdownClient(Transport transport)ShutdownClient(Transport transport, org.opensearch.client.RequestOptions options) -
Method Summary
Modifier and Type Method Description DeleteNodeResponsedeleteNode(java.util.function.Function<DeleteNodeRequest.Builder,ObjectBuilder<DeleteNodeRequest>> fn)Removes a node from the shutdown listDeleteNodeResponsedeleteNode(DeleteNodeRequest request)Removes a node from the shutdown listGetNodeResponsegetNode(java.util.function.Function<GetNodeRequest.Builder,ObjectBuilder<GetNodeRequest>> fn)Retrieve status of a node or nodes that are currently marked as shutting downGetNodeResponsegetNode(GetNodeRequest request)Retrieve status of a node or nodes that are currently marked as shutting downPutNodeResponseputNode(java.util.function.Function<PutNodeRequest.Builder,ObjectBuilder<PutNodeRequest>> fn)Adds a node to be shut downPutNodeResponseputNode(PutNodeRequest request)Adds a node to be shut downShutdownClientwithRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newShutdownClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.ShutdownClientwithRequestOptions(org.opensearch.client.RequestOptions options)Creates a newShutdownClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.
-
Constructor Details
-
Method Details
-
deleteNode
Removes a node from the shutdown list- Throws:
java.io.IOException
-
deleteNode
public final DeleteNodeResponse deleteNode(java.util.function.Function<DeleteNodeRequest.Builder,ObjectBuilder<DeleteNodeRequest>> fn) throws java.io.IOExceptionRemoves a node from the shutdown list- 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
-
getNode
Retrieve status of a node or nodes that are currently marked as shutting down- Throws:
java.io.IOException
-
getNode
public final 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- 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
-
putNode
Adds a node to be shut down- Throws:
java.io.IOException
-
putNode
public final PutNodeResponse putNode(java.util.function.Function<PutNodeRequest.Builder,ObjectBuilder<PutNodeRequest>> fn) throws java.io.IOExceptionAdds a node to be shut down- 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
-
withRequestOptions
Creates a newShutdownClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.- Specified by:
withRequestOptionsin classApiClient<ShutdownClient>
-
withRequestOptions
public ShutdownClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newShutdownClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.- Parameters:
fn- a function taking an options builder initialized with the current request options, or initialized with default values.
-