Package net.welen.jmole.protocols
Class AbstractIntervalProtocol
- java.lang.Object
-
- net.welen.jmole.protocols.AbstractProtocol
-
- net.welen.jmole.protocols.AbstractIntervalProtocol
-
- All Implemented Interfaces:
Runnable,EventListener,NotificationListener,IntervalProtocolMBean,Protocol,ProtocolMBean
public abstract class AbstractIntervalProtocol extends AbstractProtocol implements IntervalProtocolMBean, Runnable
-
-
Constructor Summary
Constructors Constructor Description AbstractIntervalProtocol()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longgetInterval()protected abstract voidhandleMeasurement(String category, String name, String attribute, Object value, net.welen.jmole.presentation.PresentationInformation presentationInformation)voidrun()voidsetInterval(long interval)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.Protocol
handleCritical, handleWarning
-
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
-
getInterval
public long getInterval()
- Specified by:
getIntervalin interfaceIntervalProtocolMBean
-
setInterval
public void setInterval(long interval)
- Specified by:
setIntervalin interfaceIntervalProtocolMBean
-
-