Methods Summary |
---|
public long | getAverageBytesReceived()
return( bytes_in_average.getAverage());
|
public long | getAverageBytesSent()
return( bytes_out_average.getAverage());
|
public long | getAveragePacketsReceived()
return( packets_in_average.getAverage());
|
public long | getAveragePacketsSent()
return( packets_out_average.getAverage());
|
public long | getDBKeysBlocked()
return( control.getDataBase().getStats().getKeyBlockCount());
|
public long | getDBValuesStored()
return( control.getDataBase().getStats().getValueDetails()[ DHTDBStats.VD_VALUE_COUNT ]);
|
public long | getEstimatedDHTSize()
return( control.getEstimatedDHTSize());
|
public long | getIncomingRequests()
return( transport_snapshot.getIncomingRequests());
|
public long | getRouterContacts()
return( router_snapshot[DHTRouterStats.ST_CONTACTS]);
|
public int | getRouterCount()
return( control.getRouterCount());
|
public long | getRouterLeaves()
return( router_snapshot[DHTRouterStats.ST_LEAVES]);
|
public long | getRouterNodes()
return( router_snapshot[DHTRouterStats.ST_NODES]);
|
public long | getRouterUptime()
return( control.getRouterUptime());
|
public java.lang.String | getString()
return( "transport:" +
getTotalBytesReceived() + "," +
getTotalBytesSent() + "," +
getTotalPacketsReceived() + "," +
getTotalPacketsSent() + "," +
getTotalPingsReceived() + "," +
getTotalFindNodesReceived() + "," +
getTotalFindValuesReceived() + "," +
getTotalStoresReceived() + "," +
getTotalKeyBlocksReceived() + "," +
getAverageBytesReceived() + "," +
getAverageBytesSent() + "," +
getAveragePacketsReceived() + "," +
getAveragePacketsSent() + "," +
getIncomingRequests() +
",router:" +
getRouterNodes() + "," +
getRouterLeaves() + "," +
getRouterContacts() +
",database:" +
getDBValuesStored()+ ","+
getDBKeysBlocked()+
",version:" + getVersion()+","+
getRouterUptime() + ","+
getRouterCount());
|
public long | getTotalBytesReceived()
return( transport_snapshot.getBytesReceived());
|
public long | getTotalBytesSent()
return( transport_snapshot.getBytesSent());
|
public long | getTotalFindNodesReceived()
return( transport_snapshot.getFindNodes()[DHTTransportStats.STAT_RECEIVED]);
|
public long | getTotalFindValuesReceived()
return( transport_snapshot.getFindValues()[DHTTransportStats.STAT_RECEIVED]);
|
public long | getTotalKeyBlocksReceived()
return( transport_snapshot.getKeyBlocks()[DHTTransportStats.STAT_RECEIVED]);
|
public long | getTotalPacketsReceived()
return( transport_snapshot.getPacketsReceived());
|
public long | getTotalPacketsSent()
return( transport_snapshot.getPacketsSent());
|
public long | getTotalPingsReceived()
return( transport_snapshot.getPings()[DHTTransportStats.STAT_RECEIVED]);
|
public long | getTotalStoresReceived()
return( transport_snapshot.getStores()[DHTTransportStats.STAT_RECEIVED]);
|
public java.lang.String | getVersion()
return( Constants.AZUREUS_VERSION );
|
protected void | update()
DHTTransport transport = control.getTransport();
DHTTransportStats t_stats = transport.getStats().snapshot();
packets_in_average.addValue(
t_stats.getPacketsReceived() - transport_snapshot.getPacketsReceived());
packets_out_average.addValue(
t_stats.getPacketsSent() - transport_snapshot.getPacketsSent());
bytes_in_average.addValue(
t_stats.getBytesReceived() - transport_snapshot.getBytesReceived());
bytes_out_average.addValue(
t_stats.getBytesSent() - transport_snapshot.getBytesSent());
transport_snapshot = t_stats;
router_snapshot = control.getRouter().getStats().getStats();
|