|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.carol.cmi.RoundRobin
public class RoundRobin
You can use this helper class to get a round robin load balacing algorithm between clustered servers.
| Constructor Summary | |
|---|---|
RoundRobin()
Constructor |
|
RoundRobin(java.util.Set c)
Builds a round robin algorithm on a Collection of StubData objects. |
|
| Method Summary | |
|---|---|
StubData |
get()
Get a stub according to the RR algorithm |
void |
update(java.util.Set stubs)
Update the set of stubs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoundRobin()
public RoundRobin(java.util.Set c)
c - a Collection of StubData objects.| Method Detail |
|---|
public void update(java.util.Set stubs)
stubs - new set of stubs
public StubData get()
throws NoServerException
NoServerException - if no stub available
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||