org.gudy.azureus2.core3.stats.transfer.impl
Class OverallStatsImpl
java.lang.Object
org.gudy.azureus2.core3.global.GlobalManagerAdapter
org.gudy.azureus2.core3.stats.transfer.impl.OverallStatsImpl
- All Implemented Interfaces:
- GlobalManagerListener, GeneralStats, OverallStats
public class OverallStatsImpl
- extends GlobalManagerAdapter
- implements OverallStats
- Author:
- Olivier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
this_mon
protected final AEMonitor this_mon
OverallStatsImpl
public OverallStatsImpl(AzureusCore _core,
GlobalManagerStats _gm_stats)
getLong
protected long getLong(Map map,
String name)
getAverageDownloadSpeed
public int getAverageDownloadSpeed()
- Specified by:
getAverageDownloadSpeed
in interface GeneralStats
- Returns:
- the average download speed in bytes per second
getAverageUploadSpeed
public int getAverageUploadSpeed()
- Specified by:
getAverageUploadSpeed
in interface GeneralStats
- Returns:
- the average upload speed in bytes per second
getDownloadedBytes
public long getDownloadedBytes()
- Specified by:
getDownloadedBytes
in interface GeneralStats
- Returns:
- the number of downloaded bytes
getUploadedBytes
public long getUploadedBytes()
- Specified by:
getUploadedBytes
in interface GeneralStats
- Returns:
- the number of uploaded bytes
getTotalUpTime
public long getTotalUpTime()
- Specified by:
getTotalUpTime
in interface GeneralStats
- Returns:
- the total lifetime 'up time' in seconds
getDownloadedBytes
public long getDownloadedBytes(boolean since_mark)
- Description copied from interface:
GeneralStats
- Method variants that can return values relative to the last mark
- Specified by:
getDownloadedBytes
in interface GeneralStats
- Returns:
getUploadedBytes
public long getUploadedBytes(boolean since_mark)
- Specified by:
getUploadedBytes
in interface GeneralStats
getTotalUpTime
public long getTotalUpTime(boolean since_mark)
- Specified by:
getTotalUpTime
in interface GeneralStats
getAverageDownloadSpeed
public int getAverageDownloadSpeed(boolean since_mark)
- Specified by:
getAverageDownloadSpeed
in interface GeneralStats
getAverageUploadSpeed
public int getAverageUploadSpeed(boolean since_mark)
- Specified by:
getAverageUploadSpeed
in interface GeneralStats
getMarkTime
public long getMarkTime()
- Specified by:
getMarkTime
in interface GeneralStats
setMark
public void setMark()
- Description copied from interface:
GeneralStats
- Sets a mark against the overall up/down/uptime so that the methods that report relative to
the mark return values relative to it
- Specified by:
setMark
in interface GeneralStats
clearMark
public void clearMark()
- Specified by:
clearMark
in interface GeneralStats
getSessionUpTime
public long getSessionUpTime()
- Specified by:
getSessionUpTime
in interface GeneralStats
- Returns:
- this session uptime in seconds
destroyInitiated
public void destroyInitiated()
- Specified by:
destroyInitiated
in interface GlobalManagerListener
- Overrides:
destroyInitiated
in class GlobalManagerAdapter
getLastSnapshot
protected long[] getLastSnapshot()