| Package | Description |
|---|---|
| net.tomp2p.message | |
| net.tomp2p.p2p | |
| net.tomp2p.peers |
| Constructor and Description |
|---|
TrackerData(Collection<Pair<PeerStatistic,Data>> value) |
| Modifier and Type | Method and Description |
|---|---|
Comparator<PeerStatistic> |
RTTPeerStatisticComparator.getComparator(Number160 location) |
Comparator<PeerStatistic> |
DefaultPeerStatisticComparator.getComparator(Number160 location) |
Comparator<PeerStatistic> |
PeerStatisticComparator.getComparator(Number160 location) |
NavigableSet<PeerStatistic> |
RoutingMechanism.queueToAsk() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RoutingMechanism.evaluateSuccess(PeerAddress remotePeer,
DigestInfo digestBean,
Collection<PeerStatistic> newNeighbors,
boolean last,
Number160 locationkey) |
RoutingMechanism |
RoutingMechanism.queueToAsk(NavigableSet<PeerStatistic> queueToAsk) |
| Modifier and Type | Method and Description |
|---|---|
PeerStatistic |
PeerStatistic.addRTT(RTT rtt)
Adds a RTT to the cache.
|
PeerStatistic |
PeerMap.getPeerStatistic(PeerAddress peerAddress)
Checks if an entry of that peerAddress is available in the verified peer map
or overflow peer map.
|
PeerStatistic |
PeerStatistic.local() |
PeerStatistic |
Maintainable.nextForMaintenance(Collection<PeerAddress> notInterestedAddresses) |
PeerStatistic |
PeerMap.nextForMaintenance(Collection<PeerAddress> notInterestedAddresses)
Finds the next peer that should have a maintenance check.
|
PeerStatistic |
LocalMap.nextForMaintenance(Collection<PeerAddress> notInterestedAddresses) |
PeerStatistic |
Maintenance.nextForMaintenance(Collection<PeerAddress> notInterestedAddresses) |
PeerStatistic |
DefaultMaintenance.nextForMaintenance(Collection<PeerAddress> notInterestedAddresses)
Finds the next peer that should have a maintenance check.
|
PeerStatistic |
PeerStatistic.setLocal(boolean local) |
PeerStatistic |
LocalMap.translate(PeerAddress remotePeer) |
static PeerStatistic |
PeerMap.updateExistingVerifiedPeerAddress(Map<Number160,PeerStatistic> tmp,
PeerAddress peerAddress,
boolean firstHand,
RTT roundTripTime)
Checks if a peer already exists in this map and if it does, it will update the entry because the peer address
(e.g.
|
| Modifier and Type | Method and Description |
|---|---|
NavigableSet<PeerStatistic> |
PeerMap.closePeers(int atLeast)
Returns close peers to the peer itself.
|
NavigableSet<PeerStatistic> |
PeerMap.closePeers(Number160 id,
int atLeast)
Returns close peer from the set to a given key.
|
static NavigableSet<PeerStatistic> |
PeerMap.closePeers(Number160 self,
Number160 other,
int atLeast,
List<Map<Number160,PeerStatistic>> peerMap,
Comparator<PeerStatistic> comparator) |
Comparator<PeerStatistic> |
PeerMap.createStatisticComparator(Number160 location) |
static Comparator<PeerStatistic> |
PeerMap.createXORStatisticComparator(Number160 location) |
Collection<PeerStatistic> |
PeerMap.getPeerStatistics(Collection<PeerAddress> peerAddresses)
Takes a collection of PeerAddress and returns an equivalent collection
of PeerStatistic from the PeerMap.
|
List<Map<Number160,PeerStatistic>> |
PeerMap.peerMapOverflow() |
List<Map<Number160,PeerStatistic>> |
PeerMap.peerMapVerified() |
Collection<PeerStatistic> |
LocalMap.peers() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
DefaultMaintenance.needMaintenance(PeerStatistic peerStatatistic,
int[] intervalSeconds)
Indicates if a peer needs a maintenance check.
|
void |
PeerMapChangeListener.peerRemoved(PeerAddress peerAddress,
PeerStatistic storedPeerAddress)
This method is called if a peer is removed from the map.
|
void |
PeerMapChangeListener.peerUpdated(PeerAddress peerAddress,
PeerStatistic storedPeerAddress)
This method is called if a peer is updated.
|
Copyright © 2015. All rights reserved.