|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.management.stats.ComponentStatistics
public class ComponentStatistics
Field Summary | |
---|---|
protected Log |
logger
|
Constructor Summary | |
---|---|
ComponentStatistics()
The constructor added to initialize the interval time in ms that stats are measured for from the property statIntervalTime. |
Method Summary | |
---|---|
void |
addCompleteExecutionTime(long time)
Add the complete execution time for a flow that also reports branhc execution times |
void |
addExecutionBranchTime(boolean first,
long branch,
long total)
Add a new execution-time measurement for one branch of processing an event |
void |
addExecutionTime(long time)
Add a new execution-time measurement for processing an event. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
Constructor Detail |
---|
public ComponentStatistics()
Method Detail |
---|
public void clear()
public boolean isEnabled()
Statistics
isEnabled
in interface Statistics
public void logSummary()
public void logSummary(PrintWriter printer)
public void setEnabled(boolean b)
public long getMaxExecutionTime()
public long getMinExecutionTime()
public long getTotalExecutionTime()
public long getExecutedEvents()
public void addExecutionBranchTime(boolean first, long branch, long total)
first
- true if this is the first branch for this eventbranch
- the time to execute this branchtotal
- the total time (so far) for processing this eventpublic void addCompleteExecutionTime(long time)
public void addExecutionTime(long time)
time
- public long getAverageExecutionTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |