Class ElasticsearchShutdownClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchShutdownClient>
co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownClient
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
Constructors Constructor Description ElasticsearchShutdownClient(ElasticsearchTransport transport)
ElasticsearchShutdownClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
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()
Retrieve status of a node or nodes that are currently marked as shutting down.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.ElasticsearchShutdownClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchShutdownClient
-
ElasticsearchShutdownClient
public ElasticsearchShutdownClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchShutdownClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchShutdownClient>
-
deleteNode
public DeleteNodeResponse deleteNode(DeleteNodeRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deleteNode
public final DeleteNodeResponse deleteNode(java.util.function.Function<DeleteNodeRequest.Builder,ObjectBuilder<DeleteNodeRequest>> fn) throws java.io.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:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getNode
public GetNodeResponse getNode(GetNodeRequest request) throws java.io.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.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getNode
public final GetNodeResponse getNode(java.util.function.Function<GetNodeRequest.Builder,ObjectBuilder<GetNodeRequest>> fn) throws java.io.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:
java.io.IOException
ElasticsearchException
- 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
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putNode
public PutNodeResponse putNode(PutNodeRequest request) throws java.io.IOException, ElasticsearchExceptionAdds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putNode
public final PutNodeResponse putNode(java.util.function.Function<PutNodeRequest.Builder,ObjectBuilder<PutNodeRequest>> fn) throws java.io.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:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-