intarsys runtime library

de.intarsys.tools.monitor
Class CounterMonitor

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

public class CounterMonitor
extends Monitor

A monitor for taking time samples in the application.


Field Summary
 
Fields inherited from class de.intarsys.tools.monitor.Monitor
ATTR_AVG, ATTR_COUNT, ATTR_EFFECTIVE, ATTR_FIRST, ATTR_LAST, ATTR_MAX, ATTR_MAXACTIVE, ATTR_MIN, ATTR_NAME, ATTR_TOTAL
 
Constructor Summary
CounterMonitor()
           
CounterMonitor(String name)
          Create instance
CounterMonitor(String name, Counter counter)
           
 
Method Summary
 void configure(Element element)
           
 Counter getCounter()
           
 
Methods inherited from class de.intarsys.tools.monitor.Monitor
getActive, getData, getFormattedData, isRelative, reset, setRelative, toString, toTableString
 
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

CounterMonitor

public CounterMonitor()

CounterMonitor

public CounterMonitor(String name)
Create instance

Parameters:
name - monitor name

CounterMonitor

public CounterMonitor(String name,
                      Counter counter)
Method Detail

configure

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

getCounter

public Counter getCounter()
Returns:
Returns the counter.

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.