mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 09:54:06 -04:00
15 lines
440 B
Text
15 lines
440 B
Text
[[java-admin-cluster]]
|
|
=== Cluster Administration
|
|
|
|
To access cluster Java API, you need to call `cluster()` method from an <<java-admin,`AdminClient`>>:
|
|
|
|
[source,java]
|
|
--------------------------------------------------
|
|
ClusterAdminClient clusterAdminClient = client.admin().cluster();
|
|
--------------------------------------------------
|
|
|
|
[NOTE]
|
|
In the rest of this guide, we will use `client.admin().cluster()`.
|
|
|
|
include::health.asciidoc[]
|
|
|