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 |
|---|---|
void |
clear(String tenantId) |
BusinessTransaction |
get(String tenantId,
String id) |
ElasticsearchClient |
getElasticsearchClient()
This method gets the elasticsearch client.
|
protected static List<BusinessTransaction> |
internalQuery(ElasticsearchClient client,
String tenantId,
Criteria criteria)
This method performs the query.
|
List<BusinessTransaction> |
query(String tenantId,
Criteria criteria) |
void |
setElasticsearchClient(ElasticsearchClient client)
This method sets the elasticsearch client.
|
void |
storeBusinessTransactions(String tenantId,
List<BusinessTransaction> businessTransactions) |
public static final String BUSINESS_TRANSACTION_TYPE
public BusinessTransactionServiceElasticsearch()
public ElasticsearchClient getElasticsearchClient()
public void setElasticsearchClient(ElasticsearchClient client)
client - The elasticsearch clientpublic BusinessTransaction get(String tenantId, String id)
get in interface BusinessTransactionServicepublic List<BusinessTransaction> query(String tenantId, Criteria criteria)
query in interface BusinessTransactionServiceprotected static List<BusinessTransaction> internalQuery(ElasticsearchClient client, String tenantId, Criteria criteria)
client - The elasticsearch clienttenantId - The tenant idcriteria - The criteriapublic void storeBusinessTransactions(String tenantId, List<BusinessTransaction> businessTransactions) throws Exception
storeBusinessTransactions in interface BusinessTransactionServiceExceptionpublic void clear(String tenantId)
clear in interface BusinessTransactionServiceCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.