Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • watchdogs

        protected java.util.Map watchdogs
        The found watchdogs.
    • Constructor Detail

      • WatchdogAgent

        public WatchdogAgent()
    • 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 interface IWatchdogService
        Returns:
        The information.