|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.management.DelegatePerformanceCounter
public class DelegatePerformanceCounter
Delegates to another PerformanceCounter.
LifecycleStrategy
then we link this to the real ManagedPerformanceCounter mbean
so the mbean can gather statistics.
This delegation is needed as how Camel is designed to register services in the
LifecycleStrategy in various stages.
| Constructor Summary | |
|---|---|
DelegatePerformanceCounter()
|
|
| 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 |
setCounter(PerformanceCounter counter)
|
void |
setStatisticsEnabled(boolean statisticsEnabled)
Sets whether statistics are enabled. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatePerformanceCounter()
| Method Detail |
|---|
public void setCounter(PerformanceCounter counter)
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 notpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||