etm.core.configuration
Class BasicEtmConfigurator

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

public class BasicEtmConfigurator
extends java.lang.Object

BasicEtmConfigurator configuration implementation for programmatic monitor configuration.

For custom configuration see XmlEtmConfigurator.

Be aware that you need to start and stop the EtmMonitor before using it. Example:

  BasicEtmConfigurator.configure();

  EtmMonitor etmMonitor = EtmManager.getEtmMonitor();
  etmMonitor.start();
  ...
 

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

Constructor Summary
BasicEtmConfigurator()
           
 
Method Summary
static void configure()
          Configures EtmManager to use a FlatMonitor with default settings.
static void configure(boolean nested)
          Configures EtmManager to use a FlatMonitor or NestedMonitor depending on the given parameter with default settings.
static void configure(boolean nested, Aggregator aggregator)
          Configures EtmManager to use a FlatMonitor or NestedMonitor depending on the given parameter with default timer and given aggregator chain.
static void configure(boolean nested, ExecutionTimer timer)
          Configures EtmManager to use a FlatMonitor or NestedMonitor depending on the given parameter with default aggregator settings and given time.
static void configure(boolean nested, ExecutionTimer timer, Aggregator aggregator)
          Configures EtmManager to use a FlatMonitor or NestedMonitor depending on the given parameter with the given ExecutionTimer and Aggregator chain..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicEtmConfigurator

public BasicEtmConfigurator()
Method Detail

configure

public static void configure()
Configures EtmManager to use a FlatMonitor with default settings. Same as configure(false).


configure

public static void configure(boolean nested)
Configures EtmManager to use a FlatMonitor or NestedMonitor depending on the given parameter with default settings.

Parameters:
nested - True creates an NestedMonitor, false a FlatMonitor.

configure

public static void configure(boolean nested,
                             Aggregator aggregator)
Configures EtmManager to use a FlatMonitor or NestedMonitor depending on the given parameter with default timer and given aggregator chain.

Parameters:
nested - True creates an NestedMonitor, false a FlatMonitor.
aggregator - The aggregator chain to be used.

configure

public static void configure(boolean nested,
                             ExecutionTimer timer)
Configures EtmManager to use a FlatMonitor or NestedMonitor depending on the given parameter with default aggregator settings and given time.

Parameters:
nested - True creates an NestedMonitor, false a FlatMonitor.
timer - The ExecutionTimer to be used.

configure

public static void configure(boolean nested,
                             ExecutionTimer timer,
                             Aggregator aggregator)
Configures EtmManager to use a FlatMonitor or NestedMonitor depending on the given parameter with the given ExecutionTimer and Aggregator chain..

Parameters:
nested - True creates an NestedMonitor, false a FlatMonitor.
aggregator - The aggregator chain to be used.
timer - The ExecutionTimer to be used.


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