org.gudy.azureus2.core3.global.impl
Class GlobalManagerStatsImpl
java.lang.Object
org.gudy.azureus2.core3.global.impl.GlobalManagerStatsImpl
- All Implemented Interfaces:
- GlobalManagerStats, SimpleTimer.TimerTickReceiver
public class GlobalManagerStatsImpl
- extends Object
- implements GlobalManagerStats, SimpleTimer.TimerTickReceiver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlobalManagerStatsImpl
protected GlobalManagerStatsImpl(GlobalManagerImpl _manager)
load
protected void load()
save
protected void save()
getDataSendRateAtClose
public int getDataSendRateAtClose()
- Specified by:
getDataSendRateAtClose
in interface GlobalManagerStats
discarded
public void discarded(int length)
- Specified by:
discarded
in interface GlobalManagerStats
dataBytesReceived
public void dataBytesReceived(int length,
boolean LAN)
- Specified by:
dataBytesReceived
in interface GlobalManagerStats
protocolBytesReceived
public void protocolBytesReceived(int length,
boolean LAN)
- Specified by:
protocolBytesReceived
in interface GlobalManagerStats
dataBytesSent
public void dataBytesSent(int length,
boolean LAN)
- Specified by:
dataBytesSent
in interface GlobalManagerStats
protocolBytesSent
public void protocolBytesSent(int length,
boolean LAN)
- Specified by:
protocolBytesSent
in interface GlobalManagerStats
getDataReceiveRate
public int getDataReceiveRate()
- Specified by:
getDataReceiveRate
in interface GlobalManagerStats
getDataReceiveRateNoLAN
public int getDataReceiveRateNoLAN()
- Specified by:
getDataReceiveRateNoLAN
in interface GlobalManagerStats
getDataReceiveRateNoLAN
public int getDataReceiveRateNoLAN(int average_period)
- Specified by:
getDataReceiveRateNoLAN
in interface GlobalManagerStats
getProtocolReceiveRate
public int getProtocolReceiveRate()
- Specified by:
getProtocolReceiveRate
in interface GlobalManagerStats
getProtocolReceiveRateNoLAN
public int getProtocolReceiveRateNoLAN()
- Specified by:
getProtocolReceiveRateNoLAN
in interface GlobalManagerStats
getProtocolReceiveRateNoLAN
public int getProtocolReceiveRateNoLAN(int average_period)
- Specified by:
getProtocolReceiveRateNoLAN
in interface GlobalManagerStats
getDataAndProtocolReceiveRate
public int getDataAndProtocolReceiveRate()
- Specified by:
getDataAndProtocolReceiveRate
in interface GlobalManagerStats
getDataSendRate
public int getDataSendRate()
- Specified by:
getDataSendRate
in interface GlobalManagerStats
getDataSendRateNoLAN
public int getDataSendRateNoLAN()
- Specified by:
getDataSendRateNoLAN
in interface GlobalManagerStats
getDataSendRateNoLAN
public int getDataSendRateNoLAN(int average_period)
- Specified by:
getDataSendRateNoLAN
in interface GlobalManagerStats
getProtocolSendRate
public int getProtocolSendRate()
- Specified by:
getProtocolSendRate
in interface GlobalManagerStats
getProtocolSendRateNoLAN
public int getProtocolSendRateNoLAN()
- Specified by:
getProtocolSendRateNoLAN
in interface GlobalManagerStats
getProtocolSendRateNoLAN
public int getProtocolSendRateNoLAN(int average_period)
- Specified by:
getProtocolSendRateNoLAN
in interface GlobalManagerStats
getDataAndProtocolSendRate
public int getDataAndProtocolSendRate()
- Specified by:
getDataAndProtocolSendRate
in interface GlobalManagerStats
getTotalDataBytesSent
public long getTotalDataBytesSent()
- Specified by:
getTotalDataBytesSent
in interface GlobalManagerStats
getTotalProtocolBytesSent
public long getTotalProtocolBytesSent()
- Specified by:
getTotalProtocolBytesSent
in interface GlobalManagerStats
getTotalDataBytesReceived
public long getTotalDataBytesReceived()
- Specified by:
getTotalDataBytesReceived
in interface GlobalManagerStats
getTotalProtocolBytesReceived
public long getTotalProtocolBytesReceived()
- Specified by:
getTotalProtocolBytesReceived
in interface GlobalManagerStats
getTotalDiscardedRaw
public long getTotalDiscardedRaw()
getTotalSwarmsPeerRate
public long getTotalSwarmsPeerRate(boolean downloading,
boolean seeding)
- Specified by:
getTotalSwarmsPeerRate
in interface GlobalManagerStats
tick
public void tick(long mono_now,
int tick_count)
- Specified by:
tick
in interface SimpleTimer.TimerTickReceiver
getSmoothedSendRate
public long getSmoothedSendRate()
- Specified by:
getSmoothedSendRate
in interface GlobalManagerStats
getSmoothedReceiveRate
public long getSmoothedReceiveRate()
- Specified by:
getSmoothedReceiveRate
in interface GlobalManagerStats