|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.loadbalancer.AbstractLoadBalancer
com.netflix.loadbalancer.NoOpLoadBalancer
public class NoOpLoadBalancer
A noOp Loadbalancer i.e. doesnt do anything "loadbalancer like"
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.netflix.loadbalancer.AbstractLoadBalancer |
---|
AbstractLoadBalancer.ServerGroup |
Constructor Summary | |
---|---|
NoOpLoadBalancer()
|
Method Summary | |
---|---|
void |
addServers(java.util.List<Server> newServers)
Initial list of servers. |
Server |
chooseServer(java.lang.Object key)
Choose a server from load balancer. |
LoadBalancerStats |
getLoadBalancerStats()
Obtain LoadBalancer related Statistics |
java.util.List<Server> |
getServerList(AbstractLoadBalancer.ServerGroup serverGroup)
List of servers that this Loadbalancer knows about |
void |
markServerDown(Server server)
To be called by the clients of the load balancer to notify that a Server is down else, the LB will think its still Alive until the next Ping cycle - potentially (assuming that the LB Impl does a ping) |
Methods inherited from class com.netflix.loadbalancer.AbstractLoadBalancer |
---|
chooseServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoOpLoadBalancer()
Method Detail |
---|
public void addServers(java.util.List<Server> newServers)
ILoadBalancer
newServers
- new servers to addpublic Server chooseServer(java.lang.Object key)
ILoadBalancer
key
- An object that the load balancer may use to determine which server to return. null if
the load balancer does not use this parameter.
public LoadBalancerStats getLoadBalancerStats()
AbstractLoadBalancer
getLoadBalancerStats
in class AbstractLoadBalancer
public java.util.List<Server> getServerList(AbstractLoadBalancer.ServerGroup serverGroup)
AbstractLoadBalancer
getServerList
in class AbstractLoadBalancer
public void markServerDown(Server server)
ILoadBalancer
server
- Server to mark as down
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |