public class ComponentStatistics extends Object implements Statistics
Constructor and Description |
---|
ComponentStatistics()
The constructor added to initialize the interval time in ms that stats
are measured for from the property statIntervalTime.
|
Modifier and Type | Method and Description |
---|---|
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) |
public ComponentStatistics()
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()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.