public class RouterWatchdog extends Object implements Runnable
| Constructor and Description |
|---|
RouterWatchdog(RouterContext ctx)Create a new router watchdog. |
| Modifier and Type | Method and Description |
|---|---|
void | monitorRouter()Monitor router health and take action if needed. |
void | run()Main watchdog monitoring loop. |
void | shutdown()Shutdown the watchdog gracefully. |
boolean | verifyClientLiveliness()Verify that client applications are responsive. |
boolean | verifyJobQueueLiveliness()Verify that the job queue is processing jobs normally. |
public RouterWatchdog(RouterContext ctx)
ctx - the router context for accessing router services and loggingpublic void monitorRouter()
public void run()
public void shutdown()
public boolean verifyClientLiveliness()
public boolean verifyJobQueueLiveliness()