Package net.welen.jmole.protocols.munin
Class Munin
- java.lang.Object
-
- net.welen.jmole.protocols.AbstractProtocol
-
- net.welen.jmole.protocols.munin.Munin
-
- All Implemented Interfaces:
Runnable,EventListener,NotificationListener,MuninMBean,Protocol,ProtocolMBean
public class Munin extends AbstractProtocol implements MuninMBean, Runnable
-
-
Field Summary
Fields Modifier and Type Field Description protected intcurrentThreads
-
Constructor Summary
Constructors Constructor Description Munin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddress()IntegergetCurrentThreads()IntegergetMaxThreads()StringgetNodeName()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)voidsetMaxThreads(Integer maxThreads)voidsetNodeName(String nodeName)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.munin.MuninMBean
getName, setName
-
-
-
-
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
-
getNodeName
public String getNodeName()
- Specified by:
getNodeNamein interfaceMuninMBean
-
setNodeName
public void setNodeName(String nodeName)
- Specified by:
setNodeNamein interfaceMuninMBean
-
getAddress
public String getAddress()
- Specified by:
getAddressin interfaceMuninMBean
-
setAddress
public void setAddress(String address)
- Specified by:
setAddressin interfaceMuninMBean
-
getPort
public Integer getPort()
- Specified by:
getPortin interfaceMuninMBean
-
setPort
public void setPort(Integer port)
- Specified by:
setPortin interfaceMuninMBean
-
getTcpReadTimeOut
public Integer getTcpReadTimeOut()
- Specified by:
getTcpReadTimeOutin interfaceMuninMBean
-
setTcpReadTimeOut
public void setTcpReadTimeOut(Integer timeout)
- Specified by:
setTcpReadTimeOutin interfaceMuninMBean
-
getMaxThreads
public Integer getMaxThreads()
- Specified by:
getMaxThreadsin interfaceMuninMBean
-
setMaxThreads
public void setMaxThreads(Integer maxThreads)
- Specified by:
setMaxThreadsin interfaceMuninMBean
-
getCurrentThreads
public Integer getCurrentThreads()
- Specified by:
getCurrentThreadsin interfaceMuninMBean
-
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
-
-