Class NagiosConfiguration
- java.lang.Object
-
- org.apache.camel.component.nagios.NagiosConfiguration
-
-
Constructor Summary
Constructors Constructor Description NagiosConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(URI uri)NagiosConfigurationcopy()Returns a copy of this configurationintgetConnectionTimeout()com.googlecode.jsendnsca.encryption.EncryptiongetEncryption()StringgetHost()com.googlecode.jsendnsca.NagiosSettingsgetOrCreateNagiosSettings()StringgetPassword()intgetPort()intgetTimeout()voidsetConnectionTimeout(int connectionTimeout)Connection timeout in millis.voidsetEncryption(com.googlecode.jsendnsca.encryption.Encryption encryption)To specify an encryption method.voidsetHost(String host)This is the address of the Nagios host where checks should be send.voidsetPassword(String password)Password to be authenticated when sending checks to Nagios.voidsetPort(int port)The port number of the host.voidsetTimeout(int timeout)Sending timeout in millis.
-
-
-
Method Detail
-
copy
public NagiosConfiguration copy()
Returns a copy of this configuration
-
configure
public void configure(URI uri)
-
getOrCreateNagiosSettings
public com.googlecode.jsendnsca.NagiosSettings getOrCreateNagiosSettings()
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
This is the address of the Nagios host where checks should be send.
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
The port number of the host.
-
getConnectionTimeout
public int getConnectionTimeout()
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
Connection timeout in millis.
-
getTimeout
public int getTimeout()
-
setTimeout
public void setTimeout(int timeout)
Sending timeout in millis.
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
Password to be authenticated when sending checks to Nagios.
-
getEncryption
public com.googlecode.jsendnsca.encryption.Encryption getEncryption()
-
setEncryption
public void setEncryption(com.googlecode.jsendnsca.encryption.Encryption encryption)
To specify an encryption method.
-
-