Class PeerManagerStatsImpl

    • Constructor Detail

      • PeerManagerStatsImpl

        protected PeerManagerStatsImpl​(PEPeerManager _manager)
    • Method Detail

      • 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
      • 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