|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jrunx.cluster.ClusterAlgorithm
|
+--jrunx.cluster.RoundRobinAlgorithm
This algorithm selects the first ClusterableService in a list of such services, and selects the next service in the list for each subsequent invocation.
| Field Summary | |
protected int |
cursor
|
| Fields inherited from class jrunx.cluster.ClusterAlgorithm |
rand |
| Fields inherited from interface jrunx.cluster.ClusterConstants |
AVAILABLE_SERVICES, CLUSTER_MANAGER_JNDI, DEFAULT_CLUSTER_DOMAIN, DEFAULT_ENABLED, JINI_CODE_BASE_JAR, PRIMARY_SERVICE, SECONDARY_SERVICE |
| Constructor Summary | |
RoundRobinAlgorithm()
|
|
| Method Summary | |
ClusterableService |
selectService(java.util.ArrayList services)
|
| Methods inherited from class jrunx.cluster.ClusterAlgorithm |
chooseRandom, chooseRandom, chooseStub, getPrefered, invokeService, invokeService |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int cursor
| Constructor Detail |
public RoundRobinAlgorithm()
| Method Detail |
public ClusterableService selectService(java.util.ArrayList services)
throws java.rmi.RemoteException
selectService in class ClusterAlgorithm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||