Package org.apache.camel.management
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
ConstructorsConstructorDescriptionInstrumentationInterceptStrategy
(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 TypeMethodDescriptionorg.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor
<?> createProcessor
(String type) org.apache.camel.spi.ManagementInterceptStrategy.InstrumentationProcessor
<?> createProcessor
(org.apache.camel.NamedNode definition, org.apache.camel.Processor target)
-
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 interfaceorg.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 interfaceorg.apache.camel.spi.ManagementInterceptStrategy
-