org.apache.camel.management
Class ManagedManagementStrategy

java.lang.Object
  extended by org.apache.camel.management.DefaultManagementStrategy
      extended by 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:
See Also:
ManagementStrategy, DefaultManagementStrategy

Constructor Summary
ManagedManagementStrategy()
           
ManagedManagementStrategy(CamelContext camelContext)
           
ManagedManagementStrategy(ManagementAgent managementAgent)
           
 
Method Summary
 org.fusesource.commons.management.Statistic createStatistic(String name, Object owner, org.fusesource.commons.management.Statistic.UpdateMode updateMode)
           
<T> T
getManagedObjectName(Object managedObject, String customName, Class<T> nameType)
           
 boolean isManaged(Object managableObject, Object name)
           
 void manageNamedObject(Object managedObject, Object preferedName)
           
 void manageObject(Object managedObject)
           
 boolean manageProcessor(ProcessorDefinition<?> definition)
          Filter whether the processor should be managed or not.
 void unmanageNamedObject(Object name)
           
 void unmanageObject(Object managedObject)
           
 
Methods inherited from class org.apache.camel.management.DefaultManagementStrategy
addEventNotifier, getCamelContext, getEventFactory, getEventNotifiers, getManagementAgent, getManagementNamingStrategy, getManagementObjectStrategy, getStatisticsLevel, isOnlyManageProcessorWithCustomId, notify, onlyManageProcessorWithCustomId, removeEventNotifier, setCamelContext, setEventFactory, setEventNotifiers, setManagementAgent, setManagementNamingStrategy, setManagementObjectStrategy, setStatisticsLevel, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedManagementStrategy

public ManagedManagementStrategy()

ManagedManagementStrategy

public ManagedManagementStrategy(CamelContext camelContext)

ManagedManagementStrategy

public ManagedManagementStrategy(ManagementAgent managementAgent)
Method Detail

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)
Description copied from interface: ManagementStrategy
Filter whether the processor should be managed or not.

Is used to filter out unwanted processors to avoid managing at too fine grained level.

Overrides:
manageProcessor in class DefaultManagementStrategy
Parameters:
definition - definition of the processor
Returns:
true to manage it

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


Apache CAMEL