Class ElasticsearchShutdownClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownClient
public class ElasticsearchShutdownClient extends ApiClient
Client for the shutdown namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchShutdownClient(Transport transport)
-
Method Summary
Modifier and Type Method Description DeleteNodeResponse
deleteNode(DeleteNodeRequest request)
Removes a node from the shutdown list.DeleteNodeResponse
deleteNode(java.util.function.Function<DeleteNodeRequest.Builder,ObjectBuilder<DeleteNodeRequest>> fn)
Removes a node from the shutdown list.GetNodeResponse
getNode(GetNodeRequest request)
Retrieve status of a node or nodes that are currently marked as shutting down.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.PutNodeResponse
putNode(PutNodeRequest request)
Adds a node to be shut down.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
-
ElasticsearchShutdownClient
-
-
Method Details
-
deleteNode
Removes 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 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
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.IOException
- See Also:
- Documentation on elastic.co
-
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. 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
Adds 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 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
-