Package com.linkedin.venice.d2
Class D2ServerManager
- java.lang.Object
-
- com.linkedin.venice.d2.D2ServerManager
-
public class D2ServerManager extends java.lang.Object
This class provides a server manager with start/shutdown methods to be invoked to manage the lifecycle of the server announcer.
-
-
Constructor Summary
Constructors Constructor Description D2ServerManager(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, java.lang.String healthCheckUrl, java.util.concurrent.ScheduledExecutorService scheduledExecutorService, int d2HealthCheckerTimeoutMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doStart()
void
forceStart()
java.util.Set<java.lang.String>
getNodeUris()
com.linkedin.d2.balancer.servers.ZooKeeperAnnouncer[]
getZkAnnouncers()
com.linkedin.d2.balancer.servers.ZooKeeperAnnouncer[]
getZkAnnouncersWithoutStartCheck()
java.lang.String
getZkConnectString()
boolean
isDelayStart()
boolean
isDoNotStart()
boolean
isStarted()
void
shutdown()
void
start()
-
-
-
Constructor Detail
-
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, java.lang.String healthCheckUrl, java.util.concurrent.ScheduledExecutorService scheduledExecutorService, int d2HealthCheckerTimeoutMs)
-
-
Method Detail
-
start
public void start() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shutdown
public void shutdown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
forceStart
public void forceStart() throws java.lang.Exception
- Throws:
java.lang.Exception
-
doStart
public void doStart() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getZkAnnouncers
public com.linkedin.d2.balancer.servers.ZooKeeperAnnouncer[] getZkAnnouncers()
-
getZkAnnouncersWithoutStartCheck
public com.linkedin.d2.balancer.servers.ZooKeeperAnnouncer[] getZkAnnouncersWithoutStartCheck()
-
getZkConnectString
public java.lang.String getZkConnectString()
-
getNodeUris
public java.util.Set<java.lang.String> getNodeUris()
-
isStarted
public boolean isStarted()
-
isDelayStart
public boolean isDelayStart()
-
isDoNotStart
public boolean isDoNotStart()
-
-