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
Class ReplicationPolicy.DefaultReplicationPolicy

    java.lang.Object
      rice.p2p.replication.ReplicationPolicy.DefaultReplicationPolicy

All Implemented Interfaces:
  ReplicationPolicy

Enclosing interface:
  ReplicationPolicy

    public static class ReplicationPolicy.DefaultReplicationPolicy

extends java.lang.Object
implements ReplicationPolicy

The default policy for Replication, which simply does a direct diff between the sets

Author:
  Alan Mislove

Nested Class Summary

Nested classes/interfaces inherited from interface rice.p2p.replication.ReplicationPolicy
`ReplicationPolicy.DefaultReplicationPolicy`

Constructor Summary
`ReplicationPolicy.DefaultReplicationPolicy()`

Method Summary
`IdSet` | `difference(IdSet local, IdSet remote, IdFactory factory)` This method simply returns remote-local.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ReplicationPolicy.DefaultReplicationPolicy

    public ReplicationPolicy.DefaultReplicationPolicy()

Method Detail

### 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 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.