Package org.apache.camel.management
Interface PerformanceCounter
- All Known Implementing Classes:
CompositePerformanceCounter
,DelegatePerformanceCounter
,ManagedAggregateProcessor
,ManagedBeanProcessor
,ManagedCamelContext
,ManagedChoice
,ManagedClaimCheck
,ManagedConvertBody
,ManagedCustomLoadBalancer
,ManagedDelayer
,ManagedDisabled
,ManagedDynamicRouter
,ManagedEnricher
,ManagedFailoverLoadBalancer
,ManagedFilter
,ManagedIdempotentConsumer
,ManagedLog
,ManagedLoop
,ManagedMarshal
,ManagedMulticast
,ManagedPerformanceCounter
,ManagedPollEnricher
,ManagedProcess
,ManagedProcessor
,ManagedRandomLoadBalancer
,ManagedRecipientList
,ManagedRemoveHeader
,ManagedRemoveHeaders
,ManagedRemoveProperties
,ManagedRemoveProperty
,ManagedResequencer
,ManagedRollback
,ManagedRoundRobinLoadBalancer
,ManagedRoute
,ManagedRoutingSlip
,ManagedSamplingThrottler
,ManagedScript
,ManagedSendDynamicProcessor
,ManagedSendProcessor
,ManagedSetBody
,ManagedSetExchangePattern
,ManagedSetHeader
,ManagedSetProperty
,ManagedSplitter
,ManagedStep
,ManagedStickyLoadBalancer
,ManagedStop
,ManagedSuspendableRoute
,ManagedThreads
,ManagedThrottler
,ManagedThroughputLogger
,ManagedThrowException
,ManagedTopicLoadBalancer
,ManagedTransformer
,ManagedUnmarshal
,ManagedValidate
,ManagedWeightedLoadBalancer
,ManagedWireTapProcessor
public interface PerformanceCounter
A counter that gathers performance metrics when an
Exchange
is routed in Camel.-
Method Summary
Modifier and TypeMethodDescriptionvoid
completedExchange
(org.apache.camel.Exchange exchange, long time) Executed when anExchange
is complete.void
failedExchange
(org.apache.camel.Exchange exchange) Executed when anExchange
failed.boolean
Are statistics enabled?void
processExchange
(org.apache.camel.Exchange exchange, String type) Executed when anExchange
is about to be processed.void
setStatisticsEnabled
(boolean statisticsEnabled) Sets whether statistics are enabled.
-
Method Details
-
processExchange
Executed when anExchange
is about to be processed.- Parameters:
exchange
- the exchangetype
- the node type
-
completedExchange
Executed when anExchange
is complete.- Parameters:
exchange
- the exchangetime
- the time it took in millis to complete
-
failedExchange
Executed when anExchange
failed.- Parameters:
exchange
- the exchange
-
isStatisticsEnabled
boolean isStatisticsEnabled()Are statistics enabled? They can be enabled and disabled at runtime- Returns:
- whether statistics are enabled or not
-
setStatisticsEnabled
Sets whether statistics are enabled. They can be enabled and disabled at runtime- Parameters:
statisticsEnabled
- whether statistics are enabled or not
-