streamcruncher.api.aggregator
Class DiffBaselineProvider<T extends java.lang.Comparable>

java.lang.Object
  extended by streamcruncher.api.aggregator.DiffBaselineProvider<T>
All Implemented Interfaces:
Provider
Direct Known Subclasses:
ClusterHealthTest.CountDiffBaselineProvider, ClusterHealthTest.StatsDiffBaselineProvider

public class DiffBaselineProvider<T extends java.lang.Comparable>
extends java.lang.Object
implements Provider

This Provider Class allows the customization of those Partitions with Aggregates that have been declared with the $diff keyword. This Class is used to compute the Baseline for performing the "Diff: New Value - Baseline Value". By default, the Value from the previous cycle (absolute value, not the diff) is used as the Baseline.

Note: Sub-classes must return the Type appropriate for the Aggregate Function on which it is configured.


Field Summary
static java.lang.String name
           
 
Constructor Summary
DiffBaselineProvider()
           
 
Method Summary
 T getBaseline(T oldValue, T newValue)
           
static java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public static final java.lang.String name
See Also:
Constant Field Values
Constructor Detail

DiffBaselineProvider

public DiffBaselineProvider()
Method Detail

getBaseline

public T getBaseline(T oldValue,
                     T newValue)
Parameters:
oldValue - Aggregate from previous cycle
newValue - Aggregate from current cycle
Returns:
Baseline value.

getName

public static java.lang.String getName()
Returns:
"DiffBaseline/Default".


Copyright © 2006 - 2008 Ashwin Jayaprakash. All Rights Reserved. (Docs generated on 3-November-2007 )