public class ProfileManagerImpl extends Object implements ProfileManager
| Constructor and Description |
|---|
ProfileManagerImpl(RouterContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
commErrorOccurred(net.i2p.data.Hash peer)
Note that there was some sort of communication error talking with the peer
|
void |
dbLookupFailed(net.i2p.data.Hash peer)
Note that the peer was unable to reply to a db lookup - either with data or with
a lookupReply redirecting the user elsewhere
This will force creation of DB stats
Non-blocking.
|
void |
dbLookupReceived(net.i2p.data.Hash peer)
Note that the local router received a db lookup from the given peer
Non-blocking.
|
void |
dbLookupReply(net.i2p.data.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
Non-blocking.
|
void |
dbLookupSuccessful(net.i2p.data.Hash peer,
long responseTimeMs)
Note that the peer was able to return the valid data for a db lookup
This will force creation of DB stats
Non-blocking.
|
void |
dbStoreFailed(net.i2p.data.Hash peer)
Note that we were unable to confirm a successful send of db data to
the peer, at least not within our timeout period
This will force creation of DB stats
|
void |
dbStoreReceived(net.i2p.data.Hash peer,
boolean wasNewKey)
Note that the local router received an unprompted db store from the given peer
Non-blocking.
|
void |
dbStoreSent(net.i2p.data.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)
This is not really interesting, since they could be lying, so we do not
increment any DB stats at all.
|
void |
dbStoreSuccessful(net.i2p.data.Hash peer)
Note that we've verified a successful send of db data to the floodfill peer
by querying another floodfill.
|
void |
heardAbout(net.i2p.data.Hash peer)
Note that the local router received a reference to the given peer, either
through an explicit dbStore or in a dbLookupReply
Non-blocking.
|
void |
heardAbout(net.i2p.data.Hash peer,
long when)
Note that the local router received a reference to the given peer
at a certain time.
|
void |
messageFailed(net.i2p.data.Hash peer)
Note that the router failed to send a message to the peer over any transport.
|
void |
messageFailed(net.i2p.data.Hash peer,
String transport)
Note that the router failed to send a message to the peer over the transport specified.
|
void |
messageReceived(net.i2p.data.Hash peer,
String style,
long msToReceive,
int bytesRead)
Note that the router received a message from the given peer on the specified
transport.
|
void |
messageSent(net.i2p.data.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.
|
void |
tunnelDataPushed(net.i2p.data.Hash peer,
long rtt,
int size)
Non-blocking.
|
void |
tunnelDataPushed1m(net.i2p.data.Hash peer,
int size)
Non-blocking.
|
void |
tunnelFailed(net.i2p.data.Hash peer,
int pct)
Note that the peer participated in a tunnel that failed.
|
void |
tunnelJoined(net.i2p.data.Hash peer,
long responseTimeMs)
Note that the router agreed to participate in a tunnel
|
void |
tunnelLifetimePushed(net.i2p.data.Hash peer,
long lifetime,
long size)
Non-blocking.
|
void |
tunnelRejected(net.i2p.data.Hash peer,
long responseTimeMs,
int severity)
Note that a router explicitly rejected joining a tunnel.
|
void |
tunnelTestSucceeded(net.i2p.data.Hash peer,
long responseTimeMs)
Note that a tunnel that the router is participating in
was successfully tested with the given round trip latency
Non-blocking.
|
void |
tunnelTimedOut(net.i2p.data.Hash peer)
Note that a router did not respond to a tunnel join.
|
public ProfileManagerImpl(RouterContext context)
public void messageSent(net.i2p.data.Hash peer,
String transport,
long msToSend,
long bytesSent)
messageSent in interface ProfileManagerpublic void messageFailed(net.i2p.data.Hash peer,
String transport)
messageFailed in interface ProfileManagerpublic void messageFailed(net.i2p.data.Hash peer)
messageFailed in interface ProfileManagerpublic void commErrorOccurred(net.i2p.data.Hash peer)
commErrorOccurred in interface ProfileManagerpublic void tunnelJoined(net.i2p.data.Hash peer,
long responseTimeMs)
tunnelJoined in interface ProfileManagerpublic void tunnelRejected(net.i2p.data.Hash peer,
long responseTimeMs,
int severity)
tunnelRejected in interface ProfileManagerresponseTimeMs - ignoredseverity - how much the peer doesnt want to participate in the
tunnel (large == more severe)peer - who rejected uspublic void tunnelTimedOut(net.i2p.data.Hash peer)
tunnelTimedOut in interface ProfileManagerpeer - who rejected uspublic void tunnelTestSucceeded(net.i2p.data.Hash peer,
long responseTimeMs)
tunnelTestSucceeded in interface ProfileManagerpublic void tunnelDataPushed(net.i2p.data.Hash peer,
long rtt,
int size)
tunnelDataPushed in interface ProfileManagerpublic void tunnelDataPushed1m(net.i2p.data.Hash peer,
int size)
tunnelDataPushed1m in interface ProfileManagerpublic void tunnelLifetimePushed(net.i2p.data.Hash peer,
long lifetime,
long size)
tunnelLifetimePushed in interface ProfileManagerpublic void tunnelFailed(net.i2p.data.Hash peer,
int pct)
tunnelFailed in interface ProfileManagerpublic void dbLookupSuccessful(net.i2p.data.Hash peer,
long responseTimeMs)
dbLookupSuccessful in interface ProfileManagerpublic void dbLookupFailed(net.i2p.data.Hash peer)
dbLookupFailed in interface ProfileManagerpublic void dbLookupReply(net.i2p.data.Hash peer,
int newPeers,
int oldPeers,
int invalid,
int duplicate,
long responseTimeMs)
dbLookupReply in interface ProfileManagerpublic void dbLookupReceived(net.i2p.data.Hash peer)
dbLookupReceived in interface ProfileManagerpublic void dbStoreReceived(net.i2p.data.Hash peer,
boolean wasNewKey)
dbStoreReceived in interface ProfileManagerpublic void dbStoreSent(net.i2p.data.Hash peer,
long responseTimeMs)
dbStoreSent in interface ProfileManagerresponseTimeMs - ignoredpublic void dbStoreSuccessful(net.i2p.data.Hash peer)
dbStoreSuccessful in interface ProfileManagerpublic void dbStoreFailed(net.i2p.data.Hash peer)
dbStoreFailed in interface ProfileManagerpublic void heardAbout(net.i2p.data.Hash peer)
heardAbout in interface ProfileManagerpublic void heardAbout(net.i2p.data.Hash peer,
long when)
heardAbout in interface ProfileManagerpublic void messageReceived(net.i2p.data.Hash peer,
String style,
long msToReceive,
int bytesRead)
messageReceived in interface ProfileManager