mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +00:00
Using the infra that we now have in place, we can convert the low-level REST client docs so that they extract code snippets from real Java classes. This way we make sure that all the snippets properly compile. Compared to the high level REST client docs, in this case we don't run the tests themselves, as that would require depending on test-framework which requires java 8 while the low-level REST client is compatible with java 7. I think that compiling snippets is enough for now.
37 lines
919 B
Plaintext
37 lines
919 B
Plaintext
[[java-rest-low]]
|
|
= Java Low Level REST Client
|
|
|
|
[partintro]
|
|
--
|
|
|
|
The low-level client's features include:
|
|
|
|
* minimal dependencies
|
|
|
|
* load balancing across all available nodes
|
|
|
|
* failover in case of node failures and upon specific response codes
|
|
|
|
* failed connection penalization (whether a failed node is retried depends on
|
|
how many consecutive times it failed; the more failed attempts the longer the
|
|
client will wait before trying that same node again)
|
|
|
|
* persistent connections
|
|
|
|
* trace logging of requests and responses
|
|
|
|
* optional automatic <<sniffer,discovery of cluster nodes>>
|
|
|
|
--
|
|
|
|
:doc-tests: {docdir}/../../client/rest/src/test/java/org/elasticsearch/client/documentation
|
|
include::usage.asciidoc[]
|
|
include::configuration.asciidoc[]
|
|
|
|
:doc-tests: {docdir}/../../client/sniffer/src/test/java/org/elasticsearch/client/sniff/documentation
|
|
include::sniffer.asciidoc[]
|
|
|
|
include::../license.asciidoc[]
|
|
|
|
:doc-tests!:
|