checkHealth()
MilvusClient interface. This method checks milvus server health.
R<CheckHealthResponse> checkHealth();
Returns
This method catches all the exceptions and returns an R<CheckHealthResponse> object.
If the API fails on the server side, it returns the error code and message from the server.
If the API fails by RPC exception, it returns
R.Status.Unknownand error message of the exception.If the API succeeds, it returns a valid
CheckHealthResponseheld by theRtemplate. You can useCheckHealthResponseto get resource group information.
Example
R<CheckHealthResponse> response = client.checkHealth();
if (response.getStatus() != R.Status.Success.getCode()) {
throw new RuntimeException(response.getMessage());
}