Package net.welen.jmole.protocols.nrpe
Class NRPE
- java.lang.Object
-
- net.welen.jmole.protocols.AbstractProtocol
-
- net.welen.jmole.protocols.nrpe.NRPE
-
- All Implemented Interfaces:
Runnable,EventListener,NotificationListener,NRPEMBean,Protocol,ProtocolMBean
public class NRPE extends AbstractProtocol implements NRPEMBean, Runnable
-
-
Constructor Summary
Constructors Constructor Description NRPE()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddress()IntegergetMaxMessageSize()IntegergetPort()IntegergetTcpReadTimeOut()voidhandleCritical(String name, String attribute, net.welen.jmole.presentation.PresentationInformation presentationInformation, String message)Handle critical problemvoidhandleWarning(String name, String attribute, net.welen.jmole.presentation.PresentationInformation presentationInformation, String message)Handle Warningvoidrun()voidsetAddress(String address)voidsetPort(Integer port)voidsetTcpReadTimeOut(Integer timeout)voidstartProtocol(JMole jmole)Callback for starting the protocolvoidstopProtocol()Callback for stopping the protocol-
Methods inherited from class net.welen.jmole.protocols.AbstractProtocol
getJMole, getName, handleNotification, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.welen.jmole.protocols.ProtocolMBean
getName
-
-
-
-
Method Detail
-
startProtocol
public void startProtocol(JMole jmole) throws Exception
Description copied from interface:ProtocolCallback for starting the protocol- Specified by:
startProtocolin interfaceProtocol- Overrides:
startProtocolin classAbstractProtocol- Throws:
Exception
-
stopProtocol
public void stopProtocol() throws ExceptionDescription copied from interface:ProtocolCallback for stopping the protocol- Specified by:
stopProtocolin interfaceProtocol- Overrides:
stopProtocolin classAbstractProtocol- Throws:
Exception
-
getAddress
public String getAddress()
- Specified by:
getAddressin interfaceNRPEMBean
-
setAddress
public void setAddress(String address)
- Specified by:
setAddressin interfaceNRPEMBean
-
getTcpReadTimeOut
public Integer getTcpReadTimeOut()
- Specified by:
getTcpReadTimeOutin interfaceNRPEMBean
-
setTcpReadTimeOut
public void setTcpReadTimeOut(Integer timeout)
- Specified by:
setTcpReadTimeOutin interfaceNRPEMBean
-
getMaxMessageSize
public Integer getMaxMessageSize()
- Specified by:
getMaxMessageSizein interfaceNRPEMBean
-
handleWarning
public void handleWarning(String name, String attribute, net.welen.jmole.presentation.PresentationInformation presentationInformation, String message) throws Exception
Description copied from interface:ProtocolHandle Warning- Specified by:
handleWarningin interfaceProtocol- Throws:
Exception
-
handleCritical
public void handleCritical(String name, String attribute, net.welen.jmole.presentation.PresentationInformation presentationInformation, String message) throws Exception
Description copied from interface:ProtocolHandle critical problem- Specified by:
handleCriticalin interfaceProtocol- Throws:
Exception
-
-