congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
KBucketSet.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
net.i2p.kademlia.KBucketSet

Best Java code snippets using net.i2p.kademlia.KBucketSet.toString (Showing top 3 results out of 315)

origin: i2p/i2p.i2p

  /**
   * Debug info, HTML formatted
   * @since 0.9.10
   */
  @Override
  public void renderStatusHTML(Writer out) throws IOException {
    out.write(_kb.toString().replace("\n", "<br>\n"));
  }
}
origin: i2p/i2p.i2p

/**
 * Debug info, HTML formatted
 * @since 0.9.4
 */
public void renderStatusHTML(StringBuilder buf) {
  buf.append(_kad.toString().replace("\n", "<br><hr class=\"debug\">\n"));
}
origin: i2p/i2p.i2p

/**
 *  The bucket number (NOT the range number) that the xor of the key goes in
 *  Caller must hold read lock
 *  @return 0 to max-1 or -1 for us
 */
private int pickBucket(T key) {
  int range = getRange(key);
  if (range < 0)
    return -1;
  int rv = pickBucket(range);
  if (rv >= 0) {
     return rv;
  }
  _log.error("Key does not fit in any bucket?!\nKey  : [" 
        + DataHelper.toHexString(key.getData()) + "]" 
        + "\nUs   : " + _us
        + "\nDelta: ["
        + DataHelper.toHexString(DataHelper.xor(_us.getData(), key.getData()))
        + "]", new Exception("???"));
  _log.error(toString());
  throw new IllegalStateException("pickBucket returned " + rv);
  //return -1;
}

net.i2p.kademliaKBucketSettoString

Popular methods of KBucketSet

  • <init>
    Use the supplied trim strategy.
  • add
  • getClosest
    The keys closest to the key. Returned list will never contain us.
  • getExploreKeys
    For every bucket that hasn't been updated in this long, or isn't close to full, generate a random ke
  • clear
  • generateRandomKey
    Generate a random key to go within this bucket Package private for testing only. Others shouldn't ne
  • getAll
  • getRange
    The number of bits minus 1 (range number) for the xor of the key. Package private for testing only.
  • remove
  • size
    The current number of entries.
  • createBucket
  • createBuckets
  • createBucket,
  • createBuckets,
  • getBucket,
  • getBuckets,
  • getReadLock,
  • getWriteLock,
  • locked_split,
  • makeKey,
  • pickBucket

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • Menu (java.awt)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JFrame (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now