com.ibm.rational.test.lt.execution.results.data.aggregation.aggregators

Class 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:
    • Field Detail

      • 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
    • Constructor Detail

      • AverageAggregator

        public AverageAggregator()
    • Method Detail

      • 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
      • 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
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.