IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.execution.results.data.aggregation
Class AggregationJob

java.lang.Object
  extended by com.ibm.rational.test.lt.execution.results.data.aggregation.AggregationJob
Direct Known Subclasses:
RateAggregator.RateJob

public abstract class AggregationJob
extends Object

Submitted by Aggregators for data processing during each sample interval


Field Summary
protected  Aggregator aggregator
           
 
Constructor Summary
AggregationJob(Aggregator aggregator)
          constructor
 
Method Summary
 Aggregator getAggregator()
           
 boolean isPreviouslyAttempted()
          returns a boolean indicating whether or not this job has been attempted previously.
protected abstract  void processAddedDataForSampleInterval(AggregationTimeBand timeBand)
          called by the Aggregation infrastructure for a job to process the data held by its parent Aggregator
 void run()
          called by infrastructure for a job to process the data held by its parent Aggregator.
 void setPreviouslyAttempted(boolean previouslyAttempted)
          sets the flag on this AggregationJob to indicate that it has been previously attempted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aggregator

protected Aggregator aggregator
Constructor Detail

AggregationJob

public AggregationJob(Aggregator aggregator)
constructor

Method Detail

processAddedDataForSampleInterval

protected abstract void processAddedDataForSampleInterval(AggregationTimeBand timeBand)
                                                   throws AggregationException
called by the Aggregation infrastructure for a job to process the data held by its parent Aggregator

Parameters:
timeBand -
Throws:
AggregationException

run

public void run()
         throws AggregationException
called by infrastructure for a job to process the data held by its parent Aggregator. In most cases, it is not necessary for implementors to override this method. In most cases, implementation of processAddedDataForSampleInterval is sufficient.

Throws:
AggregationException

getAggregator

public Aggregator getAggregator()
Returns:
Returns the job's parent agregator.

isPreviouslyAttempted

public boolean isPreviouslyAttempted()
returns a boolean indicating whether or not this job has been attempted previously.

Returns:
boolean

setPreviouslyAttempted

public final void setPreviouslyAttempted(boolean previouslyAttempted)
sets the flag on this AggregationJob to indicate that it has been previously attempted. Jobs are only tried twice.


IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.