public abstract class ElasticsearchStorage extends StorageComponent
Modifier and Type | Class and Description |
---|---|
static class |
ElasticsearchStorage.Builder |
static interface |
ElasticsearchStorage.HostsSupplier
A list of elasticsearch nodes to connect to, in http://host:port or https://host:port format.
|
Modifier and Type | Method and Description |
---|---|
CheckResult |
check()
This is blocking so that we can determine if the cluster is healthy or not
|
void |
clear()
This is a blocking call, only used in tests.
|
void |
close() |
static void |
flush(HttpCall.Factory factory,
String index)
This is a blocking call, only used in tests.
|
abstract boolean |
flushOnWrites() |
abstract ElasticsearchStorage.HostsSupplier |
hostsSupplier() |
HttpCall.Factory |
http() |
abstract IndexNameFormatter |
indexNameFormatter() |
abstract int |
maxRequests() |
abstract int |
namesLookback() |
static ElasticsearchStorage.Builder |
newBuilder() |
static ElasticsearchStorage.Builder |
newBuilder(okhttp3.OkHttpClient client) |
abstract String |
pipeline() |
SpanConsumer |
spanConsumer() |
SpanStore |
spanStore() |
abstract boolean |
strictTraceId() |
float |
version()
Returns the Elasticsearch version of the connected cluster.
|
public static ElasticsearchStorage.Builder newBuilder(okhttp3.OkHttpClient client)
public static ElasticsearchStorage.Builder newBuilder()
public abstract ElasticsearchStorage.HostsSupplier hostsSupplier()
public abstract boolean flushOnWrites()
public abstract int maxRequests()
public abstract boolean strictTraceId()
public abstract IndexNameFormatter indexNameFormatter()
public abstract int namesLookback()
public SpanStore spanStore()
spanStore
in class StorageComponent
public SpanConsumer spanConsumer()
spanConsumer
in class StorageComponent
public float version()
public void clear() throws IOException
IOException
public static void flush(HttpCall.Factory factory, String index) throws IOException
IOException
public CheckResult check()
@Memoized public HttpCall.Factory http()
Copyright © 2015–2018 OpenZipkin. All rights reserved.