public class BusinessTransactionServiceElasticsearch extends Object implements BusinessTransactionService
| Modifier and Type | Field and Description |
|---|---|
static String |
BUSINESS_TRANSACTION_TYPE |
| Constructor and Description |
|---|
BusinessTransactionServiceElasticsearch() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear(String tenantId)
This method clears the Elasticsearch database, and is currently only intended for
testing purposes.
|
BusinessTransaction |
get(String tenantId,
String id) |
protected ElasticsearchClient |
getElasticsearchClient() |
protected static List<BusinessTransaction> |
internalQuery(ElasticsearchClient client,
String tenantId,
BusinessTransactionCriteria criteria)
This method performs the query.
|
List<BusinessTransaction> |
query(String tenantId,
BusinessTransactionCriteria criteria) |
protected void |
setElasticsearchClient(ElasticsearchClient client) |
void |
storeBusinessTransactions(String tenantId,
List<BusinessTransaction> businessTransactions) |
public static final String BUSINESS_TRANSACTION_TYPE
public BusinessTransactionServiceElasticsearch()
protected ElasticsearchClient getElasticsearchClient()
protected void setElasticsearchClient(ElasticsearchClient client)
public BusinessTransaction get(String tenantId, String id)
get in interface BusinessTransactionServicepublic List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria)
query in interface BusinessTransactionServiceprotected static List<BusinessTransaction> internalQuery(ElasticsearchClient client, String tenantId, BusinessTransactionCriteria criteria)
client - The elasticsearch clienttenantId - The tenant idcriteria - The criteriapublic void storeBusinessTransactions(String tenantId, List<BusinessTransaction> businessTransactions) throws Exception
storeBusinessTransactions in interface BusinessTransactionServiceExceptionprotected void clear(String tenantId)
tenantId - The optional tenant idCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.