public class TraceServiceElasticsearch extends Object implements TraceService
| Modifier and Type | Class and Description |
|---|---|
static class |
TraceServiceElasticsearch.TraceDeserializer |
static class |
TraceServiceElasticsearch.TraceSerializer |
| Modifier and Type | Field and Description |
|---|---|
static String |
TRACE_TYPE |
| Constructor and Description |
|---|
TraceServiceElasticsearch() |
TraceServiceElasticsearch(SpanService spanService) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(String tenantId) |
ElasticsearchClient |
getElasticsearchClient()
This method gets the elasticsearch client.
|
Trace |
getFragment(String tenantId,
String id) |
Trace |
getTrace(String tenantId,
String id) |
protected static List<Trace> |
internalQuery(ElasticsearchClient client,
String tenantId,
Criteria criteria)
This method performs the query.
|
protected void |
processConnectedFragment(String tenantId,
Trace root,
Trace fragment,
Producer producer)
This method aggregates enhances the root trace, representing the
complete end to end instance view, with the details available from
a linked trace fragment that should be attached to the supplied
Producer node.
|
List<Trace> |
searchFragments(String tenantId,
Criteria criteria) |
void |
setElasticsearchClient(ElasticsearchClient client)
This method sets the elasticsearch client.
|
void |
storeFragments(String tenantId,
List<Trace> traces) |
public static final String TRACE_TYPE
public TraceServiceElasticsearch()
@Inject public TraceServiceElasticsearch(SpanService spanService)
public ElasticsearchClient getElasticsearchClient()
public void setElasticsearchClient(ElasticsearchClient client)
client - The elasticsearch clientpublic Trace getFragment(String tenantId, String id)
getFragment in interface TraceServicepublic Trace getTrace(String tenantId, String id)
getTrace in interface TraceServiceprotected void processConnectedFragment(String tenantId, Trace root, Trace fragment, Producer producer)
tenantId - The tenant idroot - The root tracefragment - The fragment to be processedproducer - The producer node, or null if processing the top level fragmentpublic List<Trace> searchFragments(String tenantId, Criteria criteria)
searchFragments in interface TraceServiceprotected static List<Trace> internalQuery(ElasticsearchClient client, String tenantId, Criteria criteria)
client - The elasticsearch clienttenantId - The tenant idcriteria - The criteriapublic void storeFragments(String tenantId, List<Trace> traces) throws StoreException
storeFragments in interface TraceServiceStoreExceptionpublic void clear(String tenantId)
clear in interface TraceServiceCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.