FileDocCategorySizeDatePackage
PRUDPPacketHandlerStatsImpl.javaAPI DocAzureus 3.0.3.42666Wed Jun 28 13:03:34 BST 2006com.aelitis.net.udp.uc.impl

PRUDPPacketHandlerStatsImpl

public class PRUDPPacketHandlerStatsImpl extends Object implements com.aelitis.net.udp.uc.PRUDPPacketHandlerStats, Cloneable
author
parg

Fields Summary
private PRUDPPacketHandlerImpl
packet_handler
private long
packets_sent
private long
packets_received
private long
requests_timeout
private long
bytes_sent
private long
bytes_received
Constructors Summary
protected PRUDPPacketHandlerStatsImpl(PRUDPPacketHandlerImpl _packet_handler)

		packet_handler	= _packet_handler;
	
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( packet_handler.getReceiveQueueLength());
		
	
public longgetRequestsTimedOut()

		return( requests_timeout );
	
public longgetSendQueueLength()

		return( packet_handler.getSendQueueLength());
	
protected voidpacketReceived(int len)

		packets_received++;
		bytes_received	+= len;
	
protected voidpacketSent(int len)

		packets_sent++;
		bytes_sent += len;
	
protected voidprimordialPacketReceived(int len)

	
	
protected voidprimordialPacketSent(int len)

	
	
protected voidrequestTimedOut()

		requests_timeout++;
	
public com.aelitis.net.udp.uc.PRUDPPacketHandlerStatssnapshot()

		try{
			return((PRUDPPacketHandlerStats)clone());
			
		}catch( CloneNotSupportedException e ){
			
			Debug.printStackTrace(e);
			
			return( null );
		}