|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
PerformanceCounter
Exchange
is complete.
completedExchange
in interface PerformanceCounter
time
- the time it took in millis to complete itpublic void failedExchange()
PerformanceCounter
Exchange
failed.
failedExchange
in interface PerformanceCounter
public boolean isStatisticsEnabled()
PerformanceCounter
isStatisticsEnabled
in interface PerformanceCounter
public void setStatisticsEnabled(boolean statisticsEnabled)
PerformanceCounter
setStatisticsEnabled
in interface PerformanceCounter
statisticsEnabled
- whether statistics is enabled or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |