Package | Description |
---|---|
net.i2p.router.peermanager |
The peer manager logs information about the history and quality of network peers.
|
Modifier and Type | Method and Description |
---|---|
PeerProfile |
ProfileOrganizer.addProfile(PeerProfile profile)
Add the new profile, returning the old value (or null if no profile existed)
|
PeerProfile |
ProfileOrganizer.getProfile(Hash peer)
Retrieve the profile for the given peer, if one exists (else null).
|
PeerProfile |
ProfileOrganizer.getProfileNonblocking(Hash peer)
Retrieve the profile for the given peer, if one exists (else null).
|
PeerProfile |
ProfilePersistenceHelper.readProfile(File file) |
Modifier and Type | Method and Description |
---|---|
Set<PeerProfile> |
ProfilePersistenceHelper.readProfiles() |
Modifier and Type | Method and Description |
---|---|
PeerProfile |
ProfileOrganizer.addProfile(PeerProfile profile)
Add the new profile, returning the old value (or null if no profile existed)
|
static double |
CapacityCalculator.calc(PeerProfile profile) |
static double |
IntegrationCalculator.calc(PeerProfile profile) |
static double |
SpeedCalculator.calc(PeerProfile profile) |
int |
InverseCapacityComparator.compare(PeerProfile left,
PeerProfile right)
Compare the two objects backwards.
|
int |
SpeedComparator.compare(PeerProfile left,
PeerProfile right) |
void |
ProfilePersistenceHelper.writeProfile(PeerProfile profile)
write out the data from the profile to the stream
|
void |
ProfilePersistenceHelper.writeProfile(PeerProfile profile,
OutputStream out)
write out the data from the profile to the stream
|