Package org.apache.camel.api.management
Interface ManagedCamelContext
public interface ManagedCamelContext
-
Method Summary
Modifier and TypeMethodDescriptionGets the managed Camel CamelContext client apidefault ManagedConsumerMBeanGets the managed consumer client api from any of the routes which with the given route id<T extends ManagedConsumerMBean>
TgetManagedConsumer(String id, Class<T> type) Gets the managed consumer client api from any of the routes which with the given route iddefault ManagedProcessorMBeanGets the managed processor client api from any of the routes which with the given id<T extends ManagedProcessorMBean>
TgetManagedProcessor(String id, Class<T> type) Gets the managed processor client api from any of the routes which with the given iddefault ManagedRouteMBeangetManagedRoute(String routeId) Gets the managed route client api with the given route id<T extends ManagedRouteMBean>
TgetManagedRoute(String routeId, Class<T> type) Gets the managed route client api with the given route idGets all the managed routesgetManagedRoutesByGroup(String groupId) Gets all the managed routes for the given groupgetManagedStep(String id) Gets the managed step client api from any of the routes which with the given id
-
Method Details
-
getManagedCamelContext
Gets the managed Camel CamelContext client api -
getManagedProcessor
Gets the managed processor client api from any of the routes which with the given id- Parameters:
id- id of the processor- Returns:
- the processor or null if not found
-
getManagedProcessor
Gets the managed processor client api from any of the routes which with the given id- Parameters:
id- id of the processortype- the managed processor type from theorg.apache.camel.api.management.mbeanpackage.- Returns:
- the processor or null if not found
- Throws:
IllegalArgumentException- if the type is not compliant
-
getManagedStep
Gets the managed step client api from any of the routes which with the given id- Parameters:
id- id of the step- Returns:
- the step or null if not found
-
getManagedRoute
Gets the managed route client api with the given route id- Parameters:
routeId- id of the route- Returns:
- the route or null if not found
-
getManagedRoute
Gets the managed route client api with the given route id- Parameters:
routeId- id of the routetype- the managed route type from theorg.apache.camel.api.management.mbeanpackage.- Returns:
- the route or null if not found
- Throws:
IllegalArgumentException- if the type is not compliant
-
getManagedRoutes
Gets all the managed routes- Returns:
- the routes or an empty list if no routes exists
-
getManagedRoutesByGroup
Gets all the managed routes for the given group- Parameters:
groupId- the group id- Returns:
- the routes or an empty list if no routes exists for the group
-
getManagedConsumer
Gets the managed consumer client api from any of the routes which with the given route id- Parameters:
id- route id having the consumer- Returns:
- the consumer or null if not found
-
getManagedConsumer
Gets the managed consumer client api from any of the routes which with the given route id- Parameters:
id- route id having the consumertype- the managed consumer type from theorg.apache.camel.api.management.mbeanpackage.- Returns:
- the consumer or null if not found
- Throws:
IllegalArgumentException- if the type is not compliant
-