public class RoundRobin
extends java.lang.Object
Constructor and Description |
---|
RoundRobin()
Constructor
|
RoundRobin(java.util.Set c)
Builds a round robin algorithm on a Collection of StubData objects.
|
Modifier and Type | Method and Description |
---|---|
StubData |
get()
Get a stub according to the RR algorithm
|
void |
update(java.util.Set stubs)
Update the set of stubs
|
public RoundRobin()
public RoundRobin(java.util.Set c)
c
- a Collection of StubData objects.public void update(java.util.Set stubs)
stubs
- new set of stubspublic StubData get() throws NoServerException
NoServerException
- if no stub available