|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jrobin.data.Aggregates
public class Aggregates
Simple class which holds aggregated values (MIN, MAX, FIRST, LAST, AVERAGE and TOTAL). You
don't need to create objects of this class directly. Objects of this class are returned from
getAggregates()
method in
FetchData
and
DataProcessor.getAggregates(String)
DataProcessor} classes.
Field Summary |
---|
Fields inherited from interface org.jrobin.core.ConsolFuns |
---|
CF_AVERAGE, CF_FIRST, CF_LAST, CF_MAX, CF_MIN, CF_TOTAL |
Method Summary | |
---|---|
java.lang.String |
dump()
Returns String representing all aggregated values. |
double |
getAggregate(java.lang.String consolFun)
Returns single aggregated value for the give consolidation function |
double |
getAverage()
Returns average |
double |
getFirst()
Returns the first falue |
double |
getLast()
Returns the last value |
double |
getMax()
Returns the maximum value |
double |
getMin()
Returns the minimal value |
double |
getTotal()
Returns total value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public double getMin()
public double getMax()
public double getFirst()
public double getLast()
public double getAverage()
public double getTotal()
public double getAggregate(java.lang.String consolFun) throws RrdException
consolFun
- Consolidation function: MIN, MAX, FIRST, LAST, AVERAGE, TOTAL. These constanst
are conveniently defined in the ConsolFuns
interface.
RrdException
- Thrown if unsupported consolidation function is suppliedpublic java.lang.String dump()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |