Package zipkin2.elasticsearch
Class ElasticsearchStorage
- java.lang.Object
- 
- zipkin2.Component
- 
- zipkin2.storage.StorageComponent
- 
- zipkin2.elasticsearch.ElasticsearchStorage
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 public abstract class ElasticsearchStorage extends StorageComponent 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classElasticsearchStorage.Builderstatic interfaceElasticsearchStorage.LazyHttpClientThis defers creation of anWebClient.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AutocompleteTagsautocompleteTags()CheckResultcheck()This is blocking so that we can determine if the cluster is healthy or notvoidclear()This is an internal blocking call, only used in tests.voidclose()abstract booleanflushOnWrites()abstract zipkin2.elasticsearch.internal.IndexNameFormatterindexNameFormatter()booleanisOverCapacity(Throwable e)Internal code and api responses coerce toRejectedExecutionExceptionwhen work is rejected.abstract intnamesLookback()static ElasticsearchStorage.BuildernewBuilder(ElasticsearchStorage.LazyHttpClient lazyHttpClient)The lazy http client supplier will be closed onclose()abstract Stringpipeline()ServiceAndSpanNamesserviceAndSpanNames()SpanConsumerspanConsumer()SpanStorespanStore()abstract booleanstrictTraceId()StringtoString()Tracestraces()floatversion()Returns the Elasticsearch version of the connected cluster.
 
- 
- 
- 
Method Detail- 
newBuilderpublic static ElasticsearchStorage.Builder newBuilder(ElasticsearchStorage.LazyHttpClient lazyHttpClient) The lazy http client supplier will be closed onclose()
 - 
pipeline@Nullable public abstract String pipeline() 
 - 
flushOnWritespublic abstract boolean flushOnWrites() 
 - 
strictTraceIdpublic abstract boolean strictTraceId() 
 - 
indexNameFormatterpublic abstract zipkin2.elasticsearch.internal.IndexNameFormatter indexNameFormatter() 
 - 
namesLookbackpublic abstract int namesLookback() 
 - 
spanStorepublic SpanStore spanStore() - Specified by:
- spanStorein class- StorageComponent
 
 - 
tracespublic Traces traces() - Overrides:
- tracesin class- StorageComponent
 
 - 
serviceAndSpanNamespublic ServiceAndSpanNames serviceAndSpanNames() - Overrides:
- serviceAndSpanNamesin class- StorageComponent
 
 - 
autocompleteTagspublic AutocompleteTags autocompleteTags() - Overrides:
- autocompleteTagsin class- StorageComponent
 
 - 
spanConsumerpublic SpanConsumer spanConsumer() - Specified by:
- spanConsumerin class- StorageComponent
 
 - 
version@Memoized public float version() Returns the Elasticsearch version of the connected cluster. Internal use only
 - 
clearpublic void clear() throws IOExceptionThis is an internal blocking call, only used in tests.- Throws:
- IOException
 
 - 
isOverCapacitypublic boolean isOverCapacity(Throwable e) Internal code and api responses coerce toRejectedExecutionExceptionwhen work is rejected. We also classifyResponseTimeoutExceptionas a capacity related exception eventhough capacity is not the only reason (timeout could also result from a misconfiguration or a network problem).- Overrides:
- isOverCapacityin class- StorageComponent
 
 - 
checkpublic CheckResult check() This is blocking so that we can determine if the cluster is healthy or not
 
- 
 
-