main.asciidoc 747 B

12345678910111213141516171819202122
  1. [[java-rest-high-main]]
  2. === Info API
  3. [[java-rest-high-main-request]]
  4. ==== Execution
  5. Cluster information can be retrieved using the `info()` method:
  6. ["source","java",subs="attributes,callouts,macros"]
  7. --------------------------------------------------
  8. include-tagged::{doc-tests}/MiscellaneousDocumentationIT.java[main-execute]
  9. --------------------------------------------------
  10. [[java-rest-high-main-response]]
  11. ==== Response
  12. The returned `MainResponse` provides various kinds of information about the cluster:
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests}/MiscellaneousDocumentationIT.java[main-response]
  16. --------------------------------------------------