@Singleton public class AnalyticsServiceElasticsearch extends Object implements AnalyticsService
| Constructor and Description |
|---|
AnalyticsServiceElasticsearch() |
| 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.
|
void |
close()
This method closes the Elasticsearch client.
|
int |
getAlertCount(String tenantId,
String name) |
List<String> |
getBoundURIs(String tenantId,
String businessTransaction,
long startTime,
long endTime) |
long |
getCompletionCount(String tenantId,
BusinessTransactionCriteria criteria) |
long |
getCompletionFaultCount(String tenantId,
BusinessTransactionCriteria criteria) |
Percentiles |
getCompletionPercentiles(String tenantId,
BusinessTransactionCriteria criteria) |
ConfigurationService |
getConfigurationService()
This method gets the configuration service.
|
protected ElasticsearchClient |
getElasticsearchClient() |
List<URIInfo> |
getUnboundURIs(String tenantId,
long startTime,
long endTime) |
void |
init() |
protected void |
obtainProducerURIs(List<Node> nodes,
List<URIInfo> uris,
Map<String,URIInfo> map)
This method collects the information regarding URIs for
contained producers.
|
protected void |
obtainURIs(List<Node> nodes,
List<String> uris)
This method collects the information regarding URIs.
|
void |
setConfigurationService(ConfigurationService cs)
This method sets the configuration service.
|
protected void |
setElasticsearchClient(ElasticsearchClient client) |
void |
storeCompletionTimes(String tenantId,
List<CompletionTime> completionTimes) |
void |
storeResponseTimes(String tenantId,
List<ResponseTime> responseTimes) |
@PostConstruct public void init()
protected ElasticsearchClient getElasticsearchClient()
protected void setElasticsearchClient(ElasticsearchClient client)
public ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService cs)
cs - The configuration servicepublic List<URIInfo> getUnboundURIs(String tenantId, long startTime, long endTime)
getUnboundURIs in interface AnalyticsServiceprotected void obtainProducerURIs(List<Node> nodes, List<URIInfo> uris, Map<String,URIInfo> map)
nodes - The nodesuris - The list of URI infomap - The map of URis to infopublic List<String> getBoundURIs(String tenantId, String businessTransaction, long startTime, long endTime)
getBoundURIs in interface AnalyticsServiceprotected void obtainURIs(List<Node> nodes, List<String> uris)
nodes - The nodesuris - The list of URIspublic long getCompletionCount(String tenantId, BusinessTransactionCriteria criteria)
getCompletionCount in interface AnalyticsServicepublic long getCompletionFaultCount(String tenantId, BusinessTransactionCriteria criteria)
getCompletionFaultCount in interface AnalyticsServicepublic Percentiles getCompletionPercentiles(String tenantId, BusinessTransactionCriteria criteria)
getCompletionPercentiles in interface AnalyticsServicepublic int getAlertCount(String tenantId, String name)
getAlertCount in interface AnalyticsServicepublic void storeResponseTimes(String tenantId, List<ResponseTime> responseTimes) throws Exception
storeResponseTimes in interface AnalyticsServiceExceptionpublic void storeCompletionTimes(String tenantId, List<CompletionTime> completionTimes) throws Exception
storeCompletionTimes in interface AnalyticsServiceExceptionprotected void clear(String tenantId)
tenantId - The optional tenant id@PreDestroy public void close()
Copyright © 2015 Red Hat, Inc.. All rights reserved.