Package jade.core.nodeMonitoring
Class BlockingNodeFailureMonitor
- java.lang.Object
-
- jade.core.NodeFailureMonitor
-
- jade.core.nodeMonitoring.BlockingNodeFailureMonitor
-
- All Implemented Interfaces:
Runnable
public class BlockingNodeFailureMonitor extends NodeFailureMonitor implements Runnable
TheBlockingNodeFailureMonitorclass detects node failures and notifies its registered listener using blocking calls to the ping() remote method of the monitored Node.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l., Roland Mungenast - Profactor
- See Also:
NodeFailureMonitor
-
-
Field Summary
-
Fields inherited from class jade.core.NodeFailureMonitor
childNodes, listener, target
-
-
Constructor Summary
Constructors Constructor Description BlockingNodeFailureMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidstart(Node n, NodeEventListener nel)Start the monitoringvoidstop()Stop the monitoring-
Methods inherited from class jade.core.NodeFailureMonitor
addChild, fireNodeAdded, fireNodeReachable, fireNodeRemoved, fireNodeUnreachable, getDefaultFailureMonitor, getFailureMonitor, getNode, init, removeChild, requireService
-
-
-
-
Method Detail
-
start
public void start(Node n, NodeEventListener nel)
Description copied from class:NodeFailureMonitorStart the monitoring- Overrides:
startin classNodeFailureMonitor- Parameters:
n- target node to monitornel- listener to inform about new events
-
stop
public void stop()
Description copied from class:NodeFailureMonitorStop the monitoring- Specified by:
stopin classNodeFailureMonitor
-
-