Package com.linkedin.venice.d2
Class D2HealthChecker
- java.lang.Object
-
- com.linkedin.venice.d2.D2HealthChecker
-
public class D2HealthChecker extends java.lang.Object
Runs a daemon thread that consistently sends HTTP GET request to admin healthcheck endpoint. If there are consecutive N bad status, shuts down zookeeper announcer and waits until it receives N consecutive good status to restart ZooKeeperAnnouncer
-
-
Constructor Summary
Constructors Constructor Description D2HealthChecker(com.linkedin.d2.balancer.servers.ZooKeeperConnectionManager zkManager, long intervalMs, java.lang.String healthCheckUrl, int minConsecutiveCount, java.util.concurrent.ScheduledExecutorService executorService, int httpTimeoutMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBadState()
void
shutdown()
void
start()
-