Package zipkin2.elasticsearch
Class ElasticsearchStorage.Builder
- java.lang.Object
- 
- zipkin2.storage.StorageComponent.Builder
- 
- zipkin2.elasticsearch.ElasticsearchStorage.Builder
 
 
- 
- Enclosing class:
- ElasticsearchStorage
 
 public abstract static class ElasticsearchStorage.Builder extends StorageComponent.Builder 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ElasticsearchStorage.BuilderautocompleteCardinality(int autocompleteCardinality)abstract ElasticsearchStorage.BuilderautocompleteKeys(List<String> autocompleteKeys)abstract ElasticsearchStorage.BuilderautocompleteTtl(int autocompleteTtl)abstract ElasticsearchStoragebuild()ElasticsearchStorage.BuilderdateSeparator(char dateSeparator)The date separator to use when generating daily index names.abstract ElasticsearchStorage.BuilderflushOnWrites(boolean flushOnWrites)Internal and visible only for testing.ElasticsearchStorage.Builderindex(String index)The index prefix to use when generating daily index names.abstract ElasticsearchStorage.BuilderindexReplicas(int indexReplicas)The number of replica copies of each shard in the index.abstract ElasticsearchStorage.BuilderindexShards(int indexShards)The number of shards to split the index into.abstract ElasticsearchStorage.BuildernamesLookback(int namesLookback)Only return span and service names where allSpan.timestamp()are at or after (now - lookback) in milliseconds.abstract ElasticsearchStorage.Builderpipeline(String pipeline)Only valid when the destination is Elasticsearch 5.x.abstract ElasticsearchStorage.BuildersearchEnabled(boolean searchEnabled)abstract ElasticsearchStorage.BuilderstrictTraceId(boolean strictTraceId)
 
- 
- 
- 
Method Detail- 
pipelinepublic abstract ElasticsearchStorage.Builder pipeline(String pipeline) Only valid when the destination is Elasticsearch 5.x. Indicates the ingest pipeline used before spans are indexed. No default.See https://www.elastic.co/guide/en/elasticsearch/reference/master/pipeline.html 
 - 
namesLookbackpublic abstract ElasticsearchStorage.Builder namesLookback(int namesLookback) Only return span and service names where allSpan.timestamp()are at or after (now - lookback) in milliseconds. Defaults to 1 day (86400000).
 - 
flushOnWritespublic abstract ElasticsearchStorage.Builder flushOnWrites(boolean flushOnWrites) Internal and visible only for testing.See https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html 
 - 
indexpublic final ElasticsearchStorage.Builder index(String index) The index prefix to use when generating daily index names. Defaults to zipkin.
 - 
dateSeparatorpublic final ElasticsearchStorage.Builder dateSeparator(char dateSeparator) The date separator to use when generating daily index names. Defaults to '-'.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' 
 - 
indexShardspublic abstract ElasticsearchStorage.Builder indexShards(int indexShards) The number of shards to split the index into. Each shard and its replicas are assigned to a machine in the cluster. Increasing the number of shards and machines in the cluster will improve read and write performance. Number of shards cannot be changed for existing indices, but new daily indices will pick up changes to the setting. Defaults to 5.Corresponds to index.number_of_shards 
 - 
indexReplicaspublic abstract ElasticsearchStorage.Builder indexReplicas(int indexReplicas) The number of replica copies of each shard in the index. Each shard and its replicas are assigned to a machine in the cluster. Increasing the number of replicas and machines in the cluster will improve read performance, but not write performance. Number of replicas can be changed for existing indices. Defaults to 1. It is highly discouraged to set this to 0 as it would mean a machine failure results in data loss.Corresponds to index.number_of_replicas 
 - 
strictTraceIdpublic abstract ElasticsearchStorage.Builder strictTraceId(boolean strictTraceId) - Specified by:
- strictTraceIdin class- StorageComponent.Builder
 
 - 
searchEnabledpublic abstract ElasticsearchStorage.Builder searchEnabled(boolean searchEnabled) - Specified by:
- searchEnabledin class- StorageComponent.Builder
 
 - 
autocompleteKeyspublic abstract ElasticsearchStorage.Builder autocompleteKeys(List<String> autocompleteKeys) - Overrides:
- autocompleteKeysin class- StorageComponent.Builder
 
 - 
autocompleteTtlpublic abstract ElasticsearchStorage.Builder autocompleteTtl(int autocompleteTtl) - Overrides:
- autocompleteTtlin class- StorageComponent.Builder
 
 - 
autocompleteCardinalitypublic abstract ElasticsearchStorage.Builder autocompleteCardinality(int autocompleteCardinality) - Overrides:
- autocompleteCardinalityin class- StorageComponent.Builder
 
 - 
buildpublic abstract ElasticsearchStorage build() - Specified by:
- buildin class- StorageComponent.Builder
 
 
- 
 
-