Package net.welen.jmole.protocols
Interface Protocol
-
- All Superinterfaces:
EventListener,NotificationListener
- All Known Subinterfaces:
IntervalProtocol
- All Known Implementing Classes:
AbstractIntervalProtocol,AbstractProtocol,Logger,Logstash,Munin,NRPE
public interface Protocol extends NotificationListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JMolegetJMole()Get the JMole instanceStringgetName()Get the name of the protocolvoidhandleCritical(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 WarningvoidsetName(String name)Set protocol namevoidstartProtocol(JMole jmole)Callback for starting the protocolvoidstopProtocol()Callback for stopping the protocol-
Methods inherited from interface javax.management.NotificationListener
handleNotification
-
-
-
-
Method Detail
-
startProtocol
void startProtocol(JMole jmole) throws Exception
Callback for starting the protocol- Throws:
Exception
-
stopProtocol
void stopProtocol() throws ExceptionCallback for stopping the protocol- Throws:
Exception
-
setName
void setName(String name)
Set protocol name
-
getName
String getName()
Get the name of the protocol
-
getJMole
JMole getJMole()
Get the JMole instance
-
handleWarning
void handleWarning(String name, String attribute, net.welen.jmole.presentation.PresentationInformation presentationInformation, String message) throws Exception
Handle Warning- Throws:
Exception
-
-