Package org.apache.camel.api.management
Interface ManagedCamelContext
-
public interface ManagedCamelContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ManagedCamelContextMBean
getManagedCamelContext()
Gets the managed Camel CamelContext client apidefault ManagedProcessorMBean
getManagedProcessor(String id)
Gets 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 ManagedRouteMBean
getManagedRoute(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 idManagedStepMBean
getManagedStep(String id)
Gets the managed step client api from any of the routes which with the given id
-
-
-
Method Detail
-
getManagedCamelContext
ManagedCamelContextMBean getManagedCamelContext()
Gets the managed Camel CamelContext client api
-
getManagedProcessor
default ManagedProcessorMBean getManagedProcessor(String id)
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
<T extends ManagedProcessorMBean> T getManagedProcessor(String id, Class<T> type)
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.mbean
package.- Returns:
- the processor or null if not found
- Throws:
IllegalArgumentException
- if the type is not compliant
-
getManagedStep
ManagedStepMBean getManagedStep(String id)
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
default ManagedRouteMBean getManagedRoute(String routeId)
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
<T extends ManagedRouteMBean> T getManagedRoute(String routeId, Class<T> type)
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.mbean
package.- Returns:
- the route or null if not found
- Throws:
IllegalArgumentException
- if the type is not compliant
-
-