|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ILoadBalancer
Interface that defines the operations for a software loadbalancer. A typical loadbalancer minimally need a set of servers to loadbalance for, a method to mark a particular server to be out of rotation and a call that will choose a server from the existing list of server.
| 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. |
java.util.List<Server> |
getServerList(boolean availableOnly)
Get the current list of servers. |
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) |
| Method Detail |
|---|
void addServers(java.util.List<Server> newServers)
newServers - new servers to addServer chooseServer(java.lang.Object key)
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.
void markServerDown(Server server)
server - Server to mark as downjava.util.List<Server> getServerList(boolean availableOnly)
availableOnly - if true, only live and available servers should be returned
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||