Class PeerManagerStatsImpl

java.lang.Object
com.biglybt.pifimpl.local.peers.PeerManagerStatsImpl
All Implemented Interfaces:
PeerManagerStats

public class PeerManagerStatsImpl extends Object implements PeerManagerStats
  • Field Details

  • Constructor Details

    • PeerManagerStatsImpl

      protected PeerManagerStatsImpl(PEPeerManager _manager)
  • Method Details

    • getConnectedSeeds

      public int getConnectedSeeds()
      Specified by:
      getConnectedSeeds in interface PeerManagerStats
    • getConnectedLeechers

      public int getConnectedLeechers()
      Specified by:
      getConnectedLeechers in interface PeerManagerStats
    • getDownloaded

      public long getDownloaded()
      Specified by:
      getDownloaded in interface PeerManagerStats
    • getUploaded

      public long getUploaded()
      Specified by:
      getUploaded in interface PeerManagerStats
    • getDownloadAverage

      public long getDownloadAverage()
      Specified by:
      getDownloadAverage in interface PeerManagerStats
    • getUploadAverage

      public long getUploadAverage()
      Specified by:
      getUploadAverage in interface PeerManagerStats
    • getDiscarded

      public long getDiscarded()
      Specified by:
      getDiscarded in interface PeerManagerStats
    • getHashFailBytes

      public long getHashFailBytes()
      Specified by:
      getHashFailBytes in interface PeerManagerStats
    • getPermittedBytesToReceive

      public int getPermittedBytesToReceive()
      Description copied from interface: PeerManagerStats
      For an external process receiving bytes on behalf of this download this gives the current rate-limited number of bytes that can be received. Update with actual send using 'received' below.
      Specified by:
      getPermittedBytesToReceive in interface PeerManagerStats
      Returns:
    • permittedReceiveBytesUsed

      public void permittedReceiveBytesUsed(int bytes)
      Description copied from interface: PeerManagerStats
      The given number of data (payload) bytes have been received. This number gets added to the total and is used to calculate the rate.

      Use this if you are talking to stuff outside of Azureus' API, and want your stats added into Azureus'

      Specified by:
      permittedReceiveBytesUsed in interface PeerManagerStats
      Parameters:
      bytes -
    • getPermittedBytesToSend

      public int getPermittedBytesToSend()
      Description copied from interface: PeerManagerStats
      For an external process sending bytes on behalf of this download this gives the current rate-limited number of bytes that can be sent. Update with actual send using 'sent' below.
      Specified by:
      getPermittedBytesToSend in interface PeerManagerStats
      Returns:
    • permittedSendBytesUsed

      public void permittedSendBytesUsed(int bytes)
      Description copied from interface: PeerManagerStats
      The given number of data (payload) bytes have been sent. This number gets added to the total and is used to calculate the rate.

      Use this if you are talking to stuff outside of Azureus' API, and want your stats added into Azureus'

      Specified by:
      permittedSendBytesUsed in interface PeerManagerStats
      Parameters:
      bytes -