public abstract static class ElasticsearchHttpStorage.Builder extends Object implements StorageComponent.Builder
| Modifier and Type | Method and Description |
|---|---|
abstract ElasticsearchHttpStorage |
build() |
ElasticsearchHttpStorage.Builder |
dateSeparator(char dateSeparator)
The date separator to use when generating daily index names.
|
ElasticsearchHttpStorage.Builder |
hosts(List<String> hosts)
A list of elasticsearch nodes to connect to, in http://host:port or https://host:port
format.
|
abstract ElasticsearchHttpStorage.Builder |
hostsSupplier(ElasticsearchHttpStorage.HostsSupplier hosts)
Like
hosts(List), except the value is deferred. |
ElasticsearchHttpStorage.Builder |
index(String index)
The index prefix to use when generating daily index names.
|
abstract ElasticsearchHttpStorage.Builder |
indexReplicas(int indexReplicas)
The number of replica copies of each shard in the index.
|
abstract ElasticsearchHttpStorage.Builder |
indexShards(int indexShards)
The number of shards to split the index into.
|
abstract ElasticsearchHttpStorage.Builder |
maxRequests(int maxRequests)
Sets maximum in-flight requests from this process to any Elasticsearch host.
|
abstract ElasticsearchHttpStorage.Builder |
namesLookback(int namesLookback)
Only return span and service names where all
Span.timestamp are at or after
(now - lookback) in milliseconds. |
abstract ElasticsearchHttpStorage.Builder |
pipeline(String pipeline)
Only valid when the destination is Elasticsearch 5.x.
|
abstract ElasticsearchHttpStorage.Builder |
strictTraceId(boolean strictTraceId) |
public final ElasticsearchHttpStorage.Builder hosts(List<String> hosts)
public abstract ElasticsearchHttpStorage.Builder hostsSupplier(ElasticsearchHttpStorage.HostsSupplier hosts)
hosts(List), except the value is deferred.
This was added to support dynamic endpoint resolution for Amazon Elasticsearch. This value is only read once.
public abstract ElasticsearchHttpStorage.Builder maxRequests(int maxRequests)
public abstract ElasticsearchHttpStorage.Builder pipeline(String pipeline)
See https://www.elastic.co/guide/en/elasticsearch/reference/master/pipeline.html
public abstract ElasticsearchHttpStorage.Builder namesLookback(int namesLookback)
Span.timestamp are at or after
(now - lookback) in milliseconds. Defaults to 1 day (86400000).public final ElasticsearchHttpStorage.Builder index(String index)
public final ElasticsearchHttpStorage.Builder dateSeparator(char dateSeparator)
By default, spans with a timestamp falling on 2016/03/19 end up in the index 'zipkin-2016-03-19'. When the date separator is '.', the index would be 'zipkin-2016.03.19'.
public abstract ElasticsearchHttpStorage.Builder indexShards(int indexShards)
Corresponds to index.number_of_shards
public abstract ElasticsearchHttpStorage.Builder indexReplicas(int indexReplicas)
Corresponds to index.number_of_replicas
public abstract ElasticsearchHttpStorage.Builder strictTraceId(boolean strictTraceId)
strictTraceId in interface StorageComponent.Builderpublic abstract ElasticsearchHttpStorage build()
build in interface StorageComponent.BuilderCopyright © 2015–2017 OpenZipkin. All rights reserved.