Examples of EventNotifier


Examples of org.apache.camel.spi.EventNotifier

        }
        doNotifyEvent(notifier, event);
    }

    public static void notifyServiceStartupFailure(CamelContext context, Object service, Exception cause) {
        EventNotifier notifier = context.getManagementStrategy().getEventNotifier();
        if (notifier == null) {
            return;
        }
        EventFactory factory = context.getManagementStrategy().getEventFactory();
        if (factory == null) {
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        }
        doNotifyEvent(notifier, event);
    }

    public static void notifyRouteStarted(CamelContext context, Route route) {
        EventNotifier notifier = context.getManagementStrategy().getEventNotifier();
        if (notifier == null) {
            return;
        }
        EventFactory factory = context.getManagementStrategy().getEventFactory();
        if (factory == null) {
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        }
        doNotifyEvent(notifier, event);
    }

    public static void notifyRouteStopped(CamelContext context, Route route) {
        EventNotifier notifier = context.getManagementStrategy().getEventNotifier();
        if (notifier == null) {
            return;
        }
        EventFactory factory = context.getManagementStrategy().getEventFactory();
        if (factory == null) {
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        }
        doNotifyEvent(notifier, event);
    }

    public static void notifyExchangeCreated(CamelContext context, Exchange exchange) {
        EventNotifier notifier = context.getManagementStrategy().getEventNotifier();
        if (notifier == null) {
            return;
        }
        EventFactory factory = context.getManagementStrategy().getEventFactory();
        if (factory == null) {
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        }
        doNotifyEvent(notifier, event);
    }

    public static void notifyExchangeDone(CamelContext context, Exchange exchange) {
        EventNotifier notifier = context.getManagementStrategy().getEventNotifier();
        if (notifier == null) {
            return;
        }
        EventFactory factory = context.getManagementStrategy().getEventFactory();
        if (factory == null) {
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        }
        doNotifyEvent(notifier, event);
    }

    public static void notifyExchangeFailed(CamelContext context, Exchange exchange) {
        EventNotifier notifier = context.getManagementStrategy().getEventNotifier();
        if (notifier == null) {
            return;
        }
        EventFactory factory = context.getManagementStrategy().getEventFactory();
        if (factory == null) {
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        doNotifyEvent(notifier, event);
    }

    public static void notifyExchangeFailureHandled(CamelContext context, Exchange exchange, Processor failureHandler,
                                                    boolean deadLetterChannel) {
        EventNotifier notifier = context.getManagementStrategy().getEventNotifier();
        if (notifier == null) {
            return;
        }
        EventFactory factory = context.getManagementStrategy().getEventFactory();
        if (factory == null) {
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        }
        // set the event notifier strategies if defined
        Map<String, EventNotifier> eventNotifiers = getContext().getRegistry().lookupByType(EventNotifier.class);
        if (eventNotifiers != null && !eventNotifiers.isEmpty()) {
            for (Entry<String, EventNotifier> entry : eventNotifiers.entrySet()) {
                EventNotifier notifier = entry.getValue();
                // do not add if already added, for instance a tracer that is also an InterceptStrategy class
                if (!getContext().getManagementStrategy().getEventNotifiers().contains(notifier)) {
                    LOG.info("Using custom EventNotifier with id: " + entry.getKey() + " and implementation: " + notifier);
                    getContext().getManagementStrategy().addEventNotifier(notifier);
                }
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        }
        // set the event notifier strategies if defined
        Map<String, EventNotifier> eventNotifiers = getContext().getRegistry().lookupByType(EventNotifier.class);
        if (eventNotifiers != null && !eventNotifiers.isEmpty()) {
            for (Entry<String, EventNotifier> entry : eventNotifiers.entrySet()) {
                EventNotifier notifier = entry.getValue();
                // do not add if already added, for instance a tracer that is also an InterceptStrategy class
                if (!getContext().getManagementStrategy().getEventNotifiers().contains(notifier)) {
                    LOG.info("Using custom EventNotifier with id: " + entry.getKey() + " and implementation: " + notifier);
                    getContext().getManagementStrategy().addEventNotifier(notifier);
                }
View Full Code Here

Examples of org.apache.camel.spi.EventNotifier

        if (eventFactory != null) {
            LOG.info("Using custom EventFactory: " + eventFactory);
            getContext().getManagementStrategy().setEventFactory(eventFactory);
        }

        EventNotifier eventNotifier = getBeanForType(EventNotifier.class);
        if (eventNotifier != null) {
            LOG.info("Using custom EventNotifier: " + eventNotifier);
            getContext().getManagementStrategy().setEventNotifier(eventNotifier);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.