|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.agent.Statistics
This class is used to keep track of the performance metrics that are collected. An instance of Statistics object is held in a static map in the StatisticMgr. StatisticsCollector also holds a private instance of this class to collect statistics for each operation in the request. StatisticsCollector then merges this instance of Statistics object with the statistics object held by StatisticsMgr. The aggregation of Statistics collected by StatisticsCollector with the StatisticsManager happens based on the collection strategy viz Local and Remote.
| Constructor Summary | |
Statistics(String applicationName,
String instanceId)
|
|
| Method Summary | |
AggregateOperationTree |
createAggregateOperationTree()
|
AggregateOperationTree |
getAggregateOperationTree()
|
String |
getApplicationName()
|
AggregateApiTime[] |
getCopyOfApiTimes()
|
AggregateApiTime |
getCopyOfHttpResponseTime()
|
AggregateOperationTree[] |
getCopyOfLastInovations()
|
LayerTime[] |
getCopyOfLayerTimes()
|
AggregateApiTime |
getHttpResponseSummary()
|
String |
getInstanceId()
|
JDBCStatisticRepository |
getJDBCStatisticsRepository()
|
boolean |
hasStatistics()
|
void |
merge(Statistics other)
Merge the data from another other statistics object with this |
void |
reset()
|
void |
updateApiStatistics(String apiName,
String apiType,
long time,
long exclusiveTime)
Update the performance statistics with the timing information of an API. |
void |
updateHTTPStatistics(String request,
long execTime)
|
void |
updateLayerStatistics(Map layerTimings)
|
void |
updateOperationStatistics(OperationTree operation)
Update the performance statistics with the timing information of an operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Statistics(String applicationName,
String instanceId)
| Method Detail |
public void updateApiStatistics(String apiName,
String apiType,
long time,
long exclusiveTime)
apiName - apiType - time - public void updateOperationStatistics(OperationTree operation)
operation - public AggregateApiTime[] getCopyOfApiTimes()
public AggregateOperationTree getAggregateOperationTree()
public LayerTime[] getCopyOfLayerTimes()
public AggregateOperationTree[] getCopyOfLastInovations()
public AggregateApiTime getCopyOfHttpResponseTime()
public AggregateOperationTree createAggregateOperationTree()
public void reset()
public void updateLayerStatistics(Map layerTimings)
public void updateHTTPStatistics(String request,
long execTime)
public AggregateApiTime getHttpResponseSummary()
public JDBCStatisticRepository getJDBCStatisticsRepository()
public void merge(Statistics other)
other - public String getApplicationName()
public String getInstanceId()
public boolean hasStatistics()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||