etm.contrib.rrd.core
Class AbstractRrdExecutionWriter

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

public abstract class AbstractRrdExecutionWriter
extends java.lang.Object
implements RrdExecutionWriter

Base implementation for RrdExecutionWriters.

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

Field Summary
protected  long endInterval
           
protected  long increment
           
protected  double max
           
protected  double min
           
protected  long startInterval
           
protected  double total
           
protected  int transactions
           
 
Constructor Summary
protected AbstractRrdExecutionWriter(long aStartInterval, long aIncrement)
           
 
Method Summary
protected abstract  long calculateTimestamp(EtmPoint measurement)
           
protected abstract  void flushStatus()
           
protected  void initAggregation()
           
 void onNextMeasurement(EtmPoint measurement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface etm.contrib.rrd.core.RrdExecutionWriter
onBegin, onFinish
 

Field Detail

startInterval

protected long startInterval

endInterval

protected long endInterval

increment

protected long increment

transactions

protected int transactions

min

protected double min

max

protected double max

total

protected double total
Constructor Detail

AbstractRrdExecutionWriter

protected AbstractRrdExecutionWriter(long aStartInterval,
                                     long aIncrement)
Method Detail

onNextMeasurement

public void onNextMeasurement(EtmPoint measurement)
Specified by:
onNextMeasurement in interface RrdExecutionWriter

initAggregation

protected void initAggregation()

calculateTimestamp

protected abstract long calculateTimestamp(EtmPoint measurement)

flushStatus

protected abstract void flushStatus()


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