com.sun.btrace.aggregation
Interface AggregationValue


public interface AggregationValue

An element of aggregated data stored in an Aggregation. Concrete implementations of this interface will implement different aggregating functions.

Author:
Christian Glencross

Method Summary
 void add(long data)
          Adds a data item to the aggregated value.
 void clear()
          Removes all data items previously added.
 java.lang.Object getData()
           
 long getValue()
           
 

Method Detail

add

void add(long data)
Adds a data item to the aggregated value.

Parameters:
data - the data value

clear

void clear()
Removes all data items previously added.


getValue

long getValue()
Returns:
the aggregated value of all data items added since the aggregation was created or last cleared. The aggregation function is determined by the concrete implementation of the interface.

getData

java.lang.Object getData()
Returns:
an object representation of the aggregated value. For most implementations this may be equivalent to Integer.valueOf( getValue() ). More complex aggregations such may return objects representing histograms, etc.