Package jadex.micro.examples.watchdog
Class WatchdogAgent
- java.lang.Object
-
- jadex.micro.examples.watchdog.WatchdogAgent
-
- All Implemented Interfaces:
IWatchdogService
public class WatchdogAgent extends java.lang.Object implements IWatchdogService
The watchdog agent pings other watchdogs and issues an action, when a watchdog becomes unavailable.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The micro agent class.protected java.util.Map
watchdogs
The found watchdogs.
-
Constructor Summary
Constructors Constructor Description WatchdogAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
agentCreated()
Agent startup.java.lang.String
getInfo()
Get the information about this watchdog.IFuture<java.lang.Void>
ping()
Test if this watchdog is alive.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The micro agent class.
-
watchdogs
protected java.util.Map watchdogs
The found watchdogs.
-
-
Method Detail
-
agentCreated
public IFuture<java.lang.Void> agentCreated()
Agent startup.
-
getInfo
public java.lang.String getInfo()
Get the information about this watchdog.- Specified by:
getInfo
in interfaceIWatchdogService
- Returns:
- The information.
-
ping
public IFuture<java.lang.Void> ping()
Test if this watchdog is alive.- Specified by:
ping
in interfaceIWatchdogService
-
-