Class PEPeerControlImpl.MyPeerStats
java.lang.Object
com.biglybt.core.peer.impl.control.PEPeerControlImpl.MyPeerStats
- All Implemented Interfaces:
PEPeerStats
- Enclosing class:
PEPeerControlImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbytesDiscarded(int num_bytes) The given number of bytes received from the peer were discarded.voiddataBytesReceived(long num_bytes) The given number of data (payload) bytes have been received from the peer.voiddataBytesSent(long num_bytes) The given number of data (payload) bytes have been sent to the peer.voiddiskReadComplete(long bytes) Disk access stats methodsintlongGet the the average bytes-per-second speed that we are receiving piece data from the peer.longGet the the average bytes-per-second speed that we are sending piece data to the peer.intlongGet the estimated total download rate of the peer.longlongGet the estimated total upload rate of the peer.getPeer()longlonglongGet the the average bytes-per-second speed that we are receiving protocol messages from the peer.longGet the the average bytes-per-second speed that we are sending protocol messages to the peer.longGet the the longer-average bytes-per-second speed at which the peer is uploading data to us.longGet the total number of discarded bytes received from the peer.longGet the number of bytes downloaded in total by this peer (includes data downloaded from all other peers).longGet the total number of data (payload) bytes received from the peer.longGet the total number of data (payload) bytes sent to the peer.longintlongGet the total number of protocol (overhead) bytes received from the peer.longGet the total number of protocol (overhead) bytes sent to the peer.intvoidhasNewPiece(int piece_size) The peer has completed a piece of the given byte size.voidpermittedReceiveBytesUsed(int num) voidpermittedSendBytesUsed(int num) voidprotocolBytesReceived(long num_bytes) The given number of protocol (overhead) bytes have been received from the peer.voidprotocolBytesSent(long num_bytes) The given number of protocol (overhead) bytes have been sent to the peer.voidsetDownloadRateLimitBytesPerSecond(int bytes) voidvoidsetUploadRateLimitBytesPerSecond(int bytes) voidstatisticalSentPiece(int piece_size) The peer has statistically sent a piecce of the given byte size.
-
Field Details
-
peer
-
-
Constructor Details
-
MyPeerStats
-
-
Method Details
-
getPeer
- Specified by:
getPeerin interfacePEPeerStats
-
setPeer
- Specified by:
setPeerin interfacePEPeerStats
-
dataBytesSent
public void dataBytesSent(long num_bytes) Description copied from interface:PEPeerStatsThe given number of data (payload) bytes have been sent to the peer.- Specified by:
dataBytesSentin interfacePEPeerStats- Parameters:
num_bytes-
-
protocolBytesSent
public void protocolBytesSent(long num_bytes) Description copied from interface:PEPeerStatsThe given number of protocol (overhead) bytes have been sent to the peer.- Specified by:
protocolBytesSentin interfacePEPeerStats- Parameters:
num_bytes-
-
dataBytesReceived
public void dataBytesReceived(long num_bytes) Description copied from interface:PEPeerStatsThe given number of data (payload) bytes have been received from the peer.- Specified by:
dataBytesReceivedin interfacePEPeerStats- Parameters:
num_bytes-
-
protocolBytesReceived
public void protocolBytesReceived(long num_bytes) Description copied from interface:PEPeerStatsThe given number of protocol (overhead) bytes have been received from the peer.- Specified by:
protocolBytesReceivedin interfacePEPeerStats- Parameters:
num_bytes-
-
bytesDiscarded
public void bytesDiscarded(int num_bytes) Description copied from interface:PEPeerStatsThe given number of bytes received from the peer were discarded.- Specified by:
bytesDiscardedin interfacePEPeerStats- Parameters:
num_bytes-
-
hasNewPiece
public void hasNewPiece(int piece_size) Description copied from interface:PEPeerStatsThe peer has completed a piece of the given byte size.- Specified by:
hasNewPiecein interfacePEPeerStats- Parameters:
piece_size-
-
statisticalSentPiece
public void statisticalSentPiece(int piece_size) Description copied from interface:PEPeerStatsThe peer has statistically sent a piecce of the given byte size.- Specified by:
statisticalSentPiecein interfacePEPeerStats- Parameters:
piece_size-
-
getDataReceiveRate
public long getDataReceiveRate()Description copied from interface:PEPeerStatsGet the the average bytes-per-second speed that we are receiving piece data from the peer.- Specified by:
getDataReceiveRatein interfacePEPeerStats- Returns:
- average speed.
-
getProtocolReceiveRate
public long getProtocolReceiveRate()Description copied from interface:PEPeerStatsGet the the average bytes-per-second speed that we are receiving protocol messages from the peer.- Specified by:
getProtocolReceiveRatein interfacePEPeerStats- Returns:
- average speed.
-
getTotalDataBytesReceived
public long getTotalDataBytesReceived()Description copied from interface:PEPeerStatsGet the total number of data (payload) bytes received from the peer.- Specified by:
getTotalDataBytesReceivedin interfacePEPeerStats- Returns:
- total
-
getTotalProtocolBytesReceived
public long getTotalProtocolBytesReceived()Description copied from interface:PEPeerStatsGet the total number of protocol (overhead) bytes received from the peer.- Specified by:
getTotalProtocolBytesReceivedin interfacePEPeerStats- Returns:
- total
-
getDataSendRate
public long getDataSendRate()Description copied from interface:PEPeerStatsGet the the average bytes-per-second speed that we are sending piece data to the peer.- Specified by:
getDataSendRatein interfacePEPeerStats- Returns:
- average speed.
-
getProtocolSendRate
public long getProtocolSendRate()Description copied from interface:PEPeerStatsGet the the average bytes-per-second speed that we are sending protocol messages to the peer.- Specified by:
getProtocolSendRatein interfacePEPeerStats- Returns:
- average speed.
-
getTotalDataBytesSent
public long getTotalDataBytesSent()Description copied from interface:PEPeerStatsGet the total number of data (payload) bytes sent to the peer.- Specified by:
getTotalDataBytesSentin interfacePEPeerStats- Returns:
- total
-
getTotalProtocolBytesSent
public long getTotalProtocolBytesSent()Description copied from interface:PEPeerStatsGet the total number of protocol (overhead) bytes sent to the peer.- Specified by:
getTotalProtocolBytesSentin interfacePEPeerStats- Returns:
- total
-
getSmoothDataReceiveRate
public long getSmoothDataReceiveRate()Description copied from interface:PEPeerStatsGet the the longer-average bytes-per-second speed at which the peer is uploading data to us.- Specified by:
getSmoothDataReceiveRatein interfacePEPeerStats- Returns:
- average speed
-
getTotalBytesDiscarded
public long getTotalBytesDiscarded()Description copied from interface:PEPeerStatsGet the total number of discarded bytes received from the peer.- Specified by:
getTotalBytesDiscardedin interfacePEPeerStats- Returns:
- total discarded
-
getEstimatedDownloadRateOfPeer
public long getEstimatedDownloadRateOfPeer()Description copied from interface:PEPeerStatsGet the estimated total download rate of the peer.- Specified by:
getEstimatedDownloadRateOfPeerin interfacePEPeerStats- Returns:
- estimated rate in bytes-per-second
-
getEstimatedUploadRateOfPeer
public long getEstimatedUploadRateOfPeer()Description copied from interface:PEPeerStatsGet the estimated total upload rate of the peer.- Specified by:
getEstimatedUploadRateOfPeerin interfacePEPeerStats- Returns:
- estimated rate in bytes-per-second
-
getEstimatedSecondsToCompletion
public long getEstimatedSecondsToCompletion()- Specified by:
getEstimatedSecondsToCompletionin interfacePEPeerStats
-
getTotalBytesDownloadedByPeer
public long getTotalBytesDownloadedByPeer()Description copied from interface:PEPeerStatsGet the number of bytes downloaded in total by this peer (includes data downloaded from all other peers).- Specified by:
getTotalBytesDownloadedByPeerin interfacePEPeerStats- Returns:
- total download bytes done
-
diskReadComplete
public void diskReadComplete(long bytes) Description copied from interface:PEPeerStatsDisk access stats methods- Specified by:
diskReadCompletein interfacePEPeerStats- Parameters:
bytes-
-
getTotalDiskReadCount
public int getTotalDiskReadCount()- Specified by:
getTotalDiskReadCountin interfacePEPeerStats
-
getAggregatedDiskReadCount
public int getAggregatedDiskReadCount()- Specified by:
getAggregatedDiskReadCountin interfacePEPeerStats
-
getTotalDiskReadBytes
public long getTotalDiskReadBytes()- Specified by:
getTotalDiskReadBytesin interfacePEPeerStats
-
setUploadRateLimitBytesPerSecond
public void setUploadRateLimitBytesPerSecond(int bytes) - Specified by:
setUploadRateLimitBytesPerSecondin interfacePEPeerStats
-
setDownloadRateLimitBytesPerSecond
public void setDownloadRateLimitBytesPerSecond(int bytes) - Specified by:
setDownloadRateLimitBytesPerSecondin interfacePEPeerStats
-
getUploadRateLimitBytesPerSecond
public int getUploadRateLimitBytesPerSecond()- Specified by:
getUploadRateLimitBytesPerSecondin interfacePEPeerStats
-
getDownloadRateLimitBytesPerSecond
public int getDownloadRateLimitBytesPerSecond()- Specified by:
getDownloadRateLimitBytesPerSecondin interfacePEPeerStats
-
getPermittedBytesToSend
public long getPermittedBytesToSend()- Specified by:
getPermittedBytesToSendin interfacePEPeerStats
-
permittedSendBytesUsed
public void permittedSendBytesUsed(int num) - Specified by:
permittedSendBytesUsedin interfacePEPeerStats
-
getPermittedBytesToReceive
public long getPermittedBytesToReceive()- Specified by:
getPermittedBytesToReceivein interfacePEPeerStats
-
permittedReceiveBytesUsed
public void permittedReceiveBytesUsed(int num) - Specified by:
permittedReceiveBytesUsedin interfacePEPeerStats
-