net.tomp2p.storage
Class StorageMemoryReplication

java.lang.Object
  extended by net.tomp2p.storage.StorageMemoryReplication
All Implemented Interfaces:
ReplicationStorage

public class StorageMemoryReplication
extends Object
implements ReplicationStorage


Constructor Summary
StorageMemoryReplication()
           
 
Method Summary
 Collection<Number160> findContentForResponsiblePeerID(Number160 peerID)
           
 Number160 findPeerIDForResponsibleContent(Number160 locationKey)
           
 void removeResponsibility(Number160 locationKey)
           
 boolean updateResponsibilities(Number160 locationKey, Number160 peerId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageMemoryReplication

public StorageMemoryReplication()
Method Detail

findPeerIDForResponsibleContent

public Number160 findPeerIDForResponsibleContent(Number160 locationKey)
Specified by:
findPeerIDForResponsibleContent in interface ReplicationStorage

findContentForResponsiblePeerID

public Collection<Number160> findContentForResponsiblePeerID(Number160 peerID)
Specified by:
findContentForResponsiblePeerID in interface ReplicationStorage

updateResponsibilities

public boolean updateResponsibilities(Number160 locationKey,
                                      Number160 peerId)
Specified by:
updateResponsibilities in interface ReplicationStorage

removeResponsibility

public void removeResponsibility(Number160 locationKey)
Specified by:
removeResponsibility in interface ReplicationStorage


Copyright © 2013. All Rights Reserved.