| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.pluginsimpl.local.peers.PeerStatsImpl
public class PeerStatsImpl
| Constructor Summary | |
|---|---|
| PeerStatsImpl(PeerManagerImpl _peer_manager,
              Peer _owner,
              PEPeerStats _delegate) | |
| Method Summary | |
|---|---|
|  void | discarded(int bytes)The given number of bytes received from the peer were discarded. | 
|  PEPeerStats | getDelegate() | 
|  int | getDownloadAverage()Get the the average bytes-per-second speed that we are receiving piece data from the peer. | 
|  int | getDownloadRateLimit() | 
|  long | getOverallBytesRemaining() | 
|  int | getPermittedBytesToReceive()For an external process receiving bytes on behalf of this peer this gives the current rate-limited number of bytes that can be received. | 
|  int | getPermittedBytesToSend()For an external process sending bytes on behalf of this peer this gives the current rate-limited number of bytes that can be sent. | 
|  int | getReception()Get the the longer-average bytes-per-second speed at which the peer is uploading data to us. | 
|  int | getStatisticSentAverage()Get the estimated total upload rate of the peer. | 
|  long | getTimeSinceConnectionEstablished()Get the amount of time that has elapsed since the connection with the peer has been established. | 
|  int | getTotalAverage()Get the estimated total download rate of the peer. | 
|  long | getTotalDiscarded()Get the total number of discarded bytes received from the peer. | 
|  long | getTotalReceived()Get the total number of data (payload) bytes received from the peer. | 
|  long | getTotalSent()Get the total number of data (payload) bytes sent to the peer. | 
|  int | getUploadAverage()Get the the average bytes-per-second speed that we are sending piece data to the peer. | 
|  int | getUploadRateLimit() | 
|  void | permittedReceiveBytesUsed(int bytes) | 
|  void | permittedSendBytesUsed(int bytes) | 
|  void | received(int bytes)The given number of data (payload) bytes have been sent to the peer. | 
|  void | sent(int bytes)The given number of data (payload) bytes have been received from the peer. | 
|  void | setDownloadRateLimit(int bytes) | 
|  void | setUploadRateLimit(int bytes) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PeerStatsImpl(PeerManagerImpl _peer_manager,
                     Peer _owner,
                     PEPeerStats _delegate)
| Method Detail | 
|---|
public PEPeerStats getDelegate()
public int getDownloadAverage()
PeerStats
getDownloadAverage in interface PeerStatspublic int getReception()
PeerStats
getReception in interface PeerStatspublic int getUploadAverage()
PeerStats
getUploadAverage in interface PeerStatspublic int getTotalAverage()
PeerStats
getTotalAverage in interface PeerStatspublic long getTotalDiscarded()
PeerStats
getTotalDiscarded in interface PeerStatspublic long getTotalSent()
PeerStats
getTotalSent in interface PeerStatspublic long getTotalReceived()
PeerStats
getTotalReceived in interface PeerStatspublic int getStatisticSentAverage()
PeerStats
getStatisticSentAverage in interface PeerStatspublic int getPermittedBytesToReceive()
PeerStats
getPermittedBytesToReceive in interface PeerStatspublic void permittedReceiveBytesUsed(int bytes)
permittedReceiveBytesUsed in interface PeerStatspublic int getPermittedBytesToSend()
PeerStats
getPermittedBytesToSend in interface PeerStatspublic void permittedSendBytesUsed(int bytes)
permittedSendBytesUsed in interface PeerStatspublic void received(int bytes)
PeerStatsUse this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
received in interface PeerStatspublic void sent(int bytes)
PeerStatsUse this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
sent in interface PeerStatspublic void discarded(int bytes)
PeerStatsUse this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
discarded in interface PeerStatspublic long getTimeSinceConnectionEstablished()
PeerStats
getTimeSinceConnectionEstablished in interface PeerStatspublic int getDownloadRateLimit()
getDownloadRateLimit in interface PeerStatspublic void setDownloadRateLimit(int bytes)
setDownloadRateLimit in interface PeerStatspublic int getUploadRateLimit()
getUploadRateLimit in interface PeerStatspublic void setUploadRateLimit(int bytes)
setUploadRateLimit in interface PeerStatspublic long getOverallBytesRemaining()
getOverallBytesRemaining in interface PeerStats| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||