Package com.biglybt.core.peer.impl
Class PEPeerManagerStatsImpl
java.lang.Object
com.biglybt.core.peer.impl.PEPeerManagerStatsImpl
- All Implemented Interfaces:
PEPeerManagerStats
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PEPeerManagerAdapter
private int
private int
private final Average
private final Average
private long
private int
private int
private final Average
private long
private long
private final Average
private final Average
private long
private long
private GeneralUtils.SmoothAverage
private GeneralUtils.SmoothAverage
private long
private long
private long
private long
private int
private int
private long
private long
private long
private long
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dataBytesReceived
(PEPeer peer, int length) void
dataBytesSent
(PEPeer peer, int length) void
long
long
long
long
int
int
long
long
long
long
int
int
long
long
long
long
long
long
long
int
int
long
long
long
long
void
hashFailed
(int length) void
haveNewConnection
(boolean incoming) void
haveNewPiece
(int pieceLength) void
permittedReceiveBytesUsed
(int bytes) void
permittedSendBytesUsed
(int bytes) void
protocolBytesReceived
(PEPeer peer, int length) void
protocolBytesSent
(PEPeer peer, int length) void
setTotalDiscarded
(long total) void
update
(int tick_count)
-
Field Details
-
adapter
-
total_data_bytes_received
private long total_data_bytes_received -
total_protocol_bytes_received
private long total_protocol_bytes_received -
total_data_bytes_sent
private long total_data_bytes_sent -
total_protocol_bytes_sent
private long total_protocol_bytes_sent -
total_data_bytes_received_lan
private long total_data_bytes_received_lan -
total_protocol_bytes_received_lan
private long total_protocol_bytes_received_lan -
total_data_bytes_sent_lan
private long total_data_bytes_sent_lan -
total_protocol_bytes_sent_lan
private long total_protocol_bytes_sent_lan -
totalDiscarded
private long totalDiscarded -
hash_fail_bytes
private long hash_fail_bytes -
last_data_received_seconds
private int last_data_received_seconds -
last_data_sent_seconds
private int last_data_sent_seconds -
data_receive_speed
-
protocol_receive_speed
-
data_send_speed
-
protocol_send_speed
-
overallSpeed
-
smooth_last_sent
private long smooth_last_sent -
smooth_last_received
private long smooth_last_received -
current_smoothing_window
private int current_smoothing_window -
current_smoothing_interval
private int current_smoothing_interval -
smoothed_receive_rate
-
smoothed_send_rate
-
peak_receive_rate
private long peak_receive_rate -
peak_send_rate
private long peak_send_rate -
total_incoming
private int total_incoming -
total_outgoing
private int total_outgoing
-
-
Constructor Details
-
PEPeerManagerStatsImpl
-
-
Method Details
-
discarded
- Specified by:
discarded
in interfacePEPeerManagerStats
-
hashFailed
public void hashFailed(int length) - Specified by:
hashFailed
in interfacePEPeerManagerStats
-
getTotalHashFailBytes
public long getTotalHashFailBytes()- Specified by:
getTotalHashFailBytes
in interfacePEPeerManagerStats
-
dataBytesReceived
- Specified by:
dataBytesReceived
in interfacePEPeerManagerStats
-
protocolBytesReceived
- Specified by:
protocolBytesReceived
in interfacePEPeerManagerStats
-
dataBytesSent
- Specified by:
dataBytesSent
in interfacePEPeerManagerStats
-
protocolBytesSent
- Specified by:
protocolBytesSent
in interfacePEPeerManagerStats
-
haveNewPiece
public void haveNewPiece(int pieceLength) - Specified by:
haveNewPiece
in interfacePEPeerManagerStats
-
getDataReceiveRate
public long getDataReceiveRate()- Specified by:
getDataReceiveRate
in interfacePEPeerManagerStats
-
getProtocolReceiveRate
public long getProtocolReceiveRate()- Specified by:
getProtocolReceiveRate
in interfacePEPeerManagerStats
-
getDataSendRate
public long getDataSendRate()- Specified by:
getDataSendRate
in interfacePEPeerManagerStats
-
getProtocolSendRate
public long getProtocolSendRate()- Specified by:
getProtocolSendRate
in interfacePEPeerManagerStats
-
getTotalDiscarded
public long getTotalDiscarded()- Specified by:
getTotalDiscarded
in interfacePEPeerManagerStats
-
setTotalDiscarded
public void setTotalDiscarded(long total) -
getTotalDataBytesSent
public long getTotalDataBytesSent()- Specified by:
getTotalDataBytesSent
in interfacePEPeerManagerStats
-
getTotalProtocolBytesSent
public long getTotalProtocolBytesSent()- Specified by:
getTotalProtocolBytesSent
in interfacePEPeerManagerStats
-
getTotalDataBytesReceived
public long getTotalDataBytesReceived()- Specified by:
getTotalDataBytesReceived
in interfacePEPeerManagerStats
-
getTotalProtocolBytesReceived
public long getTotalProtocolBytesReceived()- Specified by:
getTotalProtocolBytesReceived
in interfacePEPeerManagerStats
-
getTotalDataBytesSentNoLan
public long getTotalDataBytesSentNoLan()- Specified by:
getTotalDataBytesSentNoLan
in interfacePEPeerManagerStats
-
getTotalProtocolBytesSentNoLan
public long getTotalProtocolBytesSentNoLan()- Specified by:
getTotalProtocolBytesSentNoLan
in interfacePEPeerManagerStats
-
getTotalDataBytesReceivedNoLan
public long getTotalDataBytesReceivedNoLan()- Specified by:
getTotalDataBytesReceivedNoLan
in interfacePEPeerManagerStats
-
getTotalProtocolBytesReceivedNoLan
public long getTotalProtocolBytesReceivedNoLan()- Specified by:
getTotalProtocolBytesReceivedNoLan
in interfacePEPeerManagerStats
-
getTotalAverage
public long getTotalAverage()- Specified by:
getTotalAverage
in interfacePEPeerManagerStats
-
getTimeSinceLastDataReceivedInSeconds
public int getTimeSinceLastDataReceivedInSeconds()- Specified by:
getTimeSinceLastDataReceivedInSeconds
in interfacePEPeerManagerStats
-
getTimeSinceLastDataSentInSeconds
public int getTimeSinceLastDataSentInSeconds()- Specified by:
getTimeSinceLastDataSentInSeconds
in interfacePEPeerManagerStats
-
haveNewConnection
public void haveNewConnection(boolean incoming) - Specified by:
haveNewConnection
in interfacePEPeerManagerStats
-
getTotalIncomingConnections
public int getTotalIncomingConnections()- Specified by:
getTotalIncomingConnections
in interfacePEPeerManagerStats
-
getTotalOutgoingConnections
public int getTotalOutgoingConnections()- Specified by:
getTotalOutgoingConnections
in interfacePEPeerManagerStats
-
getPermittedBytesToReceive
public int getPermittedBytesToReceive()- Specified by:
getPermittedBytesToReceive
in interfacePEPeerManagerStats
-
permittedReceiveBytesUsed
public void permittedReceiveBytesUsed(int bytes) - Specified by:
permittedReceiveBytesUsed
in interfacePEPeerManagerStats
-
getPermittedBytesToSend
public int getPermittedBytesToSend()- Specified by:
getPermittedBytesToSend
in interfacePEPeerManagerStats
-
permittedSendBytesUsed
public void permittedSendBytesUsed(int bytes) - Specified by:
permittedSendBytesUsed
in interfacePEPeerManagerStats
-
getSmoothedDataReceiveRate
public long getSmoothedDataReceiveRate()- Specified by:
getSmoothedDataReceiveRate
in interfacePEPeerManagerStats
-
getSmoothedDataSendRate
public long getSmoothedDataSendRate()- Specified by:
getSmoothedDataSendRate
in interfacePEPeerManagerStats
-
getPeakDataReceiveRate
public long getPeakDataReceiveRate()- Specified by:
getPeakDataReceiveRate
in interfacePEPeerManagerStats
-
getPeakDataSendRate
public long getPeakDataSendRate()- Specified by:
getPeakDataSendRate
in interfacePEPeerManagerStats
-
update
public void update(int tick_count)
-