2015-12-30 11:50:46 -05:00
|
|
|
[[java-admin-cluster]]
|
|
|
|
=== Cluster Administration
|
|
|
|
|
|
|
|
To access cluster Java API, you need to call `cluster()` method from an <<java-admin,`AdminClient`>>:
|
|
|
|
|
|
|
|
[source,java]
|
|
|
|
--------------------------------------------------
|
2015-12-30 13:29:21 -05:00
|
|
|
ClusterAdminClient clusterAdminClient = client.admin().cluster();
|
2015-12-30 11:50:46 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
|
2015-12-30 13:29:21 -05:00
|
|
|
[NOTE]
|
|
|
|
In the rest of this guide, we will use `client.admin().cluster()`.
|
|
|
|
|
|
|
|
include::health.asciidoc[]
|
|
|
|
|
2018-01-10 12:03:14 -05:00
|
|
|
include::stored-scripts.asciidoc[]
|