Class DownloadManagerStatsImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.download.DownloadManagerStatsImpl
-
- All Implemented Interfaces:
DownloadManagerStats
public class DownloadManagerStatsImpl extends java.lang.Object implements DownloadManagerStats
-
-
Field Summary
Fields Modifier and Type Field Description private GlobalManagerStats
global_manager_stats
private OverallStats
overall_stats
-
Constructor Summary
Constructors Modifier Constructor Description protected
DownloadManagerStatsImpl(GlobalManager _gm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDataAndProtocolReceiveRate()
int
getDataAndProtocolSendRate()
long
getDataBytesReceived()
data received since session startlong
getDataBytesSent()
int
getDataReceiveRate()
current data receive rateint
getDataSendRate()
long
getOverallDataBytesReceived()
bytes ever receivedlong
getOverallDataBytesSent()
bytes ever sentlong
getProtocolBytesReceived()
long
getProtocolBytesSent()
int
getProtocolReceiveRate()
int
getProtocolSendRate()
long
getSessionUptimeSeconds()
how long since az startedlong
getSmoothedReceiveRate()
long
getSmoothedSendRate()
-
-
-
Field Detail
-
global_manager_stats
private GlobalManagerStats global_manager_stats
-
overall_stats
private OverallStats overall_stats
-
-
Constructor Detail
-
DownloadManagerStatsImpl
protected DownloadManagerStatsImpl(GlobalManager _gm)
-
-
Method Detail
-
getOverallDataBytesReceived
public long getOverallDataBytesReceived()
Description copied from interface:DownloadManagerStats
bytes ever received- Specified by:
getOverallDataBytesReceived
in interfaceDownloadManagerStats
- Returns:
-
getOverallDataBytesSent
public long getOverallDataBytesSent()
Description copied from interface:DownloadManagerStats
bytes ever sent- Specified by:
getOverallDataBytesSent
in interfaceDownloadManagerStats
- Returns:
-
getSessionUptimeSeconds
public long getSessionUptimeSeconds()
Description copied from interface:DownloadManagerStats
how long since az started- Specified by:
getSessionUptimeSeconds
in interfaceDownloadManagerStats
- Returns:
-
getDataReceiveRate
public int getDataReceiveRate()
Description copied from interface:DownloadManagerStats
current data receive rate- Specified by:
getDataReceiveRate
in interfaceDownloadManagerStats
- Returns:
-
getProtocolReceiveRate
public int getProtocolReceiveRate()
- Specified by:
getProtocolReceiveRate
in interfaceDownloadManagerStats
-
getDataAndProtocolReceiveRate
public int getDataAndProtocolReceiveRate()
- Specified by:
getDataAndProtocolReceiveRate
in interfaceDownloadManagerStats
-
getDataSendRate
public int getDataSendRate()
- Specified by:
getDataSendRate
in interfaceDownloadManagerStats
-
getProtocolSendRate
public int getProtocolSendRate()
- Specified by:
getProtocolSendRate
in interfaceDownloadManagerStats
-
getDataAndProtocolSendRate
public int getDataAndProtocolSendRate()
- Specified by:
getDataAndProtocolSendRate
in interfaceDownloadManagerStats
-
getDataBytesReceived
public long getDataBytesReceived()
Description copied from interface:DownloadManagerStats
data received since session start- Specified by:
getDataBytesReceived
in interfaceDownloadManagerStats
- Returns:
-
getProtocolBytesReceived
public long getProtocolBytesReceived()
- Specified by:
getProtocolBytesReceived
in interfaceDownloadManagerStats
-
getDataBytesSent
public long getDataBytesSent()
- Specified by:
getDataBytesSent
in interfaceDownloadManagerStats
-
getProtocolBytesSent
public long getProtocolBytesSent()
- Specified by:
getProtocolBytesSent
in interfaceDownloadManagerStats
-
getSmoothedReceiveRate
public long getSmoothedReceiveRate()
- Specified by:
getSmoothedReceiveRate
in interfaceDownloadManagerStats
-
getSmoothedSendRate
public long getSmoothedSendRate()
- Specified by:
getSmoothedSendRate
in interfaceDownloadManagerStats
-
-