Package net.welen.jmole.protocols
Class AbstractProtocol
- java.lang.Object
-
- net.welen.jmole.protocols.AbstractProtocol
-
- All Implemented Interfaces:
EventListener,NotificationListener,Protocol,ProtocolMBean
- Direct Known Subclasses:
AbstractIntervalProtocol,Munin,NRPE
public abstract class AbstractProtocol extends Object implements Protocol, ProtocolMBean
-
-
Constructor Summary
Constructors Constructor Description AbstractProtocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JMolegetJMole()Get the JMole instanceStringgetName()Get the name of the protocolvoidhandleNotification(Notification notification, Object handback)voidsetName(String name)Set protocol namevoidstartProtocol(JMole jmole)Callback for starting the protocolvoidstopProtocol()Callback for stopping the protocol-
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.Protocol
handleCritical, handleWarning
-
-
-
-
Method Detail
-
startProtocol
public void startProtocol(JMole jmole) throws Exception
Description copied from interface:ProtocolCallback for starting the protocol- Specified by:
startProtocolin interfaceProtocol- Throws:
Exception
-
stopProtocol
public void stopProtocol() throws ExceptionDescription copied from interface:ProtocolCallback for stopping the protocol- Specified by:
stopProtocolin interfaceProtocol- Throws:
Exception
-
setName
public void setName(String name)
Description copied from interface:ProtocolSet protocol name
-
getName
public String getName()
Description copied from interface:ProtocolGet the name of the protocol- Specified by:
getNamein interfaceProtocol- Specified by:
getNamein interfaceProtocolMBean
-
handleNotification
public void handleNotification(Notification notification, Object handback)
- Specified by:
handleNotificationin interfaceNotificationListener
-
-