rice.p2p.replication
Class ReplicationPolicy.DefaultReplicationPolicy
java.lang.Object
rice.p2p.replication.ReplicationPolicy.DefaultReplicationPolicy
- All Implemented Interfaces:
- ReplicationPolicy
- Enclosing interface:
- ReplicationPolicy
public static class ReplicationPolicy.DefaultReplicationPolicy
- extends Object
- implements ReplicationPolicy
The default policy for Replication, which simply does a direct diff between the sets
- Author:
- Alan Mislove
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicationPolicy.DefaultReplicationPolicy
public ReplicationPolicy.DefaultReplicationPolicy()
difference
public IdSet difference(IdSet local,
IdSet remote,
IdFactory factory)
- This method simply returns remote-local.
- Specified by:
difference in interface ReplicationPolicy
- Parameters:
local - The set of local idsremote - The set of remote idsfactory - The factory to use to create IdSets
- Returns:
- A subset of the remote ids which need to be fetched
Copyright © 2010. All Rights Reserved.