public class TopologyAwareLoadBalancer extends ClusterAwareLoadBalancer
columnToUseForHost, currentPublicIps, forceRefresh, GET_SERVERS_QUERY, hostPortMap, hostPortMapPublic, LOGGER, refreshListSeconds, useHostColumn| Constructor and Description |
|---|
TopologyAwareLoadBalancer(String placementValues) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearHostIPLists() |
void |
decrementHostToNumConnCount(String chosenHost) |
protected String |
getLoadBalancerType() |
protected ArrayList<String> |
getPrivateOrPublicServers(ArrayList<String> privateHosts,
ArrayList<String> publicHosts) |
boolean |
hasMorePreferredNode(String chosenHost) |
protected String |
loadBalancingNodes() |
protected void |
updateCurrentHostList(ArrayList<String> currentPrivateIps,
String host,
String publicIp,
String cloud,
String region,
String zone) |
void |
updateFailedHosts(String chosenHost) |
protected void |
updatePriorityMap(String host,
String cloud,
String region,
String zone) |
getConnectionCountFor, getCurrentServers, getInstance, getLeastLoadedServer, getPort, getServers, getUnreachableHosts, instance, needsRefresh, printHostToConnMap, refresh, setForRefresh, updateConnectionMappublic TopologyAwareLoadBalancer(String placementValues)
protected String loadBalancingNodes()
loadBalancingNodes in class ClusterAwareLoadBalancerprotected void clearHostIPLists()
clearHostIPLists in class ClusterAwareLoadBalancerprotected void updateCurrentHostList(ArrayList<String> currentPrivateIps, String host, String publicIp, String cloud, String region, String zone)
updateCurrentHostList in class ClusterAwareLoadBalancerpublic boolean hasMorePreferredNode(String chosenHost)
hasMorePreferredNode in class ClusterAwareLoadBalancerprotected void updatePriorityMap(String host, String cloud, String region, String zone)
updatePriorityMap in class ClusterAwareLoadBalancerpublic void updateFailedHosts(String chosenHost)
updateFailedHosts in class ClusterAwareLoadBalancerpublic void decrementHostToNumConnCount(String chosenHost)
decrementHostToNumConnCount in class ClusterAwareLoadBalancerprotected ArrayList<String> getPrivateOrPublicServers(ArrayList<String> privateHosts, ArrayList<String> publicHosts)
getPrivateOrPublicServers in class ClusterAwareLoadBalancerprotected String getLoadBalancerType()
getLoadBalancerType in class ClusterAwareLoadBalancerCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.