Package com.biglybt.core.stats.transfer
Interface GeneralStats
-
- All Known Subinterfaces:
OverallStats
- All Known Implementing Classes:
OverallStatsImpl
public interface GeneralStats
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearMark()
int
getAverageDownloadSpeed()
int
getAverageDownloadSpeed(boolean since_mark)
int
getAverageUploadSpeed()
int
getAverageUploadSpeed(boolean since_mark)
long
getDownloadedBytes()
long
getDownloadedBytes(boolean since_mark)
Method variants that can return values relative to the last marklong
getMarkTime()
long
getSessionUpTime()
long
getTotalUpTime()
long
getTotalUpTime(boolean since_mark)
long
getUploadedBytes()
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 Detail
-
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
-
-