Class DhtLookup

java.lang.Object
com.frostwire.jlibtorrent.DhtLookup

public final class DhtLookup extends Object
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
    Constructor
    Description
    internal use
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    the branch factor for this lookup.
    int
    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.
    int
    the number of seconds ago the last message was sent that's still outstanding.
    int
    the number of nodes left that could be queries for this lookup.
    int
    the number of outstanding request to individual nodes this lookup has right now.
    int
    the total number of responses we have received for this lookup so far for this lookup.
    The native object.
    The node-id or info-hash target for this lookup.
    int
    the total number of requests that have timed out so far for this lookup.
    string literal indicating which kind of lookup this is.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DhtLookup

      public DhtLookup(dht_lookup l)
      internal use
      Parameters:
      l -
  • Method Details

    • swig

      public dht_lookup swig()
      The native object.
      Returns:
      the native object
    • type

      public String type()
      string literal indicating which kind of lookup this is.
      Returns:
    • 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

      public Sha1Hash target()
      The node-id or info-hash target for this lookup.
      Returns:
      the target