Package jadex.micro.watchdog
Class WatchdogAgent
java.lang.Object
jadex.micro.watchdog.WatchdogAgent
- All Implemented Interfaces:
IWatchdogService
The watchdog agent pings other watchdogs and issues an action,
when a watchdog becomes unavailable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jadex.core.IComponent
The micro agent class.protected long
The delay.protected List
<IWatchdogService> The found watchdogs. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
agent
protected jadex.core.IComponent agentThe micro agent class. -
watchdogs
The found watchdogs. -
delay
protected long delayThe delay.
-
-
Constructor Details
-
WatchdogAgent
public WatchdogAgent() -
WatchdogAgent
public WatchdogAgent(long delay)
-
-
Method Details
-
onStart
public void onStart()Agent startup. -
ping
Test if this watchdog is alive.- Specified by:
ping
in interfaceIWatchdogService
-
main
-