Package org.apache.camel.impl.engine
Class DefaultManagementStrategy
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.impl.engine.DefaultManagementStrategy
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.ManagementStrategy,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
public class DefaultManagementStrategy
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.ManagementStrategy, org.apache.camel.CamelContextAware
A default management strategy that does not manage.
This is default only used if Camel detects that it cannot use the JMX capable
strategy. Then Camel will fallback to use this instead that
is basically a simple and noop strategy.
This class can also be used to extend your custom management implement. In fact the JMX capable provided by Camel
extends this class as well.
invalid reference
org.apache.camel.management.JmxManagementStrategy
- See Also:
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionDefaultManagementStrategy(org.apache.camel.CamelContext camelContext) DefaultManagementStrategy(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.ManagementAgent managementAgent) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventNotifier(org.apache.camel.spi.EventNotifier eventNotifier) protected org.apache.camel.spi.ManagementObjectNameStrategyprotected org.apache.camel.spi.ManagementObjectNameStrategyprotected org.apache.camel.spi.ManagementObjectStrategyprotected voiddoInit()protected voiddoStart()protected voiddoStop()org.apache.camel.CamelContextorg.apache.camel.spi.EventFactoryList<org.apache.camel.spi.EventNotifier> org.apache.camel.spi.ManagementAgentorg.apache.camel.spi.ManagementObjectNameStrategyorg.apache.camel.spi.ManagementObjectStrategyList<org.apache.camel.spi.EventNotifier> booleanbooleanisManagedName(Object name) voidmanageObject(Object managedObject) booleanmanageProcessor(org.apache.camel.NamedNode definition) voidnotify(org.apache.camel.spi.CamelEvent event) booleanremoveEventNotifier(org.apache.camel.spi.EventNotifier eventNotifier) voidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetEventFactory(org.apache.camel.spi.EventFactory eventFactory) voidsetManagementAgent(org.apache.camel.spi.ManagementAgent managementAgent) voidsetManagementObjectNameStrategy(org.apache.camel.spi.ManagementObjectNameStrategy managementObjectNameStrategy) voidsetManagementObjectStrategy(org.apache.camel.spi.ManagementObjectStrategy managementObjectStrategy) voidunmanageObject(Object managedObject) Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
DefaultManagementStrategy
public DefaultManagementStrategy() -
DefaultManagementStrategy
public DefaultManagementStrategy(org.apache.camel.CamelContext camelContext) -
DefaultManagementStrategy
public DefaultManagementStrategy(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.ManagementAgent managementAgent)
-
-
Method Details
-
getEventNotifiers
- Specified by:
getEventNotifiersin interfaceorg.apache.camel.spi.ManagementStrategy
-
getStartedEventNotifiers
- Specified by:
getStartedEventNotifiersin interfaceorg.apache.camel.spi.ManagementStrategy
-
addEventNotifier
public void addEventNotifier(org.apache.camel.spi.EventNotifier eventNotifier) - Specified by:
addEventNotifierin interfaceorg.apache.camel.spi.ManagementStrategy
-
removeEventNotifier
public boolean removeEventNotifier(org.apache.camel.spi.EventNotifier eventNotifier) - Specified by:
removeEventNotifierin interfaceorg.apache.camel.spi.ManagementStrategy
-
getEventFactory
public org.apache.camel.spi.EventFactory getEventFactory()- Specified by:
getEventFactoryin interfaceorg.apache.camel.spi.ManagementStrategy
-
setEventFactory
public void setEventFactory(org.apache.camel.spi.EventFactory eventFactory) - Specified by:
setEventFactoryin interfaceorg.apache.camel.spi.ManagementStrategy
-
getManagementObjectNameStrategy
public org.apache.camel.spi.ManagementObjectNameStrategy getManagementObjectNameStrategy()- Specified by:
getManagementObjectNameStrategyin interfaceorg.apache.camel.spi.ManagementStrategy
-
setManagementObjectNameStrategy
public void setManagementObjectNameStrategy(org.apache.camel.spi.ManagementObjectNameStrategy managementObjectNameStrategy) - Specified by:
setManagementObjectNameStrategyin interfaceorg.apache.camel.spi.ManagementStrategy
-
getManagementObjectStrategy
public org.apache.camel.spi.ManagementObjectStrategy getManagementObjectStrategy()- Specified by:
getManagementObjectStrategyin interfaceorg.apache.camel.spi.ManagementStrategy
-
setManagementObjectStrategy
public void setManagementObjectStrategy(org.apache.camel.spi.ManagementObjectStrategy managementObjectStrategy) - Specified by:
setManagementObjectStrategyin interfaceorg.apache.camel.spi.ManagementStrategy
-
getManagementAgent
public org.apache.camel.spi.ManagementAgent getManagementAgent()- Specified by:
getManagementAgentin interfaceorg.apache.camel.spi.ManagementStrategy
-
setManagementAgent
public void setManagementAgent(org.apache.camel.spi.ManagementAgent managementAgent) - Specified by:
setManagementAgentin interfaceorg.apache.camel.spi.ManagementStrategy
-
manageProcessor
public boolean manageProcessor(org.apache.camel.NamedNode definition) - Specified by:
manageProcessorin interfaceorg.apache.camel.spi.ManagementStrategy
-
manageObject
- Specified by:
manageObjectin interfaceorg.apache.camel.spi.ManagementStrategy- Throws:
Exception
-
unmanageObject
- Specified by:
unmanageObjectin interfaceorg.apache.camel.spi.ManagementStrategy- Throws:
Exception
-
isManaged
- Specified by:
isManagedin interfaceorg.apache.camel.spi.ManagementStrategy
-
isManagedName
- Specified by:
isManagedNamein interfaceorg.apache.camel.spi.ManagementStrategy
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
notify
- Specified by:
notifyin interfaceorg.apache.camel.spi.ManagementStrategy- Throws:
Exception
-
doInit
- Overrides:
doInitin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
createManagementObjectNameStrategy
protected org.apache.camel.spi.ManagementObjectNameStrategy createManagementObjectNameStrategy(String domain) -
createManagementObjectStrategy
protected org.apache.camel.spi.ManagementObjectStrategy createManagementObjectStrategy() -
createManagementObjectNameStrategy
protected org.apache.camel.spi.ManagementObjectNameStrategy createManagementObjectNameStrategy()
-