intarsys runtime library

de.intarsys.tools.monitor
Class CompositeMonitor

java.lang.Object
  extended by de.intarsys.tools.monitor.AbstractMonitor
      extended by de.intarsys.tools.monitor.CompositeMonitor
All Implemented Interfaces:
IElementConfigurable, IMonitor

public class CompositeMonitor
extends AbstractMonitor


Constructor Summary
CompositeMonitor()
           
CompositeMonitor(String name)
           
 
Method Summary
 void addMonitor(IMonitor monitor)
           
 void configure(Element element)
           
 IMonitor[] getChildren()
           
 Map getData()
          A map containing key/value pairs representing all statistical informations derived from the samples.
 Map getFormattedData()
          A map containing key/value pairs with string representations for the statistical information from getData.
 void reset()
          Reset all information in this monitor.
 String toString()
           
 
Methods inherited from class de.intarsys.tools.monitor.AbstractMonitor
attach, detach, getCollectAll, getCurrentTrace, getDefaultLevel, getLevel, getLogCycle, getLogger, getName, getTraces, setCollectAll, setDefaultLevel, setLevel, setLogCycle, setLogger, setName, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeMonitor

public CompositeMonitor()

CompositeMonitor

public CompositeMonitor(String name)
Method Detail

addMonitor

public void addMonitor(IMonitor monitor)

configure

public void configure(Element element)
               throws ElementConfigurationException
Specified by:
configure in interface IElementConfigurable
Overrides:
configure in class AbstractMonitor
Throws:
ElementConfigurationException

getChildren

public IMonitor[] getChildren()

getData

public Map getData()
Description copied from interface: IMonitor
A map containing key/value pairs representing all statistical informations derived from the samples.

Returns:
A map containing key/value pairs representing all statistical informations derived from the samples.

getFormattedData

public Map getFormattedData()
Description copied from interface: IMonitor
A map containing key/value pairs with string representations for the statistical information from getData.

Returns:
A map containing key/value pairs with string representations for the statistical information from getData.

reset

public void reset()
Description copied from interface: IMonitor
Reset all information in this monitor.

Specified by:
reset in interface IMonitor
Overrides:
reset in class AbstractMonitor

toString

public String toString()
Overrides:
toString in class Object

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.