Package org.apache.camel.spi
Interface ManagementStrategyFactory
-
public interface ManagementStrategyFactoryService Factory for ManagementStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagementStrategycreate(CamelContext context, Map<String,Object> properties)Creates theManagementStrategy.LifecycleStrategycreateLifecycle(CamelContext context)Creates the associatedLifecycleStrategythat the management strategy uses.voidsetupManagement(CamelContext camelContext, ManagementStrategy strategy, LifecycleStrategy lifecycle)Setup the management on theCamelContext.
-
-
-
Method Detail
-
create
ManagementStrategy create(CamelContext context, Map<String,Object> properties) throws Exception
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
LifecycleStrategy createLifecycle(CamelContext context) throws Exception
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)
-
-