|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 PeerStats
public int getReception()
PeerStats
getReception
in interface PeerStats
public int getUploadAverage()
PeerStats
getUploadAverage
in interface PeerStats
public int getTotalAverage()
PeerStats
getTotalAverage
in interface PeerStats
public long getTotalDiscarded()
PeerStats
getTotalDiscarded
in interface PeerStats
public long getTotalSent()
PeerStats
getTotalSent
in interface PeerStats
public long getTotalReceived()
PeerStats
getTotalReceived
in interface PeerStats
public int getStatisticSentAverage()
PeerStats
getStatisticSentAverage
in interface PeerStats
public int getPermittedBytesToReceive()
PeerStats
getPermittedBytesToReceive
in interface PeerStats
public void permittedReceiveBytesUsed(int bytes)
permittedReceiveBytesUsed
in interface PeerStats
public int getPermittedBytesToSend()
PeerStats
getPermittedBytesToSend
in interface PeerStats
public void permittedSendBytesUsed(int bytes)
permittedSendBytesUsed
in interface PeerStats
public void received(int bytes)
PeerStats
Use this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
received
in interface PeerStats
public void sent(int bytes)
PeerStats
Use this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
sent
in interface PeerStats
public void discarded(int bytes)
PeerStats
Use this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
discarded
in interface PeerStats
public long getTimeSinceConnectionEstablished()
PeerStats
getTimeSinceConnectionEstablished
in interface PeerStats
public int getDownloadRateLimit()
getDownloadRateLimit
in interface PeerStats
public void setDownloadRateLimit(int bytes)
setDownloadRateLimit
in interface PeerStats
public int getUploadRateLimit()
getUploadRateLimit
in interface PeerStats
public void setUploadRateLimit(int bytes)
setUploadRateLimit
in interface PeerStats
public long getOverallBytesRemaining()
getOverallBytesRemaining
in interface PeerStats
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |