org.mule.management.stats
Class ComponentStatistics

java.lang.Object
  extended by org.mule.management.stats.ComponentStatistics
All Implemented Interfaces:
Serializable, Statistics

public class ComponentStatistics
extends Object
implements Statistics

See Also:
Serialized Form

Constructor Summary
ComponentStatistics()
           
 
Method Summary
 void addExecutionTime(long time)
           
 void clear()
           
 long getAverageExecutionTime()
           
 long getExecutedEvents()
           
 long getMaxExecutionTime()
           
 long getMinExecutionTime()
           
 long getTotalExecutionTime()
           
 boolean isEnabled()
          Are statistics logged
 void logSummary()
           
 void logSummary(PrintWriter printer)
           
 void setEnabled(boolean b)
          Enable statistics logs (this is a dynamic parameter)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentStatistics

public ComponentStatistics()
Method Detail

clear

public void clear()
Specified by:
clear in interface Statistics

isEnabled

public boolean isEnabled()
Description copied from interface: Statistics
Are statistics logged

Specified by:
isEnabled in interface Statistics

logSummary

public void logSummary()
Specified by:
logSummary in interface Statistics

logSummary

public void logSummary(PrintWriter printer)

setEnabled

public void setEnabled(boolean b)
Description copied from interface: Statistics
Enable statistics logs (this is a dynamic parameter)

Specified by:
setEnabled in interface Statistics

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-2008 MuleSource, Inc.. All Rights Reserved.