| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.pluginsimpl.local.peers.PeerManagerStatsImpl
public class PeerManagerStatsImpl
| Field Summary | |
|---|---|
protected  PEPeerManager | 
manager
 | 
protected  PEPeerManagerStats | 
stats
 | 
| Constructor Summary | |
|---|---|
protected  | 
PeerManagerStatsImpl(PEPeerManager _manager)
 | 
| Method Summary | |
|---|---|
 int | 
getConnectedLeechers()
 | 
 int | 
getConnectedSeeds()
 | 
 long | 
getDiscarded()
 | 
 long | 
getDownloadAverage()
 | 
 long | 
getDownloaded()
 | 
 long | 
getHashFailBytes()
 | 
 int | 
getPermittedBytesToReceive()
For an external process receiving bytes on behalf of this download 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 download this gives the current rate-limited number of bytes that can be sent.  | 
 long | 
getUploadAverage()
 | 
 long | 
getUploaded()
 | 
 void | 
permittedReceiveBytesUsed(int bytes)
The given number of data (payload) bytes have been received.  | 
 void | 
permittedSendBytesUsed(int bytes)
The given number of data (payload) bytes have been sent.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected PEPeerManager manager
protected PEPeerManagerStats stats
| Constructor Detail | 
|---|
protected PeerManagerStatsImpl(PEPeerManager _manager)
| Method Detail | 
|---|
public int getConnectedSeeds()
getConnectedSeeds in interface PeerManagerStatspublic int getConnectedLeechers()
getConnectedLeechers in interface PeerManagerStatspublic long getDownloaded()
getDownloaded in interface PeerManagerStatspublic long getUploaded()
getUploaded in interface PeerManagerStatspublic long getDownloadAverage()
getDownloadAverage in interface PeerManagerStatspublic long getUploadAverage()
getUploadAverage in interface PeerManagerStatspublic long getDiscarded()
getDiscarded in interface PeerManagerStatspublic long getHashFailBytes()
getHashFailBytes in interface PeerManagerStatspublic int getPermittedBytesToReceive()
PeerManagerStats
getPermittedBytesToReceive in interface PeerManagerStatspublic void permittedReceiveBytesUsed(int bytes)
PeerManagerStatsUse this if you are talking to stuff outside of Azureus' API, and want your stats added into Azureus'
permittedReceiveBytesUsed in interface PeerManagerStatspublic int getPermittedBytesToSend()
PeerManagerStats
getPermittedBytesToSend in interface PeerManagerStatspublic void permittedSendBytesUsed(int bytes)
PeerManagerStatsUse this if you are talking to stuff outside of Azureus' API, and want your stats added into Azureus'
permittedSendBytesUsed in interface PeerManagerStats
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||