|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.grandcentral.appstats.impl.StatAggregatorImpl
Base StatAggregator implementation. Handles all of the aggregationMethods in Stat interface.
Copyright: Copyright (c) 2002
Company: Grand Central Communications
| Field Summary | |
static long |
DEFAULT_EXPAVGSAMPLESIZE
== 200, the default sample size for exponential average calculation |
protected boolean |
m_generateHierarchy
If enabled, then root level stats(not of type Stat.TYPE_HEIRARCH) will be duplicated with heirarchy information. |
| Fields inherited from interface com.grandcentral.appstats.StatAggregator |
SUFFIX_AVG, SUFFIX_AVGCOUNT, SUFFIX_AVGSUM, SUFFIX_EXPAVG, SUFFIX_EXPAVGEXPONENT, SUFFIX_MAX, SUFFIX_MIN, SUFFIX_SUM |
| Method Summary | |
void |
aggregate(Task dest,
Stat newStat,
java.lang.String sourceTaskName)
aggregates a Stat based on its statName and aggregation method. |
void |
calculate(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
|
void |
calculateAvg(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
calculation logic for Stat.AGGREGATE_AVG aggregation method. |
void |
calculateExpAvg(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
calculation logic for Stat.AGGREGATE_EXPAVG aggregation method. |
void |
calculateMax(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
|
void |
calculateMin(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
calculation logic for Stat.AGGREGATE_MIN aggregation method. |
void |
calculateSum(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
calculation logic for Stat.AGGREGATE_SUM aggregation method. |
static StatAggregator |
getInstance()
|
boolean |
isGenerateHierarchy()
|
void |
processError(Task dest,
java.lang.Throwable error,
java.lang.String sourceTaskName)
Processes a captured Exception and adds it to the list of exceptions. |
void |
setGenerateHierarchy(boolean generate)
If enabled, new stats that are not part of a hierarchy will be duplicated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long DEFAULT_EXPAVGSAMPLESIZE
protected boolean m_generateHierarchy
| Method Detail |
public void aggregate(Task dest,
Stat newStat,
java.lang.String sourceTaskName)
StatAggregatoraggregate in interface StatAggregatorsourceTaskName - is the name of the task from where the stat was generated
used only if newStat.containsType(Stat.TYPE_HIERARCH)||generateHierarchy==true
public void processError(Task dest,
java.lang.Throwable error,
java.lang.String sourceTaskName)
processError in interface StatAggregatordest - destination Taskerror - Exception that should be handledsourceTaskName - name of the new stat's source
public void calculate(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
public void calculateMin(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
public void calculateMax(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
public void calculateSum(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
public void calculateAvg(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
public void calculateExpAvg(Task dest,
Stat newStat,
java.lang.String targetNamePrefix,
boolean hierarchy)
public boolean isGenerateHierarchy()
public void setGenerateHierarchy(boolean generate)
generate - true/falsepublic static StatAggregator getInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||