org.apache.camel.management
Interface PerformanceCounter

All Known Implementing Classes:
DelegatePerformanceCounter, ManagedDelayer, ManagedPerformanceCounter, ManagedProcessor, ManagedRoute, ManagedSendProcessor, ManagedThrottler

public interface PerformanceCounter

A counter that gathers performance metrics when Exchange are routed in Camel.

Version:
$Revision: 823448 $

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 setStatisticsEnabled(boolean statisticsEnabled)
          Sets whether statistics is enabled.
 

Method Detail

completedExchange

void completedExchange(long time)
Executed when an Exchange is complete.

Parameters:
time - the time it took in millis to complete it

failedExchange

void failedExchange()
Executed when an Exchange failed.


isStatisticsEnabled

boolean isStatisticsEnabled()
Is statistics enabled.

They can be enabled and disabled at runtime

Returns:
whether statistics is enabled or not

setStatisticsEnabled

void setStatisticsEnabled(boolean statisticsEnabled)
Sets whether statistics is enabled.

They can be enabled and disabled at runtime

Parameters:
statisticsEnabled - whether statistics is enabled or not


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.