public class ZookeeperServerList extends com.netflix.loadbalancer.AbstractServerList<ZookeeperServer>
AbstractServerList that returns the list of
servers on which instances are ran. The implementation is capable of resolving
the servers from ZookeeperDependencies.| Constructor and Description |
|---|
ZookeeperServerList(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery) |
| Modifier and Type | Method and Description |
|---|---|
List<ZookeeperServer> |
getInitialListOfServers() |
protected List<ZookeeperServer> |
getServers() |
List<ZookeeperServer> |
getUpdatedListOfServers() |
void |
initFromDependencies(com.netflix.client.config.IClientConfig clientConfig,
ZookeeperDependencies zookeeperDependencies) |
void |
initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig) |
public ZookeeperServerList(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery)
public void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
public void initFromDependencies(com.netflix.client.config.IClientConfig clientConfig,
ZookeeperDependencies zookeeperDependencies)
public List<ZookeeperServer> getInitialListOfServers()
public List<ZookeeperServer> getUpdatedListOfServers()
protected List<ZookeeperServer> getServers()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.