Package zipkin2.elasticsearch
Class ElasticsearchStorage
- java.lang.Object
 - 
- zipkin2.Component
 - 
- zipkin2.storage.StorageComponent
 - 
- zipkin2.elasticsearch.ElasticsearchStorage
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Closeable,java.lang.AutoCloseable
public abstract class ElasticsearchStorage extends StorageComponent
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElasticsearchStorage.Builderstatic interfaceElasticsearchStorage.LazyHttpClientThis defers creation of anHttpClient. 
- 
Method Summary
All 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 IndexNameFormatterindexNameFormatter()booleanisOverCapacity(java.lang.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 java.lang.Stringpipeline()ServiceAndSpanNamesserviceAndSpanNames()SpanConsumerspanConsumer()SpanStorespanStore()abstract booleanstrictTraceId()java.lang.StringtoString()Tracestraces()floatversion()Returns the Elasticsearch version of the connected cluster. 
 - 
 
- 
- 
Method Detail
- 
newBuilder
public static ElasticsearchStorage.Builder newBuilder(ElasticsearchStorage.LazyHttpClient lazyHttpClient)
The lazy http client supplier will be closed onclose() 
- 
pipeline
@Nullable public abstract java.lang.String pipeline()
 
- 
flushOnWrites
public abstract boolean flushOnWrites()
 
- 
strictTraceId
public abstract boolean strictTraceId()
 
- 
indexNameFormatter
public abstract IndexNameFormatter indexNameFormatter()
 
- 
namesLookback
public abstract int namesLookback()
 
- 
spanStore
public SpanStore spanStore()
- Specified by:
 spanStorein classStorageComponent
 
- 
traces
public Traces traces()
- Overrides:
 tracesin classStorageComponent
 
- 
serviceAndSpanNames
public ServiceAndSpanNames serviceAndSpanNames()
- Overrides:
 serviceAndSpanNamesin classStorageComponent
 
- 
autocompleteTags
public AutocompleteTags autocompleteTags()
- Overrides:
 autocompleteTagsin classStorageComponent
 
- 
spanConsumer
public SpanConsumer spanConsumer()
- Specified by:
 spanConsumerin classStorageComponent
 
- 
version
public float version()
Returns the Elasticsearch version of the connected cluster. Internal use only 
- 
clear
public void clear() throws java.io.IOExceptionThis is an internal blocking call, only used in tests.- Throws:
 java.io.IOException
 
- 
isOverCapacity
public boolean isOverCapacity(java.lang.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 classStorageComponent
 
- 
check
public CheckResult check()
This is blocking so that we can determine if the cluster is healthy or not 
- 
toString
public final java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -