|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.management.CompositePerformanceCounter
public class CompositePerformanceCounter
A composite PerformanceCounter
is used for tracking performance statistics on both a per
context and route level, by issuing callbacks on both when an event happens.
ManagedCamelContext
can aggregate all stats from the routes.
Constructor Summary | |
---|---|
CompositePerformanceCounter(PerformanceCounter counter1,
PerformanceCounter counter2)
|
Method Summary | |
---|---|
void |
completedExchange(Exchange exchange,
long time)
Executed when an Exchange is complete. |
void |
failedExchange(Exchange exchange)
Executed when an Exchange failed. |
boolean |
isStatisticsEnabled()
Are statistics enabled? They can be enabled and disabled at runtime |
void |
setStatisticsEnabled(boolean statisticsEnabled)
Sets whether statistics are enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositePerformanceCounter(PerformanceCounter counter1, PerformanceCounter counter2)
Method Detail |
---|
public void completedExchange(Exchange exchange, long time)
PerformanceCounter
Exchange
is complete.
completedExchange
in interface PerformanceCounter
exchange
- the exchangetime
- the time it took in millis to completepublic void failedExchange(Exchange exchange)
PerformanceCounter
Exchange
failed.
failedExchange
in interface PerformanceCounter
exchange
- the exchangepublic boolean isStatisticsEnabled()
PerformanceCounter
isStatisticsEnabled
in interface PerformanceCounter
public void setStatisticsEnabled(boolean statisticsEnabled)
PerformanceCounter
setStatisticsEnabled
in interface PerformanceCounter
statisticsEnabled
- whether statistics are enabled or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |