etm.contrib.renderer.plugin
Class DumpOnShutDownPlugin

java.lang.Object
  extended by etm.contrib.renderer.plugin.DumpOnShutDownPlugin
All Implemented Interfaces:
AggregationListener, EtmMonitorListener, EtmPlugin
Direct Known Subclasses:
CommonsLoggingDumpOnShutdownPlugin, Log4jDumpOnShutdownPlugin, SystemOutDumpOnShutdownPlugin

public abstract class DumpOnShutDownPlugin
extends java.lang.Object
implements EtmPlugin, AggregationListener

Base class for Plugins that dump the current aggregated results during shutdown.

Version:
$Revision: 208 $
Author:
void.fm

Field Summary
protected  EtmMonitorContext ctx
           
protected  java.lang.String lineSeparator
           
protected  java.lang.String logName
           
 
Constructor Summary
protected DumpOnShutDownPlugin(java.lang.String aDescription)
           
 
Method Summary
 PluginMetaData getPluginMetaData()
          Returns the current Dump On Shutdown metadata.
 void init(EtmMonitorContext aCtx)
          Lifecycle Method, will be called before EtmPlugin.start(), after initalization of the current EtmMonitor runtime.
protected abstract  void logResetDetail(java.lang.String information)
          Logs aggregated statistics before reset.
 void onRootCreate(RootCreateEvent event)
           
 void onRootReset(RootResetEvent event)
           
 void onStateReset(MonitorResetEvent event)
           
 void preRootReset(PreRootResetEvent event)
           
 void preStateReset(PreMonitorResetEvent event)
           
 void setLogName(java.lang.String aLogName)
           
 
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
start, stop
 

Field Detail

logName

protected java.lang.String logName

ctx

protected EtmMonitorContext ctx

lineSeparator

protected java.lang.String lineSeparator
Constructor Detail

DumpOnShutDownPlugin

protected DumpOnShutDownPlugin(java.lang.String aDescription)
Method Detail

setLogName

public void setLogName(java.lang.String aLogName)

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.

getPluginMetaData

public PluginMetaData getPluginMetaData()
Returns the current Dump On Shutdown metadata. The provided map of properties contains

Specified by:
getPluginMetaData in interface EtmPlugin
Returns:
The plugin metadata

onRootCreate

public void onRootCreate(RootCreateEvent event)
Specified by:
onRootCreate in interface AggregationListener

preRootReset

public void preRootReset(PreRootResetEvent event)
Specified by:
preRootReset in interface AggregationListener

onRootReset

public void onRootReset(RootResetEvent event)
Specified by:
onRootReset in interface AggregationListener

preStateReset

public void preStateReset(PreMonitorResetEvent event)
Specified by:
preStateReset in interface AggregationListener

onStateReset

public void onStateReset(MonitorResetEvent event)
Specified by:
onStateReset in interface AggregationListener

logResetDetail

protected abstract void logResetDetail(java.lang.String information)
Logs aggregated statistics before reset.

Parameters:
information - The information that will be resetted.


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