com.ibm.rational.test.lt.execution.results.data.aggregation.aggregators
Class AverageAggregator
java.lang.Object
com.ibm.rational.test.lt.execution.results.internal.data.adapters.RPTStatisticalAdapter
com.ibm.rational.test.lt.execution.results.data.aggregation.Aggregator
com.ibm.rational.test.lt.execution.results.data.aggregation.StandardAggregator
com.ibm.rational.test.lt.execution.results.data.aggregation.aggregators.AverageAggregator
- All Implemented Interfaces:
- com.ibm.rational.test.lt.execution.results.data.aggregation.IAggregator, org.eclipse.emf.common.notify.Adapter
public class AverageAggregator
- extends com.ibm.rational.test.lt.execution.results.data.aggregation.StandardAggregator
May be deployed in 2 modes, Node Singleton and non-Singleton. In non-Singleton mode, the
Cumulative average is calculated for a statistical object given that objects interval average
data. In this mode, 4 targets are required in this order:
-- SDCounterDescriptor for cumulative average
-- SDCounterDesriptor for cumulative average basis
-- SDCounterDescriptor for sumxsq
-- SDCounter Descriptor for standard deviation.
3 dependencies are required in this order:
-- SDCounterDescriptor for Average interval data
-- SDCounterDescriptor for Average interval basis
-- SDCounterDescriptor for Average interval standard deviation.
An example of the non-Singleton mode deployment is as follows:
The second mode in which this Aggregator may be deployed is as a node-Singleton. In this mode, the average response time
for all like elements is calculated both for the current interval and cumulatively for the run. In
this mode, 8 Targets are required in this order:
-- SDCounterDescriptor for cumulative average response time for all like elements
-- SDCounterDescriptor for cumulative average basis for all like elements
-- SDCounterDescriptor for cumulative average sumxsq for all like elements
-- SDCounterDescriptor for cumulative average standard deviation for all like elements
-- SDCounterDescriptor for interval average response time for all like elements
-- SDCounterDescriptor for interval average basis for all like elements
-- SDCounterDescriptor for interval average sumxsq for all like elements
-- SDCounterDescriptor for interval average standard deviation for all like elements.
3 dependencies are required in this order:
-- SDCounterDescriptor for Average interval data
-- SDCounterDescriptor for Average interval basis
-- SDCounter Descriptor for Average interval sumxsq.
An example deployment of this aggregator in node-singleton mode is as follows:
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary |
protected com.ibm.rational.test.lt.execution.results.data.collections.ResultsList<org.eclipse.hyades.model.statistical.SDSnapshotObservation> |
countObservations
|
protected com.ibm.rational.test.lt.execution.results.data.collections.ResultsList<org.eclipse.hyades.model.statistical.SDSnapshotObservation> |
sumXsqObservations
|
Fields inherited from class com.ibm.rational.test.lt.execution.results.internal.data.adapters.RPTStatisticalAdapter |
defaultSynchronizer, facade, latestTarget, obsoleteNotifiers, parentAdapter, targets |
Method Summary |
void |
cleanup()
|
com.ibm.rational.test.lt.execution.results.data.collections.StringList |
getFirstTargetPath()
|
AggregationJob |
getJob()
|
Aggregator.DataRepresentation |
getSmoothedRepresentation(com.ibm.rational.test.lt.execution.results.view.data.RPTDataQuery dataset,
org.eclipse.hyades.model.statistical.SDSnapshotObservation observation,
com.ibm.rational.test.lt.execution.results.internal.data.aggregation.RPTTimeRange timeRange,
int numPoints,
double startTime,
double endTime,
String label)
|
protected boolean |
initTargetDescriptors()
infrastructure use only |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
if there were no observations in the descriptor when the target was set, we will catch them here for
the countObservations collection |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
overridden so we can save observations in countObservations collection for quick reference. |
Methods inherited from class com.ibm.rational.test.lt.execution.results.data.aggregation.StandardAggregator |
getLastContiguousValue, getLastDiscreteValue |
Methods inherited from class com.ibm.rational.test.lt.execution.results.data.aggregation.Aggregator |
_getSmoothedRepresentation, clearData, convertSampleTimeToSystemTime, convertToTimeRangeRelativeTime, debugStop, debugStop, debugStop, getActiveNotifiers, getBasePathList, getConfigElement, getDescriptorClassificationString, getJobProcessingNodeName, getNodeName, getNotifiers, getSampleIntervalWidth, getSampleWindowIndex, getTargetDescriptor, getTargetDescriptorCount, getTargetDescriptors, getValueAddedByNotifier, isCritical, isStarted, logAddDataEvent, queJob, registerObservationAdapter, resolveDescriptorPath, setBasePathList, setConfigElement, setCritical, setRunBasedTime, setTargetNodeName, setTimeRange, setWildCardSubs, siftForSpecificCollection, startup, usesRunBasedTime |
Methods inherited from class com.ibm.rational.test.lt.execution.results.internal.data.adapters.RPTStatisticalAdapter |
adapt, adapt, adapt, adapt, getFacade, getParentAdapter, getTarget, getTargetCollection, getTimeRange, isAdapterForType, isObsolete, registerForCleanup, retainAtTimeRangeCompletion, setFacade, setObsolete, setObsolete, setObsolete, unAdapt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.rational.test.lt.execution.results.data.aggregation.IAggregator |
setFacade |
countObservations
protected com.ibm.rational.test.lt.execution.results.data.collections.ResultsList<org.eclipse.hyades.model.statistical.SDSnapshotObservation> countObservations
sumXsqObservations
protected com.ibm.rational.test.lt.execution.results.data.collections.ResultsList<org.eclipse.hyades.model.statistical.SDSnapshotObservation> sumXsqObservations
AverageAggregator
public AverageAggregator()
getJob
public AggregationJob getJob()
- Specified by:
getJob
in interface com.ibm.rational.test.lt.execution.results.data.aggregation.IAggregator
- Specified by:
getJob
in class Aggregator
setTarget
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
- overridden so we can save observations in countObservations collection for quick reference.
- Specified by:
setTarget
in interface com.ibm.rational.test.lt.execution.results.data.aggregation.IAggregator
- Specified by:
setTarget
in interface org.eclipse.emf.common.notify.Adapter
- Overrides:
setTarget
in class Aggregator
notifyChanged
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
- if there were no observations in the descriptor when the target was set, we will catch them here for
the countObservations collection
- Specified by:
notifyChanged
in interface com.ibm.rational.test.lt.execution.results.data.aggregation.IAggregator
- Specified by:
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
- Overrides:
notifyChanged
in class Aggregator
cleanup
public void cleanup()
- Specified by:
cleanup
in interface com.ibm.rational.test.lt.execution.results.data.aggregation.IAggregator
- Overrides:
cleanup
in class Aggregator
initTargetDescriptors
protected boolean initTargetDescriptors()
- Description copied from class:
Aggregator
- infrastructure use only
- Overrides:
initTargetDescriptors
in class Aggregator
- Returns:
- boolean
getSmoothedRepresentation
public Aggregator.DataRepresentation getSmoothedRepresentation(com.ibm.rational.test.lt.execution.results.view.data.RPTDataQuery dataset,
org.eclipse.hyades.model.statistical.SDSnapshotObservation observation,
com.ibm.rational.test.lt.execution.results.internal.data.aggregation.RPTTimeRange timeRange,
int numPoints,
double startTime,
double endTime,
String label)
throws Aggregator.UnsmoothableDataException
- Specified by:
getSmoothedRepresentation
in interface com.ibm.rational.test.lt.execution.results.data.aggregation.IAggregator
- Overrides:
getSmoothedRepresentation
in class Aggregator
- Throws:
Aggregator.UnsmoothableDataException
getFirstTargetPath
public com.ibm.rational.test.lt.execution.results.data.collections.StringList getFirstTargetPath()
- Specified by:
getFirstTargetPath
in interface com.ibm.rational.test.lt.execution.results.data.aggregation.IAggregator
- Specified by:
getFirstTargetPath
in class Aggregator
© Copyright IBM Corp. 2012. All rights reserved.