|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.carol.cmi.Random
You can use this helper class to get a randomized load balancing algorithm between clustered servers.
| Constructor Summary | |
Random()
Constructor |
|
Random(java.util.Set c)
Builds a random algorithm on a Collection of StubData objects. |
|
| Method Summary | |
StubData |
get()
Get a stub randomly |
void |
update(java.util.Set stubs)
Update the set of stub only if different from the last update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Random()
public Random(java.util.Set c)
c - a Collection of StubData objects.| Method Detail |
public void update(java.util.Set stubs)
stubs - set of stub
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 | ||||||||||