Package org.apache.camel.impl

Examples of org.apache.camel.impl.ServiceSupport


        return camelContext.getName();
    }

    public String getVersion() {
        if (camelContext instanceof ServiceSupport) {
            ServiceSupport serviceSupport = (ServiceSupport) camelContext;
            return serviceSupport.getVersion();
        }
        return null;
    }
View Full Code Here


        this.route = route;
    }

    private static boolean isCamelStopping(CamelContext context) {
        if (context instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) context;
            return ss.isStopping() || ss.isStopped();
        }
        return false;
    }
View Full Code Here

        return false;
    }

    private boolean isRoutePolicyRunAllowed() {
        if (routePolicy instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) routePolicy;
            return ss.isRunAllowed();
        }
        return true;
    }
View Full Code Here

                return true;
            } else {
                return false;
            }
        } else if (service instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) service;
            if (ss.getStatus().isStartable()) {
                startService(service);
                return true;
            } else {
                return false;
            }
View Full Code Here

                return true;
            } else {
                return false;
            }
        } else if (service instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) service;
            if (ss.getStatus().isStoppable()) {
                stopServices(service);
                return true;
            } else {
                return false;
            }
View Full Code Here

     *
     * @return <tt>true</tt> if already stopped, otherwise <tt>false</tt>
     */
    public static boolean isStopped(Object value) {
        if (value instanceof ServiceSupport) {
            ServiceSupport service = (ServiceSupport) value;
            if (service.isStopping() || service.isStopped()) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

     *
     * @return <tt>true</tt> if already started, otherwise <tt>false</tt>
     */
    public static boolean isStarted(Object value) {
        if (value instanceof ServiceSupport) {
            ServiceSupport service = (ServiceSupport) value;
            if (service.isStarting() || service.isStarted()) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

     *
     * @return <tt>true</tt> if already stopped, otherwise <tt>false</tt>
     */
    public static boolean isStopped(Object value) {
        if (value instanceof ServiceSupport) {
            ServiceSupport service = (ServiceSupport) value;
            if (service.isStopping() || service.isStopped()) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

     *
     * @return <tt>true</tt> if already started, otherwise <tt>false</tt>
     */
    public static boolean isStarted(Object value) {
        if (value instanceof ServiceSupport) {
            ServiceSupport service = (ServiceSupport) value;
            if (service.isStarting() || service.isStarted()) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

                return true;
            } else {
                return false;
            }
        } else if (service instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) service;
            if (ss.getStatus().isStartable()) {
                startService(service);
                return true;
            } else {
                return false;
            }
View Full Code Here

TOP

Related Classes of org.apache.camel.impl.ServiceSupport

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.