org.apache.camel.management
Class InstrumentationInterceptStrategy
java.lang.Object
org.apache.camel.management.InstrumentationInterceptStrategy
- All Implemented Interfaces:
- InterceptStrategy
public class InstrumentationInterceptStrategy
- extends Object
- implements InterceptStrategy
This strategy class wraps targeted processors with
InstrumentationProcessor
. Each InstrumentationProcessor is
into embeds a PerformanceCounter
. This class looks up a map
to determine which PerformanceCounter should go into the
InstrumentationProcessor for any particular target processor.
- Version:
- $Revision: 41580 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstrumentationInterceptStrategy
public InstrumentationInterceptStrategy(Map<ProcessorType,PerformanceCounter> counterMap)
wrapProcessorInInterceptors
public Processor wrapProcessorInInterceptors(ProcessorType processorType,
Processor target)
throws Exception
- Description copied from interface:
InterceptStrategy
- This method is invoked by
{@link ProcessorType#wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route.
- Specified by:
wrapProcessorInInterceptors
in interface InterceptStrategy
- Parameters:
processorType
- the object that invokes this methodtarget
- the processor to be wrapped
- Returns:
- processor wrapped with an interceptor or not wrapped
- Throws:
Exception
Copyright © 2008 IONA Open Source Community. All Rights Reserved.