Package com.biglybt.core.stats.transfer
Interface GeneralStats
- All Known Subinterfaces:
OverallStats
- All Known Implementing Classes:
OverallStatsImpl
public interface GeneralStats
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
int
getAverageDownloadSpeed
(boolean since_mark) int
int
getAverageUploadSpeed
(boolean since_mark) long
long
getDownloadedBytes
(boolean since_mark) Method variants that can return values relative to the last marklong
long
long
long
getTotalUpTime
(boolean since_mark) long
long
getUploadedBytes
(boolean since_mark) void
setMark()
Sets a mark against the overall up/down/uptime so that the methods that report relative to the mark return values relative to it
-
Method Details
-
getDownloadedBytes
long getDownloadedBytes()- Returns:
- the number of downloaded bytes
-
getUploadedBytes
long getUploadedBytes()- Returns:
- the number of uploaded bytes
-
getTotalUpTime
long getTotalUpTime()- Returns:
- the total lifetime 'up time' in seconds
-
getDownloadedBytes
long getDownloadedBytes(boolean since_mark) Method variants that can return values relative to the last mark- Parameters:
since_mark
-- Returns:
-
getUploadedBytes
long getUploadedBytes(boolean since_mark) -
getTotalUpTime
long getTotalUpTime(boolean since_mark) -
getAverageDownloadSpeed
int getAverageDownloadSpeed(boolean since_mark) -
getAverageUploadSpeed
int getAverageUploadSpeed(boolean since_mark) -
getMarkTime
long getMarkTime() -
setMark
void setMark()Sets a mark against the overall up/down/uptime so that the methods that report relative to the mark return values relative to it -
clearMark
void clearMark() -
getSessionUpTime
long getSessionUpTime()- Returns:
- this session uptime in seconds
-
getAverageDownloadSpeed
int getAverageDownloadSpeed()- Returns:
- the average download speed in bytes per second
-
getAverageUploadSpeed
int getAverageUploadSpeed()- Returns:
- the average upload speed in bytes per second
-