Package com.seeq.link.agent
Class Watchdog
java.lang.Object
com.seeq.link.agent.Watchdog
Keeps a series of named timers and requires a call to Reset() in order to suppress "barking".
Used to trigger a reset of the agent if the connection to the server goes down or the heartbeat
thread gets stuck or dies.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWatchdog
(WatchdogConfigV1 config, Consumer<Watchdog.WatchdogTimer> barkFunction, Function<Watchdog.WatchdogTimer, com.seeq.link.sdk.utilities.Stopwatch> stopwatchFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
void
reset
(Watchdog.WatchdogTimer watchdogTimer)
-
Constructor Details
-
Watchdog
public Watchdog(WatchdogConfigV1 config, Consumer<Watchdog.WatchdogTimer> barkFunction, Function<Watchdog.WatchdogTimer, com.seeq.link.sdk.utilities.Stopwatch> stopwatchFactory)
-
-
Method Details
-
initialize
public void initialize() -
reset
-
destroy
public void destroy()
-