public class ConfigurationServiceElasticsearch extends AbstractConfigurationService
| Constructor and Description |
|---|
ConfigurationServiceElasticsearch() |
| 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.
|
BusinessTxnConfig |
getBusinessTransaction(String tenantId,
String name) |
Map<String,BusinessTxnConfig> |
getBusinessTransactions(String tenantId,
long updated) |
List<BusinessTxnSummary> |
getBusinessTransactionSummaries(String tenantId) |
CollectorConfiguration |
getCollector(String tenantId,
String host,
String server) |
protected ElasticsearchClient |
getElasticsearchClient() |
void |
removeBusinessTransaction(String tenantId,
String name) |
protected void |
setElasticsearchClient(ElasticsearchClient client) |
List<ConfigMessage> |
updateBusinessTransaction(String tenantId,
String name,
BusinessTxnConfig config) |
validateBusinessTransactionprotected ElasticsearchClient getElasticsearchClient()
protected void setElasticsearchClient(ElasticsearchClient client)
public CollectorConfiguration getCollector(String tenantId, String host, String server)
public List<ConfigMessage> updateBusinessTransaction(String tenantId, String name, BusinessTxnConfig config) throws Exception
Exceptionpublic BusinessTxnConfig getBusinessTransaction(String tenantId, String name)
public List<BusinessTxnSummary> getBusinessTransactionSummaries(String tenantId)
public Map<String,BusinessTxnConfig> getBusinessTransactions(String tenantId, long updated)
public void removeBusinessTransaction(String tenantId, String name) throws Exception
Exceptionprotected void clear(String tenantId)
tenantId - The optional tenant idCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.