com.netflix.loadbalancer
Class ConfigurationBasedServerList

java.lang.Object
  extended by com.netflix.loadbalancer.AbstractServerList<Server>
      extended by com.netflix.loadbalancer.ConfigurationBasedServerList
All Implemented Interfaces:
IClientConfigAware, ServerList<Server>

public class ConfigurationBasedServerList
extends AbstractServerList<Server>

Utility class that can load the List of Servers from a Configuration (i.e properties available via Archaius)


Field Summary
static java.lang.String PROP_NAME
           
 
Constructor Summary
ConfigurationBasedServerList()
           
 
Method Summary
 java.util.List<Server> getInitialListOfServers()
           
 java.util.List<Server> getUpdatedListOfServers()
          Return updated list of servers.
 void initWithNiwsConfig(IClientConfig clientConfig)
          Concrete implementation should implement this method so that the configuration set via IClientConfig (which in turn were set via Archaius properties) will be taken into consideration
 
Methods inherited from class com.netflix.loadbalancer.AbstractServerList
getFilterImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_NAME

public static final java.lang.String PROP_NAME
See Also:
Constant Field Values
Constructor Detail

ConfigurationBasedServerList

public ConfigurationBasedServerList()
Method Detail

getInitialListOfServers

public java.util.List<Server> getInitialListOfServers()

getUpdatedListOfServers

public java.util.List<Server> getUpdatedListOfServers()
Description copied from interface: ServerList
Return updated list of servers. This is called say every 30 secs (configurable) by the Loadbalancer's Ping cycle

Returns:

initWithNiwsConfig

public void initWithNiwsConfig(IClientConfig clientConfig)
Description copied from interface: IClientConfigAware
Concrete implementation should implement this method so that the configuration set via IClientConfig (which in turn were set via Archaius properties) will be taken into consideration