org.gudy.azureus2.core3.stats.transfer.impl
Class LongTermStatsWrapper
java.lang.Object
org.gudy.azureus2.core3.stats.transfer.impl.LongTermStatsWrapper
- All Implemented Interfaces:
- LongTermStats
public class LongTermStatsWrapper
- extends Object
- implements LongTermStats
Fields inherited from interface org.gudy.azureus2.core3.stats.transfer.LongTermStats |
PT_CURRENT_DAY, PT_CURRENT_HOUR, PT_CURRENT_MONTH, PT_CURRENT_WEEK, PT_NAMES, PT_SLIDING_DAY, PT_SLIDING_HOUR, PT_SLIDING_WEEK, ST_DATA_DOWNLOAD, ST_DATA_UPLOAD, ST_DHT_DOWNLOAD, ST_DHT_UPLOAD, ST_PROTOCOL_DOWNLOAD, ST_PROTOCOL_UPLOAD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongTermStatsWrapper
public LongTermStatsWrapper(AzureusCore _core,
GlobalManagerStats _stats)
LongTermStatsWrapper
public LongTermStatsWrapper(String _id,
LongTermStats.GenericStatsSource _source)
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface LongTermStats
getCurrentRateBytesPerSecond
public long[] getCurrentRateBytesPerSecond()
- Specified by:
getCurrentRateBytesPerSecond
in interface LongTermStats
getTotalUsageInPeriod
public long[] getTotalUsageInPeriod(Date start_date,
Date end_date)
- Specified by:
getTotalUsageInPeriod
in interface LongTermStats
getTotalUsageInPeriod
public long[] getTotalUsageInPeriod(int period_type,
double multiplier)
- Specified by:
getTotalUsageInPeriod
in interface LongTermStats
getTotalUsageInPeriod
public long[] getTotalUsageInPeriod(int period_type,
double multiplier,
LongTermStats.RecordAccepter accepter)
- Specified by:
getTotalUsageInPeriod
in interface LongTermStats
addListener
public void addListener(long min_delta_bytes,
LongTermStatsListener listener)
- Specified by:
addListener
in interface LongTermStats
removeListener
public void removeListener(LongTermStatsListener listener)
- Specified by:
removeListener
in interface LongTermStats
reset
public void reset()
- Specified by:
reset
in interface LongTermStats