public abstract class AbstractAnalyticsService extends Object implements AnalyticsService
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractAnalyticsService.EndpointPart
This class represents a node in a tree of endpoint (e.g.
|
| Constructor and Description |
|---|
AbstractAnalyticsService() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
buildTree(AbstractAnalyticsService.EndpointPart parent,
String[] parts,
int index,
String endpointType)
This method builds a tree.
|
protected static List<EndpointInfo> |
compressEndpointInfo(List<EndpointInfo> endpoints)
This method compresses the list of endpoints to identify
common patterns.
|
protected static String |
createRegex(String endpoint,
boolean meta)
This method derives the regular expression from the supplied
URI.
|
protected abstract Collection<CommunicationSummaryStatistics> |
doGetCommunicationSummaryStatistics(String tenantId,
Criteria criteria)
This method returns the flat list of communication summary stats.
|
protected List<EndpointInfo> |
doGetUnboundEndpoints(String tenantId,
List<Trace> fragments,
boolean compress)
This method obtains the unbound endpoints from a list of trace fragments.
|
protected static List<EndpointInfo> |
extractEndpointInfo(AbstractAnalyticsService.EndpointPart root)
This method expands a tree into the collapsed set of endpoints.
|
List<EndpointInfo> |
getBoundEndpoints(String tenantId,
String transaction,
long startTime,
long endTime)
This method returns the bound endpoints associated with a
transaction.
|
Collection<CommunicationSummaryStatistics> |
getCommunicationSummaryStatistics(String tenantId,
Criteria criteria,
boolean asTree)
This method returns the communication summary statistics, for the specified criteria, that were
executed during the time range.
|
ConfigurationService |
getConfigurationService()
This method gets the configuration service.
|
protected Set<String> |
getEndpoints(String tenantId,
Criteria criteria) |
protected abstract List<Trace> |
getFragments(String tenantId,
Criteria criteria)
This method returns the list of traces for the supplied criteria.
|
List<EndpointInfo> |
getUnboundEndpoints(String tenantId,
long startTime,
long endTime,
boolean compress)
This method returns the unbound endpoints (i.e.
|
protected static boolean |
hasMetrics(CommunicationSummaryStatistics css)
This method determines whether the communication summary statistics have defined
metrics.
|
protected static void |
initEndpointInfo(EndpointInfo endpoint)
This method initialises the endpoint information.
|
protected static void |
initEndpointInfo(List<EndpointInfo> endpoints)
This method initialises the list of endpoint information.
|
protected void |
obtainEndpoints(List<Node> nodes,
List<EndpointInfo> endpoints)
This method collects the information regarding endpoints.
|
protected void |
obtainProducerEndpoints(List<Node> nodes,
List<EndpointInfo> endpoints,
Map<String,EndpointInfo> map)
This method collects the information regarding endpoints for
contained producers.
|
void |
setConfigurationService(ConfigurationService cs)
This method sets the configuration service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getHostNames, getNodeSummaryStatistics, getNodeTimeseriesStatistics, getPropertyInfo, getTraceCompletionCount, getTraceCompletionFaultCount, getTraceCompletionFaultDetails, getTraceCompletionPercentiles, getTraceCompletionPropertyDetails, getTraceCompletions, getTraceCompletionTimeseriesStatistics, getTransactionInfo, storeCommunicationDetails, storeNodeDetails, storeTraceCompletionspublic ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService cs)
cs - The configuration serviceprotected abstract List<Trace> getFragments(String tenantId, Criteria criteria)
tenantId - The tenantcriteria - The criteriapublic List<EndpointInfo> getUnboundEndpoints(String tenantId, long startTime, long endTime, boolean compress)
AnalyticsServicegetUnboundEndpoints in interface AnalyticsServicetenantId - The optional tenant idstartTime - The start time in millisecondsendTime - The end time (if 0, then current time) in millisecondscompress - Whether to compress the list and show common patternspublic List<EndpointInfo> getBoundEndpoints(String tenantId, String transaction, long startTime, long endTime)
AnalyticsServicegetBoundEndpoints in interface AnalyticsServicetenantId - The optional tenant idtransaction - The transaction namestartTime - The start time in millisecondsendTime - The end time (if 0, then current time) in millisecondsprotected static List<EndpointInfo> compressEndpointInfo(List<EndpointInfo> endpoints)
endpoints - The endpointsprotected static void buildTree(AbstractAnalyticsService.EndpointPart parent, String[] parts, int index, String endpointType)
parent - The current parent nodeparts - The parts of the URI being processedindex - The current index into the parts arrayendpointType - The endpoint typeprotected static List<EndpointInfo> extractEndpointInfo(AbstractAnalyticsService.EndpointPart root)
root - The treeprotected static void initEndpointInfo(List<EndpointInfo> endpoints)
endpoints - The endpoint informationprotected static void initEndpointInfo(EndpointInfo endpoint)
endpoint - The endpoint informationpublic Collection<CommunicationSummaryStatistics> getCommunicationSummaryStatistics(String tenantId, Criteria criteria, boolean asTree)
AnalyticsServicegetCommunicationSummaryStatistics in interface AnalyticsServicetenantId - The tenant idcriteria - The criteriaasTree - Whether to build the nodes and links in a treeprotected static boolean hasMetrics(CommunicationSummaryStatistics css)
css - The communication summary structureprotected abstract Collection<CommunicationSummaryStatistics> doGetCommunicationSummaryStatistics(String tenantId, Criteria criteria)
tenantId - The tenant idcriteria - The criteriaprotected List<EndpointInfo> doGetUnboundEndpoints(String tenantId, List<Trace> fragments, boolean compress)
tenantId - The tenantfragments - The list of trace fragmentscompress - Whether the list should be compressed (i.e. to identify patterns)protected void obtainEndpoints(List<Node> nodes, List<EndpointInfo> endpoints)
nodes - The nodesendpoints - The list of endpointsprotected void obtainProducerEndpoints(List<Node> nodes, List<EndpointInfo> endpoints, Map<String,EndpointInfo> map)
nodes - The nodesendpoints - The list of endpoint infomap - The map of endpoints to infoCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.