net.tomp2p.replication
Class TrackerStorageReplication

java.lang.Object
  extended by net.tomp2p.replication.TrackerStorageReplication
All Implemented Interfaces:
ResponsibilityListener

public class TrackerStorageReplication
extends Object
implements ResponsibilityListener


Constructor Summary
TrackerStorageReplication(Peer peer, PeerExchangeRPC peerExchangeRPC, Map<BaseFuture,Long> pendingFutures, TrackerStorage trackerStorage, boolean forceTCP)
           
 
Method Summary
 void meResponsible(Number160 locationKey)
          The responsibilty changed to our peer.
 void otherResponsible(Number160 locationKey, PeerAddress other)
          Here an other peer is responsible and we need to transfer data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackerStorageReplication

public TrackerStorageReplication(Peer peer,
                                 PeerExchangeRPC peerExchangeRPC,
                                 Map<BaseFuture,Long> pendingFutures,
                                 TrackerStorage trackerStorage,
                                 boolean forceTCP)
Method Detail

meResponsible

public void meResponsible(Number160 locationKey)
Description copied from interface: ResponsibilityListener
The responsibilty changed to our peer. That means we are now responsible.

Specified by:
meResponsible in interface ResponsibilityListener
Parameters:
locationKey - The location key

otherResponsible

public void otherResponsible(Number160 locationKey,
                             PeerAddress other)
Description copied from interface: ResponsibilityListener
Here an other peer is responsible and we need to transfer data.

Specified by:
otherResponsible in interface ResponsibilityListener
Parameters:
locationKey - The location key
other - The other peer that is responsible for locationKey


Copyright © 2013. All Rights Reserved.