mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-26 08:07:27 -04:00
16 lines
475 B
Text
16 lines
475 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[]
|
|
|
|
include::stored-scripts.asciidoc[]
|