| Package | Description |
|---|---|
| net.i2p.router.peermanager | Peer management, profiling, and capacity calculation for I2P network optimization. |
| Modifier and Type | Method and Description |
|---|---|
PeerProfile | ProfileOrganizer.addProfile(PeerProfile profile)Insert a fully-constructed profile into the organizer. |
(package private) PeerProfile | ProfileOrganizer.getOrCreateProfileNonblocking(Hash peer)Retrieve an existing profile or create a new one, without blocking on contention. |
PeerProfile | ProfileOrganizer.getProfile(Hash peer)Retrieve the profile for a peer, or null if unknown. |
PeerProfile | ProfileOrganizer.getProfileNonblocking(Hash peer)Retrieve the profile for a peer without blocking. |
PeerProfile | ProfilePersistenceHelper.readProfile(File file,
long cutoff) |
| Modifier and Type | Method and Description |
|---|---|
List<PeerProfile> | ProfilePersistenceHelper.readProfiles()readProfiles. |
| Modifier and Type | Method and Description |
|---|---|
PeerProfile | ProfileOrganizer.addProfile(PeerProfile profile)Insert a fully-constructed profile into the organizer. |
static double | SpeedCalculator.calc(PeerProfile profile)calc. |
static double | IntegrationCalculator.calc(PeerProfile profile)calc. |
static double | CapacityCalculator.calc(PeerProfile profile)Calculate the capacity for the given peer profile. |
int | InverseCapacityComparator.compare(PeerProfile left,
PeerProfile right)Compare the two objects backwards. |
int | SpeedComparator.compare(PeerProfile left,
PeerProfile right) |
void | ProfileOrganizer.writeProfile(PeerProfile profile)writeProfile. |
boolean | ProfilePersistenceHelper.writeProfile(PeerProfile profile)write out the data from the profile to the file |
void | ProfilePersistenceHelper.writeProfile(PeerProfile profile,
OutputStream out)write out the data from the profile to the stream
includes comments |
void | ProfilePersistenceHelper.writeProfile(PeerProfile profile,
OutputStream out,
boolean addComments)write out the data from the profile to the stream |