public class TraceServiceElasticsearch extends Object implements TraceService
| Modifier and Type | Field and Description |
|---|---|
static String |
TRACE_TYPE |
| Constructor and Description |
|---|
TraceServiceElasticsearch() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(String tenantId) |
Trace |
get(String tenantId,
String id) |
ElasticsearchClient |
getElasticsearchClient()
This method gets the elasticsearch client.
|
protected static List<Trace> |
internalQuery(ElasticsearchClient client,
String tenantId,
Criteria criteria)
This method performs the query.
|
List<Trace> |
query(String tenantId,
Criteria criteria) |
void |
setElasticsearchClient(ElasticsearchClient client)
This method sets the elasticsearch client.
|
void |
storeTraces(String tenantId,
List<Trace> traces) |
public static final String TRACE_TYPE
public ElasticsearchClient getElasticsearchClient()
public void setElasticsearchClient(ElasticsearchClient client)
client - The elasticsearch clientpublic Trace get(String tenantId, String id)
get in interface TraceServicepublic List<Trace> query(String tenantId, Criteria criteria)
query in interface TraceServiceprotected static List<Trace> internalQuery(ElasticsearchClient client, String tenantId, Criteria criteria)
client - The elasticsearch clienttenantId - The tenant idcriteria - The criteriapublic void storeTraces(String tenantId, List<Trace> traces) throws StoreException
storeTraces in interface TraceServiceStoreExceptionpublic void clear(String tenantId)
clear in interface TraceServiceCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.