etm.contrib.rrd.rrd4j
Class Rrd4jAggregationWriter

java.lang.Object
  extended by etm.contrib.rrd.core.AbstractRrdExecutionWriter
      extended by etm.contrib.rrd.rrd4j.Rrd4jAggregationWriter
All Implemented Interfaces:
RrdExecutionWriter

public class Rrd4jAggregationWriter
extends AbstractRrdExecutionWriter

A Rrd4j DB Writer writes

Since:
1.2.0
Version:
$Revision: 166 $
Author:
void.fm

Field Summary
 
Fields inherited from class etm.contrib.rrd.core.AbstractRrdExecutionWriter
endInterval, increment, max, min, startInterval, total, transactions
 
Constructor Summary
Rrd4jAggregationWriter(org.rrd4j.core.RrdDb aDb)
          Creates a new writer that stores
 
Method Summary
protected  long calculateTimestamp(EtmPoint measurement)
           
protected  void flushStatus()
           
 void onBegin()
           
 void onFinish()
           
protected  boolean validateDataSource(org.rrd4j.core.RrdDb aDb, java.lang.String name)
           
 
Methods inherited from class etm.contrib.rrd.core.AbstractRrdExecutionWriter
initAggregation, onNextMeasurement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rrd4jAggregationWriter

public Rrd4jAggregationWriter(org.rrd4j.core.RrdDb aDb)
Creates a new writer that stores

Parameters:
aDb - A writeable RRD DB.
Throws:
java.lang.IllegalArgumentException - If the rrd db definition does not contain all required datasources
Method Detail

onBegin

public void onBegin()

onFinish

public void onFinish()

calculateTimestamp

protected long calculateTimestamp(EtmPoint measurement)
Specified by:
calculateTimestamp in class AbstractRrdExecutionWriter

flushStatus

protected void flushStatus()
Specified by:
flushStatus in class AbstractRrdExecutionWriter

validateDataSource

protected boolean validateDataSource(org.rrd4j.core.RrdDb aDb,
                                     java.lang.String name)


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.