public class TrackerStorageReplication extends Object implements ResponsibilityListener
| Constructor and Description |
|---|
TrackerStorageReplication(Peer peer,
PeerExchangeRPC peerExchangeRPC,
Map<BaseFuture,Long> pendingFutures,
TrackerStorage trackerStorage,
boolean forceTCP) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TrackerStorageReplication(Peer peer, PeerExchangeRPC peerExchangeRPC, Map<BaseFuture,Long> pendingFutures, TrackerStorage trackerStorage, boolean forceTCP)
public void meResponsible(Number160 locationKey)
ResponsibilityListenermeResponsible in interface ResponsibilityListenerlocationKey - The location keypublic void otherResponsible(Number160 locationKey, PeerAddress other)
ResponsibilityListenerotherResponsible in interface ResponsibilityListenerlocationKey - The location keyother - The other peer that is responsible for locationKeyCopyright © 2013. All Rights Reserved.