FileDocCategorySizeDatePackage
DHTTransportUDPStatsImpl.javaAPI DocAzureus 3.0.3.42602Thu Feb 09 19:42:52 GMT 2006com.aelitis.azureus.core.dht.transport.udp.impl

DHTTransportUDPStatsImpl

public class DHTTransportUDPStatsImpl extends com.aelitis.azureus.core.dht.transport.util.DHTTransportStatsImpl
author
parg

Fields Summary
private com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerStats
stats
Constructors Summary
protected DHTTransportUDPStatsImpl(byte _pv, com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerStats _stats)

		super( _pv );
		
		stats	= _stats;
	
Methods Summary
public longgetBytesReceived()

		return( stats.getBytesReceived());
	
public longgetBytesSent()

		return( stats.getBytesSent());
	
public longgetPacketsReceived()

		return( stats.getPacketsReceived());
	
public longgetPacketsSent()

		return( stats.getPacketsSent());
	
public longgetRequestsTimedOut()

		return( stats.getRequestsTimedOut());
	
public java.lang.StringgetString()

		return( super.getString() + "," +
				"packsent:" + getPacketsSent() + "," +
				"packrecv:" + getPacketsReceived() + "," +
				"bytesent:" + getBytesSent() + "," +
				"byterecv:" + getBytesReceived() + "," + 
				"timeout:" + getRequestsTimedOut() + "," +
				"sendq:" + stats.getSendQueueLength() + "," +
				"recvq:" + stats.getReceiveQueueLength());
	
protected voidsetStats(com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerStats _stats)

		stats = _stats;
	
public com.aelitis.azureus.core.dht.transport.DHTTransportStatssnapshot()

		DHTTransportStatsImpl	res = new DHTTransportUDPStatsImpl( getProtocolVersion(), stats.snapshot());
		
		snapshotSupport( res );
		
		return( res );