Class SdcRemoteDeviceWatchdog

  • All Implemented Interfaces:
    com.google.common.util.concurrent.Service

    
    public class SdcRemoteDeviceWatchdog
    extends AbstractIdleService
                        

    Sends WS-Eventing Renew or DirectedProbe requests and informs in case of an error.

    SdcRemoteDeviceWatchdog is a Guava service that requests a remote device in a given periodicity once started.

    • If at least one subscription exists, SdcRemoteDeviceWatchdog tries to renew this subscription in order to check if the remote device is still reachable.
    • If multiple subscriptions exist, all are renewed.
    • If no subscription exists, SdcRemoteDeviceWatchdog sends a directed probe.
    The automatic renew spares enabling auto-renew for subscriptions. The requested expires value for Subscribe requests is ConsumerConfig#WATCHDOG_PERIOD * 3.

    Watchdog events are distributed only if the service is running.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void registerObserver(WatchdogObserver watchdogObserver) Registers a watchdog observer.
      void unregisterObserver(WatchdogObserver watchdogObserver) Unregisters a watchdog observer.
      • Methods inherited from class com.google.common.util.concurrent.AbstractIdleService

        addListener, awaitRunning, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync, toString
      • Methods inherited from class java.lang.Object

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