Class InstrumentationInterceptStrategy

java.lang.Object
org.apache.camel.management.InstrumentationInterceptStrategy
All Implemented Interfaces:
org.apache.camel.spi.ManagementInterceptStrategy

public class InstrumentationInterceptStrategy extends Object implements org.apache.camel.spi.ManagementInterceptStrategy
This strategy class wraps targeted processors with a ManagementInterceptStrategy.InstrumentationProcessor. Each InstrumentationProcessor has an embedded ManagedPerformanceCounter for monitoring performance metrics.

This class looks up a map to determine which PerformanceCounter should go into the InstrumentationProcessor for any particular target processor.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.camel.spi.ManagementInterceptStrategy

    org.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
    InstrumentationInterceptStrategy(Map<org.apache.camel.NamedNode,PerformanceCounter> registeredCounters, Map<org.apache.camel.Processor,org.apache.camel.util.KeyValueHolder<org.apache.camel.NamedNode,org.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor<?>>> wrappedProcessors)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor<?>
     
    org.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor<?>
    createProcessor(org.apache.camel.NamedNode definition, org.apache.camel.Processor target)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InstrumentationInterceptStrategy

      public InstrumentationInterceptStrategy(Map<org.apache.camel.NamedNode,PerformanceCounter> registeredCounters, Map<org.apache.camel.Processor,org.apache.camel.util.KeyValueHolder<org.apache.camel.NamedNode,org.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor<?>>> wrappedProcessors)
  • Method Details

    • createProcessor

      public org.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor<?> createProcessor(String type)
      Specified by:
      createProcessor in interface org.apache.camel.spi.ManagementInterceptStrategy
    • createProcessor

      public org.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor<?> createProcessor(org.apache.camel.NamedNode definition, org.apache.camel.Processor target)
      Specified by:
      createProcessor in interface org.apache.camel.spi.ManagementInterceptStrategy