11[[sniffer]]
2- === Sniffer
2+ == Sniffer
33
44Minimal library that allows to automatically discover nodes from a running
55Elasticsearch cluster and set them to an existing `RestClient` instance.
@@ -8,7 +8,7 @@ Nodes Info api and uses jackson to parse the obtained json response.
88
99Compatible with Elasticsearch 2.x and onwards.
1010
11- ==== Maven Repository
11+ === Maven Repository
1212
1313The low-level REST client is subject to the same release cycle as
1414elasticsearch. Replace the version with the desired sniffer version, first
@@ -17,7 +17,7 @@ and the elasticsearch version that the client can communicate with. Sniffer
1717supports fetching the nodes list from elasticsearch 2.x and onwards.
1818
1919
20- ===== Maven configuration
20+ ==== Maven configuration
2121
2222Here is how you can configure the dependency using maven as a dependency manager.
2323Add the following to your `pom.xml` file:
@@ -31,7 +31,7 @@ Add the following to your `pom.xml` file:
3131</dependency>
3232--------------------------------------------------
3333
34- ===== Gradle configuration
34+ ==== Gradle configuration
3535
3636Here is how you can configure the dependency using gradle as a dependency manager.
3737Add the following to your `build.gradle` file:
@@ -43,7 +43,7 @@ dependencies {
4343}
4444--------------------------------------------------
4545
46- ==== Usage
46+ === Usage
4747
4848Once a `RestClient` instance has been created, a `Sniffer` can be associated
4949to it. The `Sniffer` will make use of the provided `RestClient` to periodically
@@ -132,20 +132,3 @@ Sniffer sniffer = Sniffer.builder(restClient)
132132
133133Note that this last configuration parameter has no effect in case sniffing
134134on failure is not enabled like explained above.
135-
136- ==== License
137-
138- Copyright 2013-2017 Elasticsearch
139-
140- Licensed under the Apache License, Version 2.0 (the "License");
141- you may not use this file except in compliance with the License.
142- You may obtain a copy of the License at
143-
144- http://www.apache.org/licenses/LICENSE-2.0
145-
146- Unless required by applicable law or agreed to in writing, software
147- distributed under the License is distributed on an "AS IS" BASIS,
148- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
149- See the License for the specific language governing permissions and
150- limitations under the License.
151-
0 commit comments