etm.contrib.rrd.core
Class AbstractRrdPlugin

java.lang.Object
  extended by etm.contrib.rrd.core.AbstractRrdPlugin
All Implemented Interfaces:
CollectionListener, EtmMonitorListener, EtmPlugin
Direct Known Subclasses:
Rrd4jPlugin

public abstract class AbstractRrdPlugin
extends java.lang.Object
implements EtmPlugin, CollectionListener

Abtract base class for plugins that store collected details in a RRD database.

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

Field Summary
protected  EtmMonitorContext ctx
           
protected  RrdDestination[] destinations
           
 
Constructor Summary
AbstractRrdPlugin()
           
 
Method Summary
protected  void doValidateChain()
           
protected abstract  RrdDestination[] getDestinations()
           
 void init(EtmMonitorContext aCtx)
          Lifecycle Method, will be called before EtmPlugin.start(), after initalization of the current EtmMonitor runtime.
 void onCollect(CollectEvent event)
           
 void start()
          Callback for plugin start.
 void stop()
          Callback for plugin stop()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface etm.core.plugin.EtmPlugin
getPluginMetaData
 

Field Detail

ctx

protected EtmMonitorContext ctx

destinations

protected RrdDestination[] destinations
Constructor Detail

AbstractRrdPlugin

public AbstractRrdPlugin()
Method Detail

init

public void init(EtmMonitorContext aCtx)
Description copied from interface: EtmPlugin
Lifecycle Method, will be called before EtmPlugin.start(), after initalization of the current EtmMonitor runtime.

Specified by:
init in interface EtmPlugin
Parameters:
aCtx - The current EtmMonitor Context.

start

public void start()
Description copied from interface: EtmPlugin
Callback for plugin start.

Specified by:
start in interface EtmPlugin

stop

public void stop()
Description copied from interface: EtmPlugin
Callback for plugin stop()

Specified by:
stop in interface EtmPlugin

onCollect

public void onCollect(CollectEvent event)
Specified by:
onCollect in interface CollectionListener

doValidateChain

protected void doValidateChain()

getDestinations

protected abstract RrdDestination[] getDestinations()


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