Examples of PeerStats


Examples of org.gudy.azureus2.plugins.peers.PeerStats

            if ( existing_peer instanceof ExternalSeedPeer ){
             
              continue;
            }
           
            PeerStats stats = existing_peer.getStats();
           
            if ( stats.getTimeSinceConnectionEstablished() > INITIAL_DELAY ){
             
              if ( stats.getDownloadAverage() < STALLED_PEER_SPEED ){
               
                existing_peer.close( "Replacing slow peer with web-seed", false, false );
               
                existing_peer_count--;
              }
View Full Code Here

Examples of org.gudy.azureus2.plugins.peers.PeerStats

           
          }else{
           
            if ( max_peer_speed > 0 ){
             
              PeerStats ps = peer.getStats();
             
              if ( ps != null && ps.getDownloadRateLimit() != max_peer_speed ){
               
                ps.setDownloadRateLimit( max_peer_speed );
              }
            }
          }
        }else{
         
          if ( !isPermanentlyUnavailable()){
         
            if ( readyToActivate( peer_manager, peer, time_since_started )){
             
              if ( max_peer_speed > 0 ){
               
                PeerStats ps = peer.getStats();
               
                if ( ps != null ){
               
                  ps.setDownloadRateLimit( max_peer_speed );
                }
              }
             
              setActive( peer_manager, true );       
            }
View Full Code Here

Examples of org.gudy.azureus2.plugins.peers.PeerStats

                   
                    while( it.hasNext()){
                     
                      Peer  p = (Peer)it.next();
                     
                      PeerStats ps = p.getStats();
                     
                      long sent    = ps.getTotalSent();
                      long received   = ps.getTotalReceived();
                     
                      long[]  last = (long[])p.getUserData( PEER_STATS_KEY );
                     
                      if ( last != null ){
                       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.