|
||||||||||
| 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(long time)
Executed when an Exchange is complete. |
void |
failedExchange()
Executed when an Exchange failed. |
boolean |
isStatisticsEnabled()
Is statistics enabled. |
void |
setCounter(PerformanceCounter counter)
|
void |
setStatisticsEnabled(boolean statisticsEnabled)
Sets whether statistics is enabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatePerformanceCounter()
| Method Detail |
|---|
public void setCounter(PerformanceCounter counter)
public void completedExchange(long time)
PerformanceCounterExchange is complete.
completedExchange in interface PerformanceCountertime - the time it took in millis to complete itpublic void failedExchange()
PerformanceCounterExchange failed.
failedExchange in interface PerformanceCounterpublic boolean isStatisticsEnabled()
PerformanceCounter
isStatisticsEnabled in interface PerformanceCounterpublic void setStatisticsEnabled(boolean statisticsEnabled)
PerformanceCounter
setStatisticsEnabled in interface PerformanceCounterstatisticsEnabled - whether statistics is enabled or not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||