|
||||||||||
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(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)
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 notpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |