public interface ManagementStrategyFactory
Modifier and Type | Method and Description |
---|---|
ManagementStrategy |
create(CamelContext context,
Map<String,Object> properties)
Creates the
ManagementStrategy . |
LifecycleStrategy |
createLifecycle(CamelContext context)
Creates the associated
LifecycleStrategy that the management strategy uses. |
void |
setupManagement(CamelContext camelContext,
ManagementStrategy strategy,
LifecycleStrategy lifecycle)
Setup the management on the
CamelContext . |
ManagementStrategy create(CamelContext context, Map<String,Object> properties) throws Exception
ManagementStrategy
.context
- the camel contextproperties
- optional options to set on ManagementAgent
Exception
- is thrown if error creating the strategyLifecycleStrategy createLifecycle(CamelContext context) throws Exception
LifecycleStrategy
that the management strategy uses.context
- the camel contextException
- is thrown if error creating the lifecycle strategyvoid setupManagement(CamelContext camelContext, ManagementStrategy strategy, LifecycleStrategy lifecycle)
CamelContext
.
This allows implementations to provide the logic for setting up management on Camel.camelContext
- the camel contextstrategy
- the management strategylifecycle
- the associated lifecycle strategy (optional)Apache Camel