public abstract static class ElasticsearchStorage.Builder extends StorageComponent.Builder
Modifier and Type | Method and Description |
---|---|
abstract ElasticsearchStorage |
build() |
ElasticsearchStorage.Builder |
dateSeparator(char dateSeparator)
The date separator to use when generating daily index names.
|
abstract ElasticsearchStorage.Builder |
flushOnWrites(boolean flushOnWrites)
Visible for testing
|
ElasticsearchStorage.Builder |
hosts(List<String> hosts)
A list of elasticsearch nodes to connect to, in http://host:port or https://host:port format.
|
abstract ElasticsearchStorage.Builder |
hostsSupplier(ElasticsearchStorage.HostsSupplier hosts)
Like
hosts(List) , except the value is deferred. |
ElasticsearchStorage.Builder |
index(String index)
The index prefix to use when generating daily index names.
|
abstract ElasticsearchStorage.Builder |
indexReplicas(int indexReplicas)
The number of replica copies of each shard in the index.
|
abstract ElasticsearchStorage.Builder |
indexShards(int indexShards)
The number of shards to split the index into.
|
abstract ElasticsearchStorage.Builder |
maxRequests(int maxRequests)
Sets maximum in-flight requests from this process to any Elasticsearch host.
|
abstract ElasticsearchStorage.Builder |
namesLookback(int namesLookback)
Only return span and service names where all
Span.timestamp() are at or after
(now - lookback) in milliseconds. |
abstract ElasticsearchStorage.Builder |
pipeline(String pipeline)
Only valid when the destination is Elasticsearch 5.x.
|
abstract ElasticsearchStorage.Builder |
searchEnabled(boolean searchEnabled) |
abstract ElasticsearchStorage.Builder |
shutdownClientOnClose(boolean shutdownClientOnClose) |
abstract ElasticsearchStorage.Builder |
strictTraceId(boolean strictTraceId) |
public abstract ElasticsearchStorage.Builder shutdownClientOnClose(boolean shutdownClientOnClose)
public final ElasticsearchStorage.Builder hosts(List<String> hosts)
public abstract ElasticsearchStorage.Builder hostsSupplier(ElasticsearchStorage.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 ElasticsearchStorage.Builder maxRequests(int maxRequests)
A backlog is not permitted. Once this number of requests are in-flight, future requests will drop until we are under maxRequests again. This allows the server to remain up during a traffic surge.
public abstract ElasticsearchStorage.Builder pipeline(String pipeline)
See https://www.elastic.co/guide/en/elasticsearch/reference/master/pipeline.html
public abstract ElasticsearchStorage.Builder namesLookback(int namesLookback)
Span.timestamp()
are at or after
(now - lookback) in milliseconds. Defaults to 1 day (86400000).public abstract ElasticsearchStorage.Builder flushOnWrites(boolean flushOnWrites)
public final ElasticsearchStorage.Builder index(String index)
public final ElasticsearchStorage.Builder dateSeparator(char dateSeparator)
By default, spans with a timestamp falling on 2016/03/19 end up in the index 'zipkin:span-2016-03-19'. When the date separator is '.', the index would be 'zipkin:span-2016.03.19'. If the date separator is 0, there is no delimiter. Ex the index would be 'zipkin:span-20160319'
public abstract ElasticsearchStorage.Builder indexShards(int indexShards)
Corresponds to index.number_of_shards
public abstract ElasticsearchStorage.Builder indexReplicas(int indexReplicas)
Corresponds to index.number_of_replicas
public abstract ElasticsearchStorage.Builder strictTraceId(boolean strictTraceId)
strictTraceId
in class StorageComponent.Builder
public abstract ElasticsearchStorage.Builder searchEnabled(boolean searchEnabled)
searchEnabled
in class StorageComponent.Builder
public abstract ElasticsearchStorage build()
build
in class StorageComponent.Builder
Copyright © 2015–2018 OpenZipkin. All rights reserved.