org.apache.camel.management
Class ManagedManagementStrategy
java.lang.Object
org.apache.camel.management.DefaultManagementStrategy
org.apache.camel.management.ManagedManagementStrategy
- All Implemented Interfaces:
- CamelContextAware, Service, org.fusesource.commons.management.ManagementStrategy
public class ManagedManagementStrategy
- extends DefaultManagementStrategy
A JMX capable ManagementStrategy that Camel by default uses if possible.
Camel detects whether its possible to use this JMX capable strategy and if not then Camel
will fallback to the DefaultManagementStrategy instead.
- Version:
- $Revision: 961398 $
- See Also:
ManagementStrategy,
DefaultManagementStrategy
| Methods inherited from class org.apache.camel.management.DefaultManagementStrategy |
addEventNotifier, getCamelContext, getEventFactory, getEventNotifiers, getManagementAgent, getManagementNamingStrategy, getStatisticsLevel, isOnlyManageProcessorWithCustomId, notify, onlyManageProcessorWithCustomId, setCamelContext, setEventFactory, setEventNotifiers, setManagementAgent, setManagementNamingStrategy, setStatisticsLevel, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedManagementStrategy
public ManagedManagementStrategy()
ManagedManagementStrategy
public ManagedManagementStrategy(CamelContext camelContext)
ManagedManagementStrategy
public ManagedManagementStrategy(ManagementAgent managementAgent)
manageObject
public void manageObject(Object managedObject)
throws Exception
- Specified by:
manageObject in interface org.fusesource.commons.management.ManagementStrategy- Overrides:
manageObject in class DefaultManagementStrategy
- Throws:
Exception
manageNamedObject
public void manageNamedObject(Object managedObject,
Object preferedName)
throws Exception
- Specified by:
manageNamedObject in interface org.fusesource.commons.management.ManagementStrategy- Overrides:
manageNamedObject in class DefaultManagementStrategy
- Throws:
Exception
getManagedObjectName
public <T> T getManagedObjectName(Object managedObject,
String customName,
Class<T> nameType)
throws Exception
- Specified by:
getManagedObjectName in interface org.fusesource.commons.management.ManagementStrategy- Overrides:
getManagedObjectName in class DefaultManagementStrategy
- Throws:
Exception
unmanageObject
public void unmanageObject(Object managedObject)
throws Exception
- Specified by:
unmanageObject in interface org.fusesource.commons.management.ManagementStrategy- Overrides:
unmanageObject in class DefaultManagementStrategy
- Throws:
Exception
unmanageNamedObject
public void unmanageNamedObject(Object name)
throws Exception
- Specified by:
unmanageNamedObject in interface org.fusesource.commons.management.ManagementStrategy- Overrides:
unmanageNamedObject in class DefaultManagementStrategy
- Throws:
Exception
isManaged
public boolean isManaged(Object managableObject,
Object name)
- Specified by:
isManaged in interface org.fusesource.commons.management.ManagementStrategy- Overrides:
isManaged in class DefaultManagementStrategy
manageProcessor
public boolean manageProcessor(ProcessorDefinition<?> definition)
- Overrides:
manageProcessor in class DefaultManagementStrategy
createStatistic
public org.fusesource.commons.management.Statistic createStatistic(String name,
Object owner,
org.fusesource.commons.management.Statistic.UpdateMode updateMode)
- Specified by:
createStatistic in interface org.fusesource.commons.management.ManagementStrategy- Overrides:
createStatistic in class DefaultManagementStrategy
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.