Package org.apache.camel.management

Examples of org.apache.camel.management.InstrumentationProcessor


        Processor processor = unwrap(consumerRoute.getProcessor());

        DeadLetterChannel deadLetterChannel = assertIsInstanceOf(DeadLetterChannel.class, processor);
        Processor outputProcessor = deadLetterChannel.getOutput();
        if (!Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {
            InstrumentationProcessor interceptor =
                assertIsInstanceOf(InstrumentationProcessor.class, outputProcessor);
            outputProcessor = interceptor.getProcessor();
        }

        assertIsInstanceOf(StreamResequencer.class, outputProcessor);
    }
View Full Code Here


                                                                          processor);
                Processor outputProcessor = loggingProcessor.getOutput();
                if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {
                    sendProcessor = assertIsInstanceOf(SendProcessor.class, outputProcessor);
                } else {
                    InstrumentationProcessor interceptor =
                        assertIsInstanceOf(InstrumentationProcessor.class, outputProcessor);
                    sendProcessor = assertIsInstanceOf(SendProcessor.class, interceptor.getProcessor());
                }
            } else {
                assertEquals("From endpoint", "seda:b", endpointUri);
                DeadLetterChannel deadLetterChannel = assertIsInstanceOf(DeadLetterChannel.class, processor);
                Processor outputProcessor = deadLetterChannel.getOutput();
                if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {
                    sendProcessor = assertIsInstanceOf(SendProcessor.class, outputProcessor);
                } else {
                    InstrumentationProcessor interceptor =
                        assertIsInstanceOf(InstrumentationProcessor.class, outputProcessor);
                    sendProcessor = assertIsInstanceOf(SendProcessor.class, interceptor.getProcessor());
                }
            }
            log.debug("For " + endpointUri + " using: " + sendProcessor);
        }
    }
View Full Code Here

            LoggingErrorHandler loggingProcessor = assertIsInstanceOf(LoggingErrorHandler.class, processor);

            if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {  
                processor = loggingProcessor.getOutput();
            } else {
                InstrumentationProcessor interceptor =
                    assertIsInstanceOf(InstrumentationProcessor.class, loggingProcessor.getOutput());
                processor = interceptor.getProcessor();
            }
           
            FilterProcessor filterProcessor = assertIsInstanceOf(FilterProcessor.class, processor);
            SendProcessor sendProcessor = assertIsInstanceOf(SendProcessor.class, filterProcessor.getProcessor());
View Full Code Here

                target = unitOfWorkProcessor;
            }

            // and wrap it by a instrumentation processor that is to be used for performance stats
            // for this particular route
            InstrumentationProcessor wrapper = new InstrumentationProcessor();
            wrapper.setType("route");
            wrapper.setProcessor(target);

            // and create the route that wraps the UoW
            Route edcr = new EventDrivenConsumerRoute(this, getEndpoint(), wrapper);
            // create the route id
            String routeId = route.idOrCreate(getCamelContext().getNodeIdFactory());
View Full Code Here

            // wrap in route inflight processor to track number of inflight exchanges for the route
            RouteInflightRepositoryProcessor inflight = new RouteInflightRepositoryProcessor(camelContext.getInflightRepository(), target);

            // and wrap it by a instrumentation processor that is to be used for performance stats
            // for this particular route
            InstrumentationProcessor instrument = new InstrumentationProcessor();
            instrument.setType("route");
            instrument.setProcessor(inflight);

            // and create the route that wraps the UoW
            Route edcr = new EventDrivenConsumerRoute(this, getEndpoint(), instrument);
            // create the route id
            String routeId = route.idOrCreate(getCamelContext().getNodeIdFactory());
View Full Code Here

                target = routePolicyProcessor;
            }

            // and wrap it by a instrumentation processor that is to be used for performance stats
            // for this particular route
            InstrumentationProcessor wrapper = new InstrumentationProcessor();
            wrapper.setType("route");
            wrapper.setProcessor(target);

            // and create the route that wraps the UoW
            Route edcr = new EventDrivenConsumerRoute(this, getEndpoint(), wrapper);
            // create the route id
            String routeId = route.idOrCreate(getCamelContext().getNodeIdFactory());
View Full Code Here

TOP

Related Classes of org.apache.camel.management.InstrumentationProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.