Package freenet.node

Examples of freenet.node.OpennetManager


     
      // rejection reasons box
      drawRejectReasonsBox(nextTableCell, false);
      drawRejectReasonsBox(nextTableCell, true);
     
      OpennetManager om = node.getOpennet();
      if(om != null) {
        // opennet stats box
        drawOpennetStatsBox(nextTableCell.addChild("div", "class", "infobox"), om);
       
        if(node.isSeednode())
View Full Code Here


    if (numberOfNoLoadStats > 0) {
      HTMLNode peerStatsNoLoadStatsListItem = peerStatsList.addChild("li").addChild("span");
      peerStatsNoLoadStatsListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_no_load_stats", l10nDark("noLoadStats"), "border-bottom: 1px dotted; cursor: help;" }, l10nDark("noLoadStatsShort"));
      peerStatsNoLoadStatsListItem.addChild("span", ":\u00a0" + numberOfNoLoadStats);
    }
    OpennetManager om = node.getOpennet();
    if(om != null) {
      peerStatsList.addChild("li", l10n("maxTotalPeers")+": "+om.getNumberOfConnectedPeersToAimIncludingDarknet());
      peerStatsList.addChild("li", l10n("maxOpennetPeers")+": "+om.getNumberOfConnectedPeersToAim());
    }
  }
View Full Code Here

      textBuilder.append(l10nDark("seedClientsShort")).append(": ").append(numberOfSeedClients).append("\n");
    if (numberOfRoutingDisabled > 0)
      textBuilder.append(l10nDark("routingDisabledShort")).append(": ").append(numberOfRoutingDisabled).append("\n");
    if (numberOfNoLoadStats > 0)
      textBuilder.append(l10nDark("noLoadStatsShort")).append(": ").append(numberOfNoLoadStats).append("\n");
    OpennetManager om = node.getOpennet();
    if(om != null) {
      textBuilder.append(l10n("maxTotalPeers")+": "+om.getNumberOfConnectedPeersToAimIncludingDarknet()).append("\n");
      textBuilder.append(l10n("maxOpennetPeers")+": "+om.getNumberOfConnectedPeersToAim()).append("\n");
    }
    textBuilder.append("\n");

    // drawBandwidth
    textBuilder.append("Bandwidth:\n");
View Full Code Here

      revocationChecker.start(true, true);
  }

  public void arm() {
    armed = true;
    OpennetManager om = node.getOpennet();
    if (om != null) {
      if (om.waitingForUpdater()) {
        synchronized (this) {
          // Reannounce and count it from now.
          if (gotJarTime > 0)
            gotJarTime = System.currentTimeMillis();
        }
        om.reannounce();
      }
    }
    deployOffThread(0, false);
  }
View Full Code Here

TOP

Related Classes of freenet.node.OpennetManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.