net.tomp2p.storage
Class ResponsibilityMemory

java.lang.Object
  extended by net.tomp2p.storage.ResponsibilityMemory
All Implemented Interfaces:
Responsibility

public class ResponsibilityMemory
extends Object
implements Responsibility


Constructor Summary
ResponsibilityMemory()
           
 
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

ResponsibilityMemory

public ResponsibilityMemory()
Method Detail

findPeerIDForResponsibleContent

public Number160 findPeerIDForResponsibleContent(Number160 locationKey)

Specified by:
findPeerIDForResponsibleContent in interface Responsibility

findContentForResponsiblePeerID

public Collection<Number160> findContentForResponsiblePeerID(Number160 peerID)

Specified by:
findContentForResponsiblePeerID in interface Responsibility

updateResponsibilities

public boolean updateResponsibilities(Number160 locationKey,
                                      Number160 peerId)

Specified by:
updateResponsibilities in interface Responsibility

removeResponsibility

public void removeResponsibility(Number160 locationKey)

Specified by:
removeResponsibility in interface Responsibility


Copyright © 2012. All Rights Reserved.