FileDocCategorySizeDatePackage
DHTUDPPacketHandlerStats.javaAPI DocAzureus 3.0.3.42730Thu Feb 09 19:42:44 GMT 2006com.aelitis.azureus.core.dht.transport.udp.impl.packethandler

DHTUDPPacketHandlerStats

public class DHTUDPPacketHandlerStats extends Object

Fields Summary
private long
packets_sent
private long
packets_received
private long
bytes_sent
private long
bytes_received
private long
timeouts
private com.aelitis.net.udp.uc.PRUDPPacketHandlerStats
stats
Constructors Summary
protected DHTUDPPacketHandlerStats(com.aelitis.net.udp.uc.PRUDPPacketHandler _handler)

		stats	= _handler.getStats();
	
protected DHTUDPPacketHandlerStats(DHTUDPPacketHandlerStats _originator, com.aelitis.net.udp.uc.PRUDPPacketHandlerStats _stats)

		packets_sent		= _originator.packets_sent;
		packets_received	= _originator.packets_received;
		bytes_sent			= _originator.bytes_sent;
		bytes_received		= _originator.bytes_received;
		timeouts			= _originator.timeouts;

		stats	= _stats;
	
Methods Summary
public longgetBytesReceived()

		return( bytes_received );
	
public longgetBytesSent()

		return( bytes_sent );
	
public longgetPacketsReceived()

		return( packets_received );
	
public longgetPacketsSent()

		return( packets_sent );
	
public longgetReceiveQueueLength()

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

		return( timeouts );
	
public longgetSendQueueLength()

		return( stats.getSendQueueLength());
	
protected voidpacketReceived(long bytes)

		packets_received++;
		bytes_received	+= bytes;
	
protected voidpacketSent(long bytes)

		packets_sent++;
		bytes_sent	+= bytes;
	
public com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketHandlerStatssnapshot()

		return( new DHTUDPPacketHandlerStats( this, stats.snapshot()));
	
protected voidtimeout()

		timeouts++;