public interface ElasticsearchMonitoringExporterClientFactory
Modifier and Type | Method and Description |
---|---|
ElasticsearchMonitoringExporterClient |
createElasticsearchClient(String username,
String pwd,
String token,
String apiKey,
String prefix,
String index,
boolean compression,
org.apache.http.HttpHost... httpHosts)
Will use something like:
setCompressionEnabled(true); setPathPrefix(prefix); if not null Index will be used as final Elasticsearch index name |
ElasticsearchMonitoringExporterClient createElasticsearchClient(String username, String pwd, String token, String apiKey, String prefix, String index, boolean compression, org.apache.http.HttpHost... httpHosts)
username
- username to connect to Elasticsearch if any (Basic
authentication) (nullable)pwd
- password to connect to Elasticsearch if any (Basic
authentication) (nullable)token
- access token (Bearer Token authorization
by Header) (nullable)apiKey
- API Key (Base64 of 'apiId:apiKey') (ApiKey authorization
by Header) (nullable)prefix
- Path to set as Prefix for every requests, can be nullindex
- Index name within Elasticsearchcompression
- True to compress REST exchanges between the client
and the Elasticsearch serverhttpHosts
- 1 or more HttpHost pointing to Elasticsearch nodesCopyright © 2009–2022 Waarp. All rights reserved.