Package com.linkedin.venice.d2
Class D2ServerManager
java.lang.Object
com.linkedin.venice.d2.D2ServerManager
This class provides a server manager with start/shutdown methods to be invoked to manage the lifecycle of the server
announcer.
-
Constructor Summary
ConstructorDescriptionD2ServerManager
(com.linkedin.d2.balancer.servers.ZooKeeperConnectionManager manager, long startupTimeoutMillis, boolean continueIfStartupFails, long shutdownTimeoutMillis, boolean continueIfShutdownFails, boolean doNotStart) D2ServerManager
(com.linkedin.d2.balancer.servers.ZooKeeperConnectionManager manager, long startupTimeoutMillis, boolean continueIfStartupFails, long shutdownTimeoutMillis, boolean continueIfShutdownFails, boolean doNotStart, boolean delayStart, boolean initMarkUp, boolean healthCheckEnabled, long healthCheckInterval, int healthCheckRetries, String healthCheckUrl, ScheduledExecutorService scheduledExecutorService, int d2HealthCheckerTimeoutMs) -
Method Summary
-
Constructor Details
-
D2ServerManager
public D2ServerManager(com.linkedin.d2.balancer.servers.ZooKeeperConnectionManager manager, long startupTimeoutMillis, boolean continueIfStartupFails, long shutdownTimeoutMillis, boolean continueIfShutdownFails, boolean doNotStart) -
D2ServerManager
public D2ServerManager(com.linkedin.d2.balancer.servers.ZooKeeperConnectionManager manager, long startupTimeoutMillis, boolean continueIfStartupFails, long shutdownTimeoutMillis, boolean continueIfShutdownFails, boolean doNotStart, boolean delayStart, boolean initMarkUp, boolean healthCheckEnabled, long healthCheckInterval, int healthCheckRetries, String healthCheckUrl, ScheduledExecutorService scheduledExecutorService, int d2HealthCheckerTimeoutMs)
-
-
Method Details
-
start
- Throws:
Exception
-
shutdown
- Throws:
Exception
-
forceStart
- Throws:
Exception
-
doStart
- Throws:
Exception
-
getZkAnnouncers
public com.linkedin.d2.balancer.servers.ZooKeeperAnnouncer[] getZkAnnouncers() -
getZkAnnouncersWithoutStartCheck
public com.linkedin.d2.balancer.servers.ZooKeeperAnnouncer[] getZkAnnouncersWithoutStartCheck() -
getZkConnectString
-
getNodeUris
-
isStarted
public boolean isStarted() -
isDelayStart
public boolean isDelayStart() -
isDoNotStart
public boolean isDoNotStart()
-