Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.p2p.replication
Interface ReplicationPolicy

All Known Implementing Classes:
  ReplicationPolicy.DefaultReplicationPolicy

    public interface ReplicationPolicy

Version:
  $Id: ReplicationPolicy.java 3613 2007-02-15 14:45:14Z jstewart $
Author:
  Alan Mislove

Nested Class Summary
`static class` | `ReplicationPolicy.DefaultReplicationPolicy` The default policy for Replication, which simply does a direct diff between the sets

Method Summary
`IdSet` | `difference(IdSet local, IdSet remote, IdFactory factory)` This method is given a list of local ids and a list of remote ids, and should return the list of remote ids which need to be fetched.

Method Detail

### difference

    IdSet difference(IdSet local,
                     IdSet remote,
                     IdFactory factory)

  This method is given a list of local ids and a list of remote ids, and should return the list of remote ids which need to be fetched. Thus, this method should return the set B-A, where the result is a subset of B.

  Parameters:
    `local` - The set of local ids
    `remote` - The set of remote ids
    `factory` - The factory to use to create IdSets
  Returns:
    A subset of the remote ids which need to be fetched

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.