Package org.apache.camel.management
Class LoggingEventNotifier
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.SimpleEventNotifierSupport
org.apache.camel.support.EventNotifierSupport
org.apache.camel.management.LoggingEventNotifier
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.EventNotifier,org.apache.camel.spi.HasCamelContext,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
Logging event notifier that only notifies if INFO log level has been configured for its logger.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()booleanbooleanisEnabled(org.apache.camel.spi.CamelEvent event) voidnotify(org.apache.camel.spi.CamelEvent event) voidsetLogName(String logName) Sets the log name to use.Methods inherited from class org.apache.camel.support.EventNotifierSupport
getCamelContext, isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, isIgnoreStepEvents, setCamelContext, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEvents, setIgnoreStepEventsMethods inherited from class org.apache.camel.support.SimpleEventNotifierSupport
isIgnoreCamelContextInitEvents, isIgnoreExchangeAsyncProcessingStartedEvents, setIgnoreCamelContextInitEvents, setIgnoreExchangeAsyncProcessingStartedEvents, setupIgnoreMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStop, 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
-
LoggingEventNotifier
public LoggingEventNotifier()
-
-
Method Details
-
notify
- Throws:
Exception
-
isDisabled
- Specified by:
isDisabledin interfaceorg.apache.camel.spi.EventNotifier- Overrides:
isDisabledin classorg.apache.camel.support.EventNotifierSupport
-
isEnabled
- Specified by:
isEnabledin interfaceorg.apache.camel.spi.EventNotifier- Overrides:
isEnabledin classorg.apache.camel.support.EventNotifierSupport
-
getLogName
-
setLogName
Sets the log name to use.- Parameters:
logName- a custom log name to use
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-