Search in sources :

Example 1 with ManagedSuspendableRoute

use of org.apache.camel.management.mbean.ManagedSuspendableRoute in project camel by apache.

the class DefaultManagementObjectStrategy method getManagedObjectForRoute.

public Object getManagedObjectForRoute(CamelContext context, Route route) {
    ManagedRoute mr;
    if (route.supportsSuspension()) {
        mr = new ManagedSuspendableRoute((ModelCamelContext) context, route);
    } else {
        mr = new ManagedRoute((ModelCamelContext) context, route);
    }
    mr.init(context.getManagementStrategy());
    return mr;
}
Also used : ManagedRoute(org.apache.camel.management.mbean.ManagedRoute) ManagedSuspendableRoute(org.apache.camel.management.mbean.ManagedSuspendableRoute) ModelCamelContext(org.apache.camel.model.ModelCamelContext)

Aggregations

ManagedRoute (org.apache.camel.management.mbean.ManagedRoute)1 ManagedSuspendableRoute (org.apache.camel.management.mbean.ManagedSuspendableRoute)1 ModelCamelContext (org.apache.camel.model.ModelCamelContext)1