public abstract class AbstractAnalyticsService extends Object implements AnalyticsService
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractAnalyticsService.URIPart
This class represents a node in a tree of URI parts.
|
| Constructor and Description |
|---|
AbstractAnalyticsService() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
buildTree(AbstractAnalyticsService.URIPart parent,
String[] parts,
int index,
String endpointType)
This method builds a tree.
|
protected static List<URIInfo> |
compressURIInfo(List<URIInfo> uris)
This method compresses the list of URIs to identify
common patterns.
|
protected static String |
createRegex(String uri,
boolean meta)
This method derives the regular expression from the supplied
URI.
|
protected List<URIInfo> |
doGetUnboundURIs(String tenantId,
List<BusinessTransaction> fragments,
boolean compress)
This method obtains the unbound URIs from a list of business
transaction fragments.
|
protected static List<URIInfo> |
extractURIInfo(AbstractAnalyticsService.URIPart root)
This method expands a tree into the collapsed set of URIs.
|
List<String> |
getBoundURIs(String tenantId,
String businessTransaction,
long startTime,
long endTime)
This method returns the bound URIs associated with a business
transaction.
|
ConfigurationService |
getConfigurationService()
This method gets the configuration service.
|
protected abstract List<BusinessTransaction> |
getFragments(String tenantId,
Criteria criteria)
This method returns the list of business transactions for the supplied criteria.
|
List<PropertyInfo> |
getPropertyInfo(String tenantId,
String businessTransaction,
long startTime,
long endTime)
This method returns the properties
associated with a business transaction during the specified
time range.
|
List<URIInfo> |
getUnboundURIs(String tenantId,
long startTime,
long endTime,
boolean compress)
This method returns the unbound URIs (i.e.
|
protected static void |
initURIInfo(List<URIInfo> uris)
This method initialises the list of URI information.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getAlertCount, getCompletionCount, getCompletionFaultCount, getCompletionFaultDetails, getCompletionPercentiles, getCompletionPropertyDetails, getCompletionTimeseriesStatistics, getHostNames, getNodeSummaryStatistics, getNodeTimeseriesStatistics, storeCompletionTimes, storeNodeDetailspublic ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService cs)
cs - The configuration serviceprotected abstract List<BusinessTransaction> getFragments(String tenantId, Criteria criteria)
tenantId - The tenantcriteria - The criteriapublic List<URIInfo> getUnboundURIs(String tenantId, long startTime, long endTime, boolean compress)
AnalyticsServicegetUnboundURIs in interface AnalyticsServicetenantId - The optional tenant idstartTime - The start timeendTime - The end time (if 0, then current time)compress - Whether to compress the list and show common patternspublic List<String> getBoundURIs(String tenantId, String businessTransaction, long startTime, long endTime)
AnalyticsServicegetBoundURIs in interface AnalyticsServicetenantId - The optional tenant idbusinessTransaction - The business transaction namestartTime - The start timeendTime - The end time (if 0, then current time)public List<PropertyInfo> getPropertyInfo(String tenantId, String businessTransaction, long startTime, long endTime)
AnalyticsServicegetPropertyInfo in interface AnalyticsServicetenantId - The optional tenant idbusinessTransaction - The business transaction namestartTime - The start timeendTime - The end time (if 0, then current time)protected static List<URIInfo> compressURIInfo(List<URIInfo> uris)
uris - The URIsprotected static void buildTree(AbstractAnalyticsService.URIPart 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<URIInfo> extractURIInfo(AbstractAnalyticsService.URIPart root)
root - The treeprotected static void initURIInfo(List<URIInfo> uris)
uris - The URI informationprotected List<URIInfo> doGetUnboundURIs(String tenantId, List<BusinessTransaction> fragments, boolean compress)
tenantId - The tenantfragments - The list of business txn fragmentscompress - Whether the list should be compressed (i.e. to identify patterns)protected void obtainURIs(List<Node> nodes, List<String> uris)
nodes - The nodesuris - The list of URIsprotected 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 infoCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.