|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.peermanager.DBHistory
public class DBHistory
History of NetDb related activities (lookups, replies, stores, etc)
Constructor Summary | |
---|---|
DBHistory(RouterContext context,
java.lang.String statGroup)
|
Method Summary | |
---|---|
void |
coalesceStats()
|
long |
getAvgDelayBetweenLookupsReceived()
how frequently do they send us lookup requests? |
RateStat |
getFailedLookupRate()
how often does the peer fail to reply to a lookup request, broken into 1 hour and 1 day periods. |
long |
getFailedLookups()
how many times we have sent them a db lookup and not received the value or a lookup reply |
RateStat |
getInvalidReplyRate()
|
long |
getLastLookupReceived()
when did they last send us a request? |
long |
getLookupReplyDuplicate()
how many peers that we explicitly asked the peer not to send us did they reply with? |
long |
getLookupReplyInvalid()
how many peers that were incorrectly formatted / expired / otherwise illegal did lookups provide us with? |
long |
getLookupReplyNew()
how many peers that we have never seen before did lookups provide us with? |
long |
getLookupReplyOld()
how many peers that we have already seen did lookups provide us with? |
long |
getLookupsReceived()
how many lookups this peer has sent us? |
long |
getSuccessfulLookups()
how many times we have sent them a db lookup and received the value back from them |
long |
getUnpromptedDbStoreNew()
how many times have they sent us data we didn't ask for and that we've never seen? |
long |
getUnpromptedDbStoreOld()
how many times have they sent us data we didn't ask for but that we have seen? |
void |
load(java.util.Properties props)
|
void |
lookupFailed()
Note that the peer failed to respond to the db lookup in any way |
void |
lookupReceived()
Note that the peer sent us a lookup |
void |
lookupReply(int newPeers,
int oldPeers,
int invalid,
int duplicate)
Receive a lookup reply from the peer, where they gave us the specified info |
void |
lookupSuccessful()
Note that the peer was not only able to respond to the lookup, but sent us the data we wanted! |
void |
setAvgDelayBetweenLookupsReceived(long ms)
|
void |
setFailedLookups(long num)
|
void |
setLastLookupReceived(long when)
|
void |
setLookupReplyDuplicate(long num)
|
void |
setLookupReplyInvalid(long num)
|
void |
setLookupReplyNew(long num)
|
void |
setLookupReplyOld(long num)
|
void |
setLookupsReceived(long num)
|
void |
setSuccessfulLookups(long num)
|
void |
setUnpromptedDbStoreNew(long num)
|
void |
setUnpromptedDbStoreOld(long num)
|
void |
store(java.io.OutputStream out)
|
void |
unpromptedStoreReceived(boolean wasNew)
Note that the peer sent us a data point without us asking for it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBHistory(RouterContext context, java.lang.String statGroup)
Method Detail |
---|
public long getSuccessfulLookups()
public long getFailedLookups()
public long getLookupReplyNew()
public long getLookupReplyOld()
public long getLookupReplyDuplicate()
public long getLookupReplyInvalid()
public long getLookupsReceived()
public long getAvgDelayBetweenLookupsReceived()
public long getLastLookupReceived()
public long getUnpromptedDbStoreNew()
public long getUnpromptedDbStoreOld()
public RateStat getFailedLookupRate()
public RateStat getInvalidReplyRate()
public void lookupSuccessful()
public void lookupFailed()
public void lookupReply(int newPeers, int oldPeers, int invalid, int duplicate)
newPeers
- number of peers we have never seen beforeoldPeers
- number of peers we have seen beforeinvalid
- number of peers that are invalid / out of date / otherwise b0rkedduplicate
- number of peers we asked them not to give us (though they're allowed to send us
themselves if they don't know anyone else)public void lookupReceived()
public void unpromptedStoreReceived(boolean wasNew)
wasNew
- whether we already knew about this data point or notpublic void setSuccessfulLookups(long num)
public void setFailedLookups(long num)
public void setLookupReplyNew(long num)
public void setLookupReplyOld(long num)
public void setLookupReplyInvalid(long num)
public void setLookupReplyDuplicate(long num)
public void setLookupsReceived(long num)
public void setAvgDelayBetweenLookupsReceived(long ms)
public void setLastLookupReceived(long when)
public void setUnpromptedDbStoreNew(long num)
public void setUnpromptedDbStoreOld(long num)
public void coalesceStats()
public void store(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void load(java.util.Properties props)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |