|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagementStrategy
Strategy for management.
This is totally pluggable allowing to use a custom or 3rd party management implementation with Camel.
EventNotifier
,
EventFactory
,
ManagementNamingStrategy
,
ManagementAgent
Method Summary | |
---|---|
void |
addEventNotifier(EventNotifier eventNotifier)
Adds the event notifier to use. |
EventFactory |
getEventFactory()
Gets the event factory |
List<EventNotifier> |
getEventNotifiers()
Gets the event notifiers. |
ManagementAgent |
getManagementAgent()
Gets the management agent |
ManagementNamingStrategy |
getManagementNamingStrategy()
Gets the naming strategy to use |
ManagementObjectStrategy |
getManagementObjectStrategy()
Gets the object strategy to use |
ManagementStatisticsLevel |
getStatisticsLevel()
Gets the statistics level |
boolean |
isOnlyManageProcessorWithCustomId()
Checks whether only to manage processors if they have been configured with a custom id |
boolean |
manageProcessor(ProcessorDefinition<?> definition)
Filter whether the processor should be managed or not. |
void |
onlyManageProcessorWithCustomId(boolean flag)
Sets the whether only manage processors if they have been configured with a custom id Default is false. |
boolean |
removeEventNotifier(EventNotifier eventNotifier)
Removes the event notifier |
void |
setEventFactory(EventFactory eventFactory)
Sets the event factory to use |
void |
setEventNotifiers(List<EventNotifier> eventNotifier)
Sets the list of event notifier to use. |
void |
setManagementAgent(ManagementAgent managementAgent)
Sets the management agent to use |
void |
setManagementNamingStrategy(ManagementNamingStrategy strategy)
Sets the naming strategy to use |
void |
setManagementObjectStrategy(ManagementObjectStrategy strategy)
Sets the object strategy to use |
void |
setStatisticsLevel(ManagementStatisticsLevel level)
Sets the statistics level Default is ManagementStatisticsLevel.All |
Methods inherited from interface org.fusesource.commons.management.ManagementStrategy |
---|
createStatistic, getManagedObjectName, isManaged, manageNamedObject, manageObject, notify, unmanageNamedObject, unmanageObject |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Method Detail |
---|
List<EventNotifier> getEventNotifiers()
void setEventNotifiers(List<EventNotifier> eventNotifier)
eventNotifier
- list of event notifiersvoid addEventNotifier(EventNotifier eventNotifier)
Service
, as otherwise
it would not be used.
eventNotifier
- event notifierboolean removeEventNotifier(EventNotifier eventNotifier)
eventNotifier
- event notifier to remove
EventFactory getEventFactory()
void setEventFactory(EventFactory eventFactory)
eventFactory
- event factoryManagementNamingStrategy getManagementNamingStrategy()
void setManagementNamingStrategy(ManagementNamingStrategy strategy)
strategy
- naming strategyManagementObjectStrategy getManagementObjectStrategy()
void setManagementObjectStrategy(ManagementObjectStrategy strategy)
strategy
- object strategyManagementAgent getManagementAgent()
void setManagementAgent(ManagementAgent managementAgent)
managementAgent
- management agentboolean manageProcessor(ProcessorDefinition<?> definition)
definition
- definition of the processor
void onlyManageProcessorWithCustomId(boolean flag)
flag
- true will only manage if custom id was set.boolean isOnlyManageProcessorWithCustomId()
void setStatisticsLevel(ManagementStatisticsLevel level)
ManagementStatisticsLevel.All
level
- the new levelManagementStatisticsLevel getStatisticsLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |