org.mule.management.stats
Class ComponentStatistics
java.lang.Object
org.mule.management.stats.ComponentStatistics
- All Implemented Interfaces:
- java.io.Serializable, Statistics
public class ComponentStatistics
- extends java.lang.Object
- implements Statistics
- See Also:
- Serialized Form
Constructor Summary |
ComponentStatistics()
The constructor added to initialize the interval time in ms that stats
are measured for from the property statIntervalTime. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Log logger
ComponentStatistics
public ComponentStatistics()
- The constructor added to initialize the interval time in ms that stats
are measured for from the property statIntervalTime. If the property is
not set or cannot be parsed, disable interval time and just compute
stats from start of mule.
TODO: The code to create and use an interval time for measuring average execution
time could be removed once a complete solution is available in MuleHQ to
monitor this
clear
public void clear()
isEnabled
public boolean isEnabled()
- Description copied from interface:
Statistics
- Are statistics logged
- Specified by:
isEnabled
in interface Statistics
logSummary
public void logSummary()
logSummary
public void logSummary(java.io.PrintWriter printer)
setEnabled
public void setEnabled(boolean b)
getMaxExecutionTime
public long getMaxExecutionTime()
getMinExecutionTime
public long getMinExecutionTime()
getTotalExecutionTime
public long getTotalExecutionTime()
getExecutedEvents
public long getExecutedEvents()
addExecutionTime
public void addExecutionTime(long time)
getAverageExecutionTime
public long getAverageExecutionTime()
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.