etm.core.configuration
Class EtmMonitorConfig

java.lang.Object
  extended by etm.core.configuration.EtmMonitorConfig

public class EtmMonitorConfig
extends java.lang.Object

Represent the configuration for an EtmMonitor instance.

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

Constructor Summary
EtmMonitorConfig()
           
 
Method Summary
 void addExtension(EtmPluginConfig aPluginConfig)
          Appends a new plugin config.
 void appendAggregator(EtmAggregatorConfig aAggregatorConfig)
          Appends a given config at the end of the currently existing Aggregator configurations.
 EtmAggregatorConfig getAggregatorRoot()
          Returns the root aggregator config.
 java.util.List getEtmAggregators()
          Returns a list of EtmAggregatorConfig elements is descending order (first chain element will be first).
 java.lang.Class getMonitorClass()
          Returns the monitor class.
 java.util.List getPluginConfig()
          Returns a list of EtmPluginConfig or null
 java.lang.Class getTimerClass()
          Returns the timer class.
 boolean isAutostart()
           
 void setAggregatorRoot(EtmAggregatorConfig aRootConfig)
          Sets the aggregator root config, which is the aggregator that is called after a potentially exisiting list of aggregators has processed raw performance results.
 void setAutostart(boolean aAutostart)
           
 void setMonitorType(java.lang.String monitorType)
          Sets the ExecutionMonitor type.
 void setTimerType(java.lang.String timerType)
          Sets the timer type for the monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EtmMonitorConfig

public EtmMonitorConfig()
Method Detail

isAutostart

public boolean isAutostart()

setAutostart

public void setAutostart(boolean aAutostart)

getMonitorClass

public java.lang.Class getMonitorClass()
Returns the monitor class. Defaults to NestedMonitor.

Returns:
The monitor class.

getTimerClass

public java.lang.Class getTimerClass()
Returns the timer class. May return null.

Returns:
The timer class or null.

getEtmAggregators

public java.util.List getEtmAggregators()
Returns a list of EtmAggregatorConfig elements is descending order (first chain element will be first).

Returns:
A list of elements or null.
Throws:
EtmConfigurationException - Thrown in case there is a list of aggregators but no root aggregator.

getAggregatorRoot

public EtmAggregatorConfig getAggregatorRoot()
Returns the root aggregator config.

Returns:
The aggregator root config. May be null.

getPluginConfig

public java.util.List getPluginConfig()
Returns a list of EtmPluginConfig or null

Returns:
The plugin config.

setMonitorType

public void setMonitorType(java.lang.String monitorType)
Sets the ExecutionMonitor type. Valid values are flat (FlatMonitor), nested (NestedMonitor) and null (NullMonitor) or EtmMonitor classname.

Parameters:
monitorType - The type of the EtmMonitor.
Throws:
EtmConfigurationException - Thrown to indicate that given monitor type is not supported.

setTimerType

public void setTimerType(java.lang.String timerType)
Sets the timer type for the monitor. Supported values are default (DefaultTimer), sun (SunHighResTimer) and jdk50 (Java15NanoTimer) or valid Timer class name.

Parameters:
timerType - The timer type name.
Throws:
EtmConfigurationException - Thrown to indicate that the given configuration is invalid or not supported for this runtime.

appendAggregator

public void appendAggregator(EtmAggregatorConfig aAggregatorConfig)
Appends a given config at the end of the currently existing Aggregator configurations.

Parameters:
aAggregatorConfig - The AggregatorConfig to append.

setAggregatorRoot

public void setAggregatorRoot(EtmAggregatorConfig aRootConfig)
Sets the aggregator root config, which is the aggregator that is called after a potentially exisiting list of aggregators has processed raw performance results.

Parameters:
aRootConfig - The root config.

addExtension

public void addExtension(EtmPluginConfig aPluginConfig)
Appends a new plugin config.

Parameters:
aPluginConfig - The plugin config.


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