Class NagiosEventNotifier
- 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.component.nagios.NagiosEventNotifier
-
- All Implemented Interfaces:
AutoCloseable,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.EventNotifierSupportAnEventNotifierwhich sends alters to Nagios.
-
-
Constructor Summary
Constructors Constructor Description NagiosEventNotifier()NagiosEventNotifier(com.googlecode.jsendnsca.PassiveCheckSender sender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.googlecode.jsendnsca.LeveldetermineLevel(org.apache.camel.spi.CamelEvent eventObject)protected voiddoStart()protected voiddoStop()NagiosConfigurationgetConfiguration()StringgetHostName()com.googlecode.jsendnsca.NagiosSettingsgetNagiosSettings()StringgetServiceName()booleanisEnabled(org.apache.camel.spi.CamelEvent eventObject)voidnotify(org.apache.camel.spi.CamelEvent eventObject)voidsetConfiguration(NagiosConfiguration configuration)voidsetHostName(String hostName)voidsetNagiosSettings(com.googlecode.jsendnsca.NagiosSettings nagiosSettings)voidsetServiceName(String serviceName)-
Methods inherited from class org.apache.camel.support.EventNotifierSupport
isDisabled, isIgnoreCamelContextEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, isIgnoreStepEvents, setIgnoreCamelContextEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEvents, setIgnoreStepEvents
-
Methods inherited from class org.apache.camel.support.SimpleEventNotifierSupport
isIgnoreCamelContextInitEvents, setIgnoreCamelContextInitEvents, setupIgnore
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, 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, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
notify
public void notify(org.apache.camel.spi.CamelEvent eventObject) throws Exception- Throws:
Exception
-
isEnabled
public boolean isEnabled(org.apache.camel.spi.CamelEvent eventObject)
- Specified by:
isEnabledin interfaceorg.apache.camel.spi.EventNotifier- Overrides:
isEnabledin classorg.apache.camel.support.EventNotifierSupport
-
determineLevel
protected com.googlecode.jsendnsca.Level determineLevel(org.apache.camel.spi.CamelEvent eventObject)
-
getConfiguration
public NagiosConfiguration getConfiguration()
-
setConfiguration
public void setConfiguration(NagiosConfiguration configuration)
-
getNagiosSettings
public com.googlecode.jsendnsca.NagiosSettings getNagiosSettings()
-
setNagiosSettings
public void setNagiosSettings(com.googlecode.jsendnsca.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:
doStartin classorg.apache.camel.support.EventNotifierSupport- Throws:
Exception
-
-