|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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)
PerformanceCounterExchange is complete.
completedExchange in interface PerformanceCounterexchange - the exchangetime - the time it took in millis to completepublic void failedExchange(Exchange exchange)
PerformanceCounterExchange failed.
failedExchange in interface PerformanceCounterexchange - the exchangepublic boolean isStatisticsEnabled()
PerformanceCounter
isStatisticsEnabled in interface PerformanceCounterpublic void setStatisticsEnabled(boolean statisticsEnabled)
PerformanceCounter
setStatisticsEnabled in interface PerformanceCounterstatisticsEnabled - whether statistics are enabled or not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||