Class DhtLookup
java.lang.Object
com.frostwire.jlibtorrent.DhtLookup
Holds statistics about a current dht_lookup operation.
a DHT lookup is the traversal of nodes, looking up a
set of target nodes in the DHT for retrieving and possibly
storing information in the DHT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintthe branch factor for this lookup.intthe number of outstanding requests that have exceeded the short timeout and are considered timed out in the sense that they increased the branch factor.intlastSent()the number of seconds ago the last message was sent that's still outstanding.intthe number of nodes left that could be queries for this lookup.intthe number of outstanding request to individual nodes this lookup has right now.intthe total number of responses we have received for this lookup so far for this lookup.swig()The native object.target()The node-id or info-hash target for this lookup.inttimeouts()the total number of requests that have timed out so far for this lookup.type()string literal indicating which kind of lookup this is.
-
Constructor Details
-
DhtLookup
-
-
Method Details
-
swig
-
type
-
outstandingRequests
public int outstandingRequests()the number of outstanding request to individual nodes this lookup has right now.- Returns:
-
timeouts
public int timeouts()the total number of requests that have timed out so far for this lookup.- Returns:
-
responses
public int responses()the total number of responses we have received for this lookup so far for this lookup.- Returns:
-
branchFactor
public int branchFactor()the branch factor for this lookup. This is the number of nodes we keep outstanding requests to in parallel by default. when nodes time out we may increase this.- Returns:
-
nodesLeft
public int nodesLeft()the number of nodes left that could be queries for this lookup. Many of these are likely to be part of the trail while performing the lookup and would never end up actually being queried.- Returns:
-
lastSent
public int lastSent()the number of seconds ago the last message was sent that's still outstanding.- Returns:
-
firstTimeout
public int firstTimeout()the number of outstanding requests that have exceeded the short timeout and are considered timed out in the sense that they increased the branch factor.- Returns:
-
target
-