Class ElasticsearchShutdownClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchShutdownClient>
co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ElasticsearchShutdownClient
extends ApiClient<ElasticsearchTransport,ElasticsearchShutdownClient>
Client for the shutdown namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchShutdownClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeleteNode(DeleteNodeRequest request) Removes a node from the shutdown list.final DeleteNodeResponseRemoves a node from the shutdown list.getNode()Retrieve status of a node or nodes that are currently marked as shutting down.getNode(GetNodeRequest request) Retrieve status of a node or nodes that are currently marked as shutting down.final GetNodeResponseRetrieve status of a node or nodes that are currently marked as shutting down.putNode(PutNodeRequest request) Adds a node to be shut down.final PutNodeResponseAdds a node to be shut down.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchShutdownClient
-
ElasticsearchShutdownClient
public ElasticsearchShutdownClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchShutdownClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchShutdownClient>
-
deleteNode
public DeleteNodeResponse deleteNode(DeleteNodeRequest request) throws IOException, ElasticsearchException Removes a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteNode
public final DeleteNodeResponse deleteNode(Function<DeleteNodeRequest.Builder, ObjectBuilder<DeleteNodeRequest>> fn) throws 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:
IOExceptionElasticsearchException- See Also:
-
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:
IOExceptionElasticsearchException- See Also:
-
getNode
public final GetNodeResponse getNode(Function<GetNodeRequest.Builder, ObjectBuilder<GetNodeRequest>> fn) throws 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:
IOExceptionElasticsearchException- See Also:
-
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:
IOExceptionElasticsearchException- See Also:
-
putNode
Adds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
IOExceptionElasticsearchException- See Also:
-
putNode
public final PutNodeResponse putNode(Function<PutNodeRequest.Builder, ObjectBuilder<PutNodeRequest>> fn) throws 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:
IOExceptionElasticsearchException- See Also:
-