org.apache.camel.component.nagios
Class NagiosEventNotifier

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.support.EventNotifierSupport
          extended by 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:

Field Summary
 
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
 
Constructor Summary
NagiosEventNotifier()
           
 
Method Summary
protected  com.googlecode.jsendnsca.core.Level determineLevel(EventObject eventObject)
           
protected  void doStart()
           
protected  void doStop()
           
 NagiosConfiguration getConfiguration()
           
 String getHostName()
           
 com.googlecode.jsendnsca.core.NagiosSettings getNagiosSettings()
           
 String getServiceName()
           
 boolean isEnabled(EventObject eventObject)
           
 void notify(EventObject eventObject)
           
 void setConfiguration(NagiosConfiguration configuration)
           
 void setHostName(String hostName)
           
 void setNagiosSettings(com.googlecode.jsendnsca.core.NagiosSettings nagiosSettings)
           
 void setServiceName(String serviceName)
           
 
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
 

Constructor Detail

NagiosEventNotifier

public NagiosEventNotifier()
Method Detail

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