|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.core3.peer.impl.PEPeerStatsImpl
public class PEPeerStatsImpl
Constructor Summary | |
---|---|
PEPeerStatsImpl(PEPeer _owner)
|
Method Summary | |
---|---|
void |
bytesDiscarded(int num_bytes)
The given number of bytes received from the peer were discarded. |
void |
dataBytesReceived(int num_bytes)
The given number of data (payload) bytes have been received from the peer. |
void |
dataBytesSent(int num_bytes)
The given number of data (payload) bytes have been sent to the peer. |
void |
diskReadComplete(long bytes)
Disk access stats methods |
int |
getAggregatedDiskReadCount()
|
long |
getDataReceiveRate()
Get the the average bytes-per-second speed that we are receiving piece data from the peer. |
long |
getDataSendRate()
Get the the average bytes-per-second speed that we are sending piece data to the peer. |
int |
getDownloadRateLimitBytesPerSecond()
|
long |
getEstimatedDownloadRateOfPeer()
Get the estimated total download rate of the peer. |
long |
getEstimatedSecondsToCompletion()
0 if complete Long.MaxValue if infinite |
long |
getEstimatedUploadRateOfPeer()
Get the estimated total upload rate of the peer. |
PEPeer |
getPeer()
|
int |
getPermittedBytesToReceive()
|
int |
getPermittedBytesToSend()
|
long |
getProtocolReceiveRate()
Get the the average bytes-per-second speed that we are receiving protocol messages from the peer. |
long |
getProtocolSendRate()
Get the the average bytes-per-second speed that we are sending protocol messages to the peer. |
long |
getSmoothDataReceiveRate()
Get the the longer-average bytes-per-second speed at which the peer is uploading data to us. |
long |
getTotalBytesDiscarded()
Get the total number of discarded bytes received from the peer. |
long |
getTotalBytesDownloadedByPeer()
Get the number of bytes downloaded in total by this peer (includes data downloaded from all other peers). |
long |
getTotalDataBytesReceived()
Get the total number of data (payload) bytes received from the peer. |
long |
getTotalDataBytesSent()
Get the total number of data (payload) bytes sent to the peer. |
long |
getTotalDiskReadBytes()
|
int |
getTotalDiskReadCount()
|
long |
getTotalProtocolBytesReceived()
Get the total number of protocol (overhead) bytes received from the peer. |
long |
getTotalProtocolBytesSent()
Get the total number of protocol (overhead) bytes sent to the peer. |
int |
getUploadRateLimitBytesPerSecond()
|
void |
hasNewPiece(int piece_size)
The peer has completed a piece of the given byte size. |
void |
permittedReceiveBytesUsed(int num)
|
void |
permittedSendBytesUsed(int num)
|
void |
protocolBytesReceived(int num_bytes)
The given number of protocol (overhead) bytes have been received from the peer. |
void |
protocolBytesSent(int num_bytes)
The given number of protocol (overhead) bytes have been sent to the peer. |
void |
setDownloadRateLimitBytesPerSecond(int bytes)
|
void |
setPeer(PEPeer peer)
|
void |
setUploadRateLimitBytesPerSecond(int bytes)
|
void |
statisticalSentPiece(int piece_size)
The peer has statistically sent a piecce of the given byte size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PEPeerStatsImpl(PEPeer _owner)
Method Detail |
---|
public PEPeer getPeer()
getPeer
in interface PEPeerStats
public void setPeer(PEPeer peer)
setPeer
in interface PEPeerStats
public void dataBytesSent(int num_bytes)
PEPeerStats
dataBytesSent
in interface PEPeerStats
public void protocolBytesSent(int num_bytes)
PEPeerStats
protocolBytesSent
in interface PEPeerStats
public void dataBytesReceived(int num_bytes)
PEPeerStats
dataBytesReceived
in interface PEPeerStats
public void protocolBytesReceived(int num_bytes)
PEPeerStats
protocolBytesReceived
in interface PEPeerStats
public void bytesDiscarded(int num_bytes)
PEPeerStats
bytesDiscarded
in interface PEPeerStats
public void hasNewPiece(int piece_size)
PEPeerStats
hasNewPiece
in interface PEPeerStats
public long getEstimatedSecondsToCompletion()
getEstimatedSecondsToCompletion
in interface PEPeerStats
public void statisticalSentPiece(int piece_size)
PEPeerStats
statisticalSentPiece
in interface PEPeerStats
public long getDataReceiveRate()
PEPeerStats
getDataReceiveRate
in interface PEPeerStats
public long getProtocolReceiveRate()
PEPeerStats
getProtocolReceiveRate
in interface PEPeerStats
public long getDataSendRate()
PEPeerStats
getDataSendRate
in interface PEPeerStats
public long getProtocolSendRate()
PEPeerStats
getProtocolSendRate
in interface PEPeerStats
public long getSmoothDataReceiveRate()
PEPeerStats
getSmoothDataReceiveRate
in interface PEPeerStats
public long getTotalBytesDiscarded()
PEPeerStats
getTotalBytesDiscarded
in interface PEPeerStats
public long getTotalBytesDownloadedByPeer()
PEPeerStats
getTotalBytesDownloadedByPeer
in interface PEPeerStats
public long getEstimatedDownloadRateOfPeer()
PEPeerStats
getEstimatedDownloadRateOfPeer
in interface PEPeerStats
public long getEstimatedUploadRateOfPeer()
PEPeerStats
getEstimatedUploadRateOfPeer
in interface PEPeerStats
public long getTotalDataBytesReceived()
PEPeerStats
getTotalDataBytesReceived
in interface PEPeerStats
public long getTotalProtocolBytesReceived()
PEPeerStats
getTotalProtocolBytesReceived
in interface PEPeerStats
public long getTotalDataBytesSent()
PEPeerStats
getTotalDataBytesSent
in interface PEPeerStats
public long getTotalProtocolBytesSent()
PEPeerStats
getTotalProtocolBytesSent
in interface PEPeerStats
public void diskReadComplete(long bytes)
PEPeerStats
diskReadComplete
in interface PEPeerStats
public int getTotalDiskReadCount()
getTotalDiskReadCount
in interface PEPeerStats
public int getAggregatedDiskReadCount()
getAggregatedDiskReadCount
in interface PEPeerStats
public long getTotalDiskReadBytes()
getTotalDiskReadBytes
in interface PEPeerStats
public void setUploadRateLimitBytesPerSecond(int bytes)
setUploadRateLimitBytesPerSecond
in interface PEPeerStats
public void setDownloadRateLimitBytesPerSecond(int bytes)
setDownloadRateLimitBytesPerSecond
in interface PEPeerStats
public int getUploadRateLimitBytesPerSecond()
getUploadRateLimitBytesPerSecond
in interface PEPeerStats
public int getDownloadRateLimitBytesPerSecond()
getDownloadRateLimitBytesPerSecond
in interface PEPeerStats
public int getPermittedBytesToSend()
getPermittedBytesToSend
in interface PEPeerStats
public void permittedSendBytesUsed(int num)
permittedSendBytesUsed
in interface PEPeerStats
public int getPermittedBytesToReceive()
getPermittedBytesToReceive
in interface PEPeerStats
public void permittedReceiveBytesUsed(int num)
permittedReceiveBytesUsed
in interface PEPeerStats
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |