Package com.aelitis.azureus.core.dht.router

Examples of com.aelitis.azureus.core.dht.router.DHTRouterStats


        DHTTransport transport = dht.getTransport();
       
        DHTTransportStats  t_stats = transport.getStats();
        DHTDBStats      d_stats  = dht.getDataBase().getStats();
        DHTControlStats    c_stats = dht.getControl().getStats();
        DHTRouterStats    r_stats = dht.getRouter().getStats();
       
        long[]  rs = r_stats.getStats();
 
        DHTNetworkPosition[]  nps = transport.getLocalContact().getNetworkPositions();
       
        String  np_str = "";
       
View Full Code Here


  public void
  logStats()
  {
    DHTDBStats      d_stats  = dht.getDataBase().getStats();
    DHTControlStats    c_stats = dht.getControl().getStats();
    DHTRouterStats    r_stats = dht.getRouter().getStats();
    DHTTransportStats   t_stats = transport.getStats();

    long[]  rs = r_stats.getStats();

    log.log( "DHT:ip=" + transport.getLocalContact().getAddress() +
          ",net=" + transport.getNetwork() +
          ",prot=V" + transport.getProtocolVersion()+
          ",reach=" + transport.isReachable());
View Full Code Here

    refreshActivity();
 
 
  private void refreshGeneral() {
    DHTControlStats controlStats = dht.getControl().getStats();
    DHTRouterStats routerStats = dht.getRouter().getStats();
    DHTTransport transport = dht.getTransport();
    DHTTransportStats transportStats = transport.getStats();
    lblUpTime.setText(TimeFormatter.format(controlStats.getRouterUptime() / 1000));
    lblNumberOfUsers.setText("" + controlStats.getEstimatedDHTSize());
    int percent = transportStats.getRouteablePercentage();
    lblReachable.setText((transport.isReachable()?yes_str:no_str) + (percent==-1?"":(" " + percent+"%")));
   
    DHTNATPuncher puncher = dht.getNATPuncher();
   
    String  puncher_str;
   
    if ( puncher == null ){
      puncher_str = "";
    }else{
      puncher_str = puncher.operational()?yes_str:no_str;
    }
   
    lblRendezvous.setText(transport.isReachable()?"":puncher_str);
    long[] stats = routerStats.getStats();
    lblNodes.setText("" + stats[DHTRouterStats.ST_NODES]);
    lblLeaves.setText("" + stats[DHTRouterStats.ST_LEAVES]);
    lblContacts.setText("" + stats[DHTRouterStats.ST_CONTACTS]);
    lblReplacements.setText("" + stats[DHTRouterStats.ST_REPLACEMENTS]);
    lblLive.setText("" + stats[DHTRouterStats.ST_CONTACTS_LIVE]);
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.dht.router.DHTRouterStats

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.