Class WatchdogAgent

java.lang.Object
jadex.micro.watchdog.WatchdogAgent
All Implemented Interfaces:
IWatchdogService

public class WatchdogAgent extends Object implements IWatchdogService
The watchdog agent pings other watchdogs and issues an action, when a watchdog becomes unavailable.
  • Field Details

    • agent

      protected jadex.core.IComponent agent
      The micro agent class.
    • watchdogs

      protected List<IWatchdogService> watchdogs
      The found watchdogs.
    • delay

      protected long delay
      The delay.
  • Constructor Details

    • WatchdogAgent

      public WatchdogAgent()
    • WatchdogAgent

      public WatchdogAgent(long delay)
  • Method Details

    • onStart

      public void onStart()
      Agent startup.
    • ping

      public jadex.future.IFuture<Void> ping()
      Test if this watchdog is alive.
      Specified by:
      ping in interface IWatchdogService
    • main

      public static void main(String[] args)