Interface GeneralStats
- All Known Subinterfaces:
OverallStats
- All Known Implementing Classes:
OverallStatsImpl
public interface GeneralStats
-
Method Summary
Modifier and TypeMethodDescriptionvoidintintgetAverageDownloadSpeed(boolean since_mark) intintgetAverageUploadSpeed(boolean since_mark) longlonggetDownloadedBytes(boolean since_mark) Method variants that can return values relative to the last marklonglonglonglonggetTotalUpTime(boolean since_mark) longlonggetUploadedBytes(boolean since_mark) voidsetMark()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
-