Class 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 extends Object>
    • 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)  
    • Constructor Detail

      • 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 Detail

      • 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