|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.replication.ReplicationStrategy
public class ReplicationStrategy
This class implements the logic that selects the next server to which a replicated command should be dispatched.
| Constructor Summary | |
|---|---|
ReplicationStrategy(java.util.Set visited,
java.util.Set targets,
java.util.Set existing)
|
|
| Method Summary | |
|---|---|
ServerAddress |
selectNextSibling()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationStrategy(java.util.Set visited,
java.util.Set targets,
java.util.Set existing)
visited - the Set of ServerAddresses of the hosts
that have already been visited.targets - the Set of ServerAddresses corresponding to
targeted hosts - if null, then the strategy assumes that all hosts must
be visited.existing - the Set of ServerAddresses corresponding to
the existing hosts.| Method Detail |
|---|
public ServerAddress selectNextSibling()
ServerAddress of the next sibling host to which replication
should be made. null is returned if there is no "next" host to which to
replicate - all hosts have been visited. Note: if not null, the returned address
is added to the set of visited ones.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||