public class NagiosEventNotifier
extends org.apache.camel.support.EventNotifierSupport
EventNotifier which sends alters to Nagios.| Constructor and Description |
|---|
NagiosEventNotifier() |
NagiosEventNotifier(com.googlecode.jsendnsca.PassiveCheckSender sender) |
| Modifier and Type | Method and Description |
|---|---|
protected com.googlecode.jsendnsca.Level |
determineLevel(org.apache.camel.spi.CamelEvent eventObject) |
protected void |
doStart() |
protected void |
doStop() |
NagiosConfiguration |
getConfiguration() |
String |
getHostName() |
com.googlecode.jsendnsca.NagiosSettings |
getNagiosSettings() |
String |
getServiceName() |
boolean |
isEnabled(org.apache.camel.spi.CamelEvent eventObject) |
void |
notify(org.apache.camel.spi.CamelEvent eventObject) |
void |
setConfiguration(NagiosConfiguration configuration) |
void |
setHostName(String hostName) |
void |
setNagiosSettings(com.googlecode.jsendnsca.NagiosSettings nagiosSettings) |
void |
setServiceName(String serviceName) |
isDisabled, isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, isIgnoreStepEvents, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEvents, setIgnoreStepEventsbuild, doBuild, doFail, doInit, 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, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic NagiosEventNotifier()
public NagiosEventNotifier(com.googlecode.jsendnsca.PassiveCheckSender sender)
public void notify(org.apache.camel.spi.CamelEvent eventObject)
throws Exception
Exceptionpublic boolean isEnabled(org.apache.camel.spi.CamelEvent eventObject)
isEnabled in interface org.apache.camel.spi.EventNotifierisEnabled in class org.apache.camel.support.EventNotifierSupportprotected com.googlecode.jsendnsca.Level determineLevel(org.apache.camel.spi.CamelEvent eventObject)
public NagiosConfiguration getConfiguration()
public void setConfiguration(NagiosConfiguration configuration)
public com.googlecode.jsendnsca.NagiosSettings getNagiosSettings()
public void setNagiosSettings(com.googlecode.jsendnsca.NagiosSettings nagiosSettings)
public String getServiceName()
public void setServiceName(String serviceName)
public String getHostName()
public void setHostName(String hostName)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.EventNotifierSupportExceptionApache Camel