public class LocalMap extends Object implements Maintainable, PeerStatusListener
| Constructor and Description |
|---|
LocalMap() |
LocalMap(LocalMapConf localMapConf) |
| Modifier and Type | Method and Description |
|---|---|
PeerStatistic |
nextForMaintenance(Collection<PeerAddress> notInterestedAddresses) |
boolean |
peerFailed(PeerAddress remotePeer,
PeerException exception)
Called if the peer does not send answer in time.
|
boolean |
peerFound(PeerAddress remotePeer,
PeerAddress referrer) |
boolean |
peerFound(PeerAddress remotePeer,
PeerAddress referrer,
PeerConnection peerConnection)
Called if the peer is online and who reported it.
|
int |
size() |
PeerStatistic |
translate(PeerAddress remotePeer) |
PeerAddress |
translateReverse(PeerAddress remotePeer) |
public LocalMap()
public LocalMap(LocalMapConf localMapConf)
public PeerStatistic nextForMaintenance(Collection<PeerAddress> notInterestedAddresses)
nextForMaintenance in interface Maintainablepublic boolean peerFailed(PeerAddress remotePeer, PeerException exception)
PeerStatusListenerpeerFailed in interface PeerStatusListenerremotePeer - The address of the peer that failedpublic boolean peerFound(PeerAddress remotePeer, PeerAddress referrer, PeerConnection peerConnection)
PeerStatusListenerpeerFound in interface PeerStatusListenerremotePeer - The address of the peer that is online.referrer - the peer that reported the availability of peerAddresspublic boolean peerFound(PeerAddress remotePeer, PeerAddress referrer)
public PeerStatistic translate(PeerAddress remotePeer)
public PeerAddress translateReverse(PeerAddress remotePeer)
public int size()
Copyright © 2014. All rights reserved.