org.apache.camel.component.nagios
Class NagiosEventNotifier
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.support.EventNotifierSupport
org.apache.camel.component.nagios.NagiosEventNotifier
- All Implemented Interfaces:
- org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.EventNotifier, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class NagiosEventNotifier
- extends org.apache.camel.support.EventNotifierSupport
An EventNotifier
which sends alters to Nagios.
- Version:
Fields inherited from class org.apache.camel.support.EventNotifierSupport |
log |
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.support.EventNotifierSupport |
isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEvents |
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 |
NagiosEventNotifier
public NagiosEventNotifier()
notify
public void notify(EventObject eventObject)
throws Exception
- Throws:
Exception
isEnabled
public boolean isEnabled(EventObject eventObject)
determineLevel
protected com.googlecode.jsendnsca.core.Level determineLevel(EventObject eventObject)
getConfiguration
public NagiosConfiguration getConfiguration()
setConfiguration
public void setConfiguration(NagiosConfiguration configuration)
getNagiosSettings
public com.googlecode.jsendnsca.core.NagiosSettings getNagiosSettings()
setNagiosSettings
public void setNagiosSettings(com.googlecode.jsendnsca.core.NagiosSettings nagiosSettings)
getServiceName
public String getServiceName()
setServiceName
public void setServiceName(String serviceName)
getHostName
public String getHostName()
setHostName
public void setHostName(String hostName)
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class org.apache.camel.support.EventNotifierSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class org.apache.camel.support.EventNotifierSupport
- Throws:
Exception
Apache Camel