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 Summary
Modifier and TypeMethodDescriptiondefault voidstart()Starts thisWorkerWatchdog.default voidstop()Stops thisWorkerWatchdog.voidExecutes the rules for thisWorkerWatchdog
-
Method Details
-
start
default void start()Starts thisWorkerWatchdog. -
stop
default void stop()Stops thisWorkerWatchdog. -
watch
Executes the rules for thisWorkerWatchdog- Parameters:
worker- theWorkeragainst which to operate
-