org.apache.camel.support
Class EventNotifierSupport

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.support.EventNotifierSupport
All Implemented Interfaces:
Service, ShutdownableService, EventNotifier, StatefulService, SuspendableService
Direct Known Subclasses:
DefaultRuntimeEndpointRegistry, EventNotifierSupport, JmxNotificationEventNotifier, LoggingEventNotifier, PublishEventNotifier

public abstract class EventNotifierSupport
extends ServiceSupport
implements EventNotifier

Base class to extend for custom EventNotifier implementations.

Version:

Field Summary
protected  org.slf4j.Logger log
           
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
EventNotifierSupport()
           
 
Method Summary
protected  void doStart()
          Implementations override this method to support customized start/stop.
protected  void doStop()
          Implementations override this method to support customized start/stop.
 boolean isIgnoreCamelContextEvents()
           
 boolean isIgnoreExchangeCompletedEvent()
           
 boolean isIgnoreExchangeCreatedEvent()
           
 boolean isIgnoreExchangeEvents()
           
 boolean isIgnoreExchangeFailedEvents()
           
 boolean isIgnoreExchangeRedeliveryEvents()
           
 boolean isIgnoreExchangeSendingEvents()
           
 boolean isIgnoreExchangeSentEvents()
           
 boolean isIgnoreRouteEvents()
           
 boolean isIgnoreServiceEvents()
           
 void setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents)
           
 void setIgnoreExchangeCompletedEvent(boolean ignoreExchangeCompletedEvent)
           
 void setIgnoreExchangeCreatedEvent(boolean ignoreExchangeCreatedEvent)
           
 void setIgnoreExchangeEvents(boolean ignoreExchangeEvents)
           
 void setIgnoreExchangeFailedEvents(boolean ignoreExchangeFailedEvents)
           
 void setIgnoreExchangeRedeliveryEvents(boolean ignoreExchangeRedeliveryEvents)
           
 void setIgnoreExchangeSendingEvents(boolean ignoreExchangeSendingEvents)
           
 void setIgnoreExchangeSentEvents(boolean ignoreExchangeSentEvents)
           
 void setIgnoreRouteEvents(boolean ignoreRouteEvents)
           
 void setIgnoreServiceEvents(boolean ignoreServiceEvents)
           
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.spi.EventNotifier
isEnabled, notify
 

Field Detail

log

protected org.slf4j.Logger log
Constructor Detail

EventNotifierSupport

public EventNotifierSupport()
Method Detail

isIgnoreCamelContextEvents

public boolean isIgnoreCamelContextEvents()
Specified by:
isIgnoreCamelContextEvents in interface EventNotifier

setIgnoreCamelContextEvents

public void setIgnoreCamelContextEvents(boolean ignoreCamelContextEvents)
Specified by:
setIgnoreCamelContextEvents in interface EventNotifier

isIgnoreRouteEvents

public boolean isIgnoreRouteEvents()
Specified by:
isIgnoreRouteEvents in interface EventNotifier

setIgnoreRouteEvents

public void setIgnoreRouteEvents(boolean ignoreRouteEvents)
Specified by:
setIgnoreRouteEvents in interface EventNotifier

isIgnoreServiceEvents

public boolean isIgnoreServiceEvents()
Specified by:
isIgnoreServiceEvents in interface EventNotifier

setIgnoreServiceEvents

public void setIgnoreServiceEvents(boolean ignoreServiceEvents)
Specified by:
setIgnoreServiceEvents in interface EventNotifier

isIgnoreExchangeEvents

public boolean isIgnoreExchangeEvents()
Specified by:
isIgnoreExchangeEvents in interface EventNotifier

setIgnoreExchangeEvents

public void setIgnoreExchangeEvents(boolean ignoreExchangeEvents)
Specified by:
setIgnoreExchangeEvents in interface EventNotifier

isIgnoreExchangeCreatedEvent

public boolean isIgnoreExchangeCreatedEvent()
Specified by:
isIgnoreExchangeCreatedEvent in interface EventNotifier

setIgnoreExchangeCreatedEvent

public void setIgnoreExchangeCreatedEvent(boolean ignoreExchangeCreatedEvent)
Specified by:
setIgnoreExchangeCreatedEvent in interface EventNotifier

isIgnoreExchangeCompletedEvent

public boolean isIgnoreExchangeCompletedEvent()
Specified by:
isIgnoreExchangeCompletedEvent in interface EventNotifier

setIgnoreExchangeCompletedEvent

public void setIgnoreExchangeCompletedEvent(boolean ignoreExchangeCompletedEvent)
Specified by:
setIgnoreExchangeCompletedEvent in interface EventNotifier

isIgnoreExchangeFailedEvents

public boolean isIgnoreExchangeFailedEvents()
Specified by:
isIgnoreExchangeFailedEvents in interface EventNotifier

setIgnoreExchangeFailedEvents

public void setIgnoreExchangeFailedEvents(boolean ignoreExchangeFailedEvents)
Specified by:
setIgnoreExchangeFailedEvents in interface EventNotifier

isIgnoreExchangeRedeliveryEvents

public boolean isIgnoreExchangeRedeliveryEvents()
Specified by:
isIgnoreExchangeRedeliveryEvents in interface EventNotifier

setIgnoreExchangeRedeliveryEvents

public void setIgnoreExchangeRedeliveryEvents(boolean ignoreExchangeRedeliveryEvents)
Specified by:
setIgnoreExchangeRedeliveryEvents in interface EventNotifier

isIgnoreExchangeSentEvents

public boolean isIgnoreExchangeSentEvents()
Specified by:
isIgnoreExchangeSentEvents in interface EventNotifier

setIgnoreExchangeSentEvents

public void setIgnoreExchangeSentEvents(boolean ignoreExchangeSentEvents)
Specified by:
setIgnoreExchangeSentEvents in interface EventNotifier

isIgnoreExchangeSendingEvents

public boolean isIgnoreExchangeSendingEvents()
Specified by:
isIgnoreExchangeSendingEvents in interface EventNotifier

setIgnoreExchangeSendingEvents

public void setIgnoreExchangeSendingEvents(boolean ignoreExchangeSendingEvents)
Specified by:
setIgnoreExchangeSendingEvents in interface EventNotifier

doStart

protected void doStart()
                throws Exception
Description copied from class: ServiceSupport
Implementations override this method to support customized start/stop.

Important: See ServiceSupport.doStop() for more details.

Specified by:
doStart in class ServiceSupport
Throws:
Exception
See Also:
ServiceSupport.doStop()

doStop

protected void doStop()
               throws Exception
Description copied from class: ServiceSupport
Implementations override this method to support customized start/stop.

Important: Camel will invoke this ServiceSupport.doStop() method when the service is being stopped. This method will also be invoked if the service is still in uninitialized state (eg has not been started). The method is always called to allow the service to do custom logic when the service is being stopped, such as when CamelContext is shutting down.

Specified by:
doStop in class ServiceSupport
Throws:
Exception
See Also:
ServiceSupport.doStart()


Apache Camel