Methods Summary |
---|
public void | dataBytesReceived(int length, boolean LAN)
total_data_bytes_received += length;
if ( !LAN ){
data_receive_speed_no_lan.addValue(length);
}
data_receive_speed.addValue(length);
|
public void | dataBytesSent(int length, boolean LAN)
total_data_bytes_sent += length;
if ( !LAN ){
data_send_speed_no_lan.addValue(length);
}
data_send_speed.addValue(length);
|
public void | discarded(int length)
this.totalDiscarded += length;
|
public int | getDataAndProtocolReceiveRate()
return((int)( protocol_receive_speed.getAverage() + data_receive_speed.getAverage()));
|
public int | getDataAndProtocolSendRate()
return((int)( protocol_send_speed.getAverage() + data_send_speed.getAverage()));
|
public int | getDataReceiveRate()
return (int)data_receive_speed.getAverage();
|
public int | getDataReceiveRateNoLAN()
return (int)data_receive_speed_no_lan.getAverage();
|
public int | getDataReceiveRateNoLAN(int average_period)
return (int)(average_period<=0?data_receive_speed_no_lan.getAverage():data_receive_speed_no_lan.getAverage(average_period));
|
public int | getDataSendRate()
return (int)data_send_speed.getAverage();
|
public int | getDataSendRateAtClose()
return( data_send_speed_at_close );
|
public int | getDataSendRateNoLAN()
return (int)data_send_speed_no_lan.getAverage();
|
public int | getDataSendRateNoLAN(int average_period)
return (int)(average_period<=0?data_send_speed_no_lan.getAverage():data_send_speed_no_lan.getAverage(average_period));
|
public int | getProtocolReceiveRate()
return (int)protocol_receive_speed.getAverage();
|
public int | getProtocolReceiveRateNoLAN()
return (int)protocol_receive_speed_no_lan.getAverage();
|
public int | getProtocolReceiveRateNoLAN(int average_period)
return (int)(average_period<=0?protocol_receive_speed_no_lan.getAverage():protocol_receive_speed_no_lan.getAverage(average_period));
|
public int | getProtocolSendRate()
return (int)protocol_send_speed.getAverage();
|
public int | getProtocolSendRateNoLAN()
return (int)protocol_send_speed_no_lan.getAverage();
|
public int | getProtocolSendRateNoLAN(int average_period)
return (int)(average_period<=0?protocol_send_speed_no_lan.getAverage():protocol_send_speed_no_lan.getAverage(average_period));
|
public long | getTotalDataBytesReceived()
return total_data_bytes_received;
|
public long | getTotalDataBytesSent()
return total_data_bytes_sent;
|
public long | getTotalDiscardedRaw()
return totalDiscarded;
|
public long | getTotalProtocolBytesReceived()
return total_protocol_bytes_received;
|
public long | getTotalProtocolBytesSent()
return total_protocol_bytes_sent;
|
public long | getTotalSwarmsPeerRate(boolean downloading, boolean seeding)
return( manager.getTotalSwarmsPeerRate(downloading,seeding));
|
protected void | load()
data_send_speed_at_close = COConfigurationManager.getIntParameter( "globalmanager.stats.send.speed.at.close", 0 );
|
public void | protocolBytesReceived(int length, boolean LAN)
total_protocol_bytes_received += length;
if ( !LAN ){
protocol_receive_speed_no_lan.addValue(length);
}
protocol_receive_speed.addValue(length);
|
public void | protocolBytesSent(int length, boolean LAN)
total_protocol_bytes_sent += length;
if ( !LAN ){
protocol_send_speed_no_lan.addValue(length);
}
protocol_send_speed.addValue(length);
|
protected void | save()
COConfigurationManager.setParameter( "globalmanager.stats.send.speed.at.close", getDataSendRate());
|