public class ManagedManagementStrategy extends DefaultManagementStrategy
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.ManagementStrategy,
DefaultManagementStrategyshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
ManagedManagementStrategy() |
ManagedManagementStrategy(CamelContext camelContext,
ManagementAgent managementAgent) |
ManagedManagementStrategy(ManagementAgent managementAgent)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
<T> T |
getManagedObjectName(Object managedObject,
String customName,
Class<T> nameType)
Construct an object name, where either the object to be managed and/or
a custom name component are provided
|
boolean |
isManaged(Object managedObject,
Object name)
Determines if an object or name is managed.
|
void |
manageNamedObject(Object managedObject,
Object preferredName)
Adds a managed object allowing the ManagementStrategy implementation
to record or expose the object as it sees fit.
|
void |
manageObject(Object managedObject)
Adds a managed object allowing the ManagementStrategy implementation to record or expose
the object as it sees fit.
|
boolean |
manageProcessor(ProcessorDefinition<?> definition)
Filter whether the processor should be managed or not.
|
void |
unmanageNamedObject(Object name)
Removes a managed object by name.
|
void |
unmanageObject(Object managedObject)
Removes the managed object.
|
addEventNotifier, createStatistic, doStartManagementStrategy, doStop, getCamelContext, getEventFactory, getEventNotifiers, getManagementAgent, getManagementNamingStrategy, getManagementObjectStrategy, getStatisticsLevel, isLoadStatisticsEnabled, isOnlyManageProcessorWithCustomId, notify, onlyManageProcessorWithCustomId, removeEventNotifier, setCamelContext, setEventFactory, setEventNotifiers, setLoadStatisticsEnabled, setManagementAgent, setManagementNamingStrategy, setManagementObjectStrategy, setStatisticsLeveldoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic ManagedManagementStrategy()
@Deprecated public ManagedManagementStrategy(ManagementAgent managementAgent)
public ManagedManagementStrategy(CamelContext camelContext, ManagementAgent managementAgent)
public void manageObject(Object managedObject) throws Exception
ManagementStrategymanageObject in interface ManagementStrategymanageObject in class DefaultManagementStrategymanagedObject - the managed objectException - can be thrown if the object could not be addedpublic void manageNamedObject(Object managedObject, Object preferredName) throws Exception
ManagementStrategymanageNamedObject in interface ManagementStrategymanageNamedObject in class DefaultManagementStrategymanagedObject - the managed objectpreferredName - representing the preferred name, maybe a String, or a JMX ObjectNameException - can be thrown if the object could not be addedpublic <T> T getManagedObjectName(Object managedObject, String customName, Class<T> nameType) throws Exception
ManagementStrategygetManagedObjectName in interface ManagementStrategygetManagedObjectName in class DefaultManagementStrategymanagedObject - the object to be managedcustomName - a custom name componentnameType - the name type requiredException - can be thrown if the object name could not be createdpublic void unmanageObject(Object managedObject) throws Exception
ManagementStrategyunmanageObject in interface ManagementStrategyunmanageObject in class DefaultManagementStrategymanagedObject - the managed objectException - can be thrown if the object could not be removedpublic void unmanageNamedObject(Object name) throws Exception
ManagementStrategyunmanageNamedObject in interface ManagementStrategyunmanageNamedObject in class DefaultManagementStrategyname - an object name previously created by this strategy.Exception - can be thrown if the object could not be removedpublic boolean isManaged(Object managedObject, Object name)
ManagementStrategyisManaged in interface ManagementStrategyisManaged in class DefaultManagementStrategymanagedObject - the object to considername - the name to considerpublic boolean manageProcessor(ProcessorDefinition<?> definition)
ManagementStrategymanageProcessor in interface ManagementStrategymanageProcessor in class DefaultManagementStrategydefinition - definition of the processorprotected void doStart()
throws Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class DefaultManagementStrategyExceptionServiceSupport.doStop()Apache Camel