Package net.i2p.router
Interface ProfileManager
- All Known Implementing Classes:
 ProfileManagerImpl
public interface ProfileManager
- 
Method Summary
Modifier and TypeMethodDescriptionvoidcommErrorOccurred(Hash peer) Note that there was some sort of communication error talking with the peervoiddbLookupFailed(Hash peer) Note that the peer was unable to reply to a db lookup - either with data or with a lookupReply redirecting the user elsewherevoiddbLookupReceived(Hash peer) Note that the local router received a db lookup from the given peervoiddbLookupReply(Hash peer, int newPeers, int oldPeers, int invalid, int duplicate, long responseTimeMs) Note that the peer replied to a db lookup with a redirect to other routers, where the list of redirected users included newPeers routers that the local router didn't know about, oldPeers routers that the local router already knew about, the given invalid routers that were invalid in some way, and the duplicate number of routers that we explicitly asked them not to send us, but they did anywayvoiddbLookupSuccessful(Hash peer, long responseTimeMs) Note that the peer was able to return the valid data for a db lookupvoiddbStoreFailed(Hash peer) Note that we were unable to confirm a successful send of db data to the peer, at least not within our timeout periodvoiddbStoreReceived(Hash peer, boolean wasNewKey) Note that the local router received an unprompted db store from the given peervoiddbStoreSent(Hash peer, long responseTimeMs) Note that we've confirmed a successful send of db data to the peer (though we haven't necessarily requested it again from them, so they /might/ be lying)voiddbStoreSuccessful(Hash peer) Note that we confirmed a successful send of db data to the peer.voidheardAbout(Hash peer) Note that the local router received a reference to the given peer, either through an explicit dbStore or in a dbLookupReplyvoidheardAbout(Hash peer, long when) voidmessageFailed(Hash peer) Note that the router failed to send a message to the peer over any transportvoidmessageFailed(Hash peer, String transport) Note that the router failed to send a message to the peer over the transport specifiedvoidmessageReceived(Hash peer, String style, long msToReceive, int bytesRead) Note that the router received a message from the given peer on the specified transport.voidmessageSent(Hash peer, String transport, long msToSend, long bytesSent) Note that it took msToSend to send a message of size bytesSent to the peer over the transport.voidtunnelDataPushed(Hash peer, long rtt, int size) Note that we were able to push some data through a tunnel that the peer is participating in (detected after rtt).voidtunnelDataPushed1m(Hash peer, int size) Note that the peer is participating in a tunnel that pushed the given amount of data over the last minute.voidtunnelFailed(Hash peer, int pct) Note that the peer participated in a tunnel that failed.voidtunnelJoined(Hash peer, long responseTimeMs) Note that the router agreed to participate in a tunnelvoidtunnelLifetimePushed(Hash peer, long lifetime, long size) Note that we were able to push the given amount of data through a tunnel that the peer is participating invoidtunnelRejected(Hash peer, long responseTimeMs, int severity) Note that a router explicitly rejected joining a tunnelvoidtunnelTestSucceeded(Hash peer, long responseTimeMs) Note that a tunnel that the router is participating in was successfully tested with the given round trip latencyvoidtunnelTimedOut(Hash peer) Note that a router timed out joining a tunnel 
- 
Method Details
- 
messageSent
Note that it took msToSend to send a message of size bytesSent to the peer over the transport. This should only be called if the transport considered the send successful. - 
messageFailed
Note that the router failed to send a message to the peer over the transport specified - 
messageFailed
Note that the router failed to send a message to the peer over any transport - 
commErrorOccurred
Note that there was some sort of communication error talking with the peer - 
tunnelJoined
Note that the router agreed to participate in a tunnel - 
tunnelRejected
Note that a router explicitly rejected joining a tunnel- Parameters:
 peer- who rejected usresponseTimeMs- how long it took to get the rejectionseverity- how much the peer doesnt want to participate in the tunnel (large == more severe)
 - 
tunnelTimedOut
Note that a router timed out joining a tunnel- Parameters:
 peer- who rejected us
 - 
tunnelTestSucceeded
Note that a tunnel that the router is participating in was successfully tested with the given round trip latency - 
tunnelDataPushed
Note that we were able to push some data through a tunnel that the peer is participating in (detected after rtt). - 
tunnelDataPushed1m
Note that the peer is participating in a tunnel that pushed the given amount of data over the last minute. - 
tunnelLifetimePushed
Note that we were able to push the given amount of data through a tunnel that the peer is participating in - 
tunnelFailed
Note that the peer participated in a tunnel that failed. Its failure may not have been the peer's fault however. - 
dbLookupSuccessful
Note that the peer was able to return the valid data for a db lookup - 
dbLookupFailed
Note that the peer was unable to reply to a db lookup - either with data or with a lookupReply redirecting the user elsewhere - 
dbLookupReply
void dbLookupReply(Hash peer, int newPeers, int oldPeers, int invalid, int duplicate, long responseTimeMs) Note that the peer replied to a db lookup with a redirect to other routers, where the list of redirected users included newPeers routers that the local router didn't know about, oldPeers routers that the local router already knew about, the given invalid routers that were invalid in some way, and the duplicate number of routers that we explicitly asked them not to send us, but they did anyway - 
dbLookupReceived
Note that the local router received a db lookup from the given peer - 
dbStoreReceived
Note that the local router received an unprompted db store from the given peer - 
dbStoreSent
Note that we've confirmed a successful send of db data to the peer (though we haven't necessarily requested it again from them, so they /might/ be lying) - 
dbStoreSuccessful
Note that we confirmed a successful send of db data to the peer. - 
dbStoreFailed
Note that we were unable to confirm a successful send of db data to the peer, at least not within our timeout period - 
heardAbout
Note that the local router received a reference to the given peer, either through an explicit dbStore or in a dbLookupReply - 
heardAbout
 - 
messageReceived
Note that the router received a message from the given peer on the specified transport. Messages received without any "from" information aren't recorded through this metric. If msToReceive is negative, there was no timing information available 
 -