org.gudy.azureus2.core3.stats.transfer.impl
Class LongTermStatsImpl
java.lang.Object
org.gudy.azureus2.core3.stats.transfer.impl.LongTermStatsImpl
- All Implemented Interfaces:
- LongTermStatsWrapper.LongTermStatsWrapperHelper, LongTermStats
public class LongTermStatsImpl
- extends Object
- implements LongTermStatsWrapper.LongTermStatsWrapperHelper
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 |
RT_SESSION_START
public static final int RT_SESSION_START
- See Also:
- Constant Field Values
RT_SESSION_STATS
public static final int RT_SESSION_STATS
- See Also:
- Constant Field Values
RT_SESSION_END
public static final int RT_SESSION_END
- See Also:
- Constant Field Values
LongTermStatsImpl
public LongTermStatsImpl(AzureusCore _core,
GlobalManagerStats _gm_stats)
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface LongTermStats
reset
public void reset()
- Specified by:
reset
in interface LongTermStats
destroyAndDeleteData
public void destroyAndDeleteData()
- Specified by:
destroyAndDeleteData
in interface LongTermStatsWrapper.LongTermStatsWrapperHelper
getTotalUsageInPeriod
public long[] getTotalUsageInPeriod(Date start_date,
Date end_date)
- Specified by:
getTotalUsageInPeriod
in interface LongTermStats
getTotalUsageInPeriod
public long[] getTotalUsageInPeriod(Date start_date,
Date end_date,
LongTermStats.RecordAccepter accepter)
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
getCurrentRateBytesPerSecond
public long[] getCurrentRateBytesPerSecond()
- Specified by:
getCurrentRateBytesPerSecond
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
main
public static void main(String[] args)