Interface WorkerWatchdog

All Known Implementing Classes:
NodeBindingWatchdog, NodeHealthWorkerWatchdog

public interface WorkerWatchdog
Represents a watchdog service which is designed to perform operations against the Worker on a regular basis, ensuring things like health checks and other critical operations. There may be multiple WorkerWatchdog instances for many different purposes and to avoid unnecessary concurrencty each WorkerWatchdog must define it's own rules and perocess them upon request.
  • Method Details

    • start

      default void start()
      Starts this WorkerWatchdog.
    • stop

      default void stop()
      Stops this WorkerWatchdog.
    • watch

      void watch(org.slf4j.Logger logger, Worker worker)
      Executes the rules for this WorkerWatchdog
      Parameters:
      worker - the Worker against which to operate