Package org.apache.camel.spi
Interface ManagementStrategyFactory
public interface ManagementStrategyFactory
Service Factory for ManagementStrategy
-
Method Summary
Modifier and TypeMethodDescriptioncreate(CamelContext context, Map<String, Object> properties) Creates theManagementStrategy.createLifecycle(CamelContext context) Creates the associatedLifecycleStrategythat the management strategy uses.voidsetupManagement(CamelContext camelContext, ManagementStrategy strategy, LifecycleStrategy lifecycle) Setup the management on theCamelContext.
-
Method Details
-
create
Creates theManagementStrategy.- Parameters:
context- the camel contextproperties- optional options to set onManagementAgent- Returns:
- the created strategy
- Throws:
Exception- is thrown if error creating the strategy
-
createLifecycle
Creates the associatedLifecycleStrategythat the management strategy uses.- Parameters:
context- the camel context- Returns:
- the created lifecycle strategy
- Throws:
Exception- is thrown if error creating the lifecycle strategy
-
setupManagement
void setupManagement(CamelContext camelContext, ManagementStrategy strategy, LifecycleStrategy lifecycle) Setup the management on theCamelContext. This allows implementations to provide the logic for setting up management on Camel.- Parameters:
camelContext- the camel contextstrategy- the management strategylifecycle- the associated lifecycle strategy (optional)
-