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.HostsSupplierA list of elasticsearch nodes to connect to, in http://host:port or https://host:port format.
-
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 ElasticsearchStorage.HostsSupplierhostsSupplier()HttpCall.Factoryhttp()abstract IndexNameFormatterindexNameFormatter()abstract intmaxRequests()abstract intnamesLookback()static ElasticsearchStorage.BuildernewBuilder()static ElasticsearchStorage.BuildernewBuilder(okhttp3.OkHttpClient client)abstract java.lang.Stringpipeline()ServiceAndSpanNamesserviceAndSpanNames()SpanConsumerspanConsumer()SpanStorespanStore()abstract booleanstrictTraceId()floatversion()Returns the Elasticsearch version of the connected cluster.
-
-
-
Method Detail
-
newBuilder
public static ElasticsearchStorage.Builder newBuilder(okhttp3.OkHttpClient client)
-
newBuilder
public static ElasticsearchStorage.Builder newBuilder()
-
hostsSupplier
public abstract ElasticsearchStorage.HostsSupplier hostsSupplier()
-
pipeline
@Nullable public abstract java.lang.String pipeline()
-
flushOnWrites
public abstract boolean flushOnWrites()
-
maxRequests
public abstract int maxRequests()
-
strictTraceId
public abstract boolean strictTraceId()
-
indexNameFormatter
public abstract IndexNameFormatter indexNameFormatter()
-
namesLookback
public abstract int namesLookback()
-
spanStore
public SpanStore spanStore()
- Specified by:
spanStorein 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
-
check
public CheckResult check()
This is blocking so that we can determine if the cluster is healthy or not
-
http
@Memoized public HttpCall.Factory http()
-
-