FileDocCategorySizeDatePackage
DHTTransportRequestCounter.javaAPI DocAzureus 3.0.3.43427Fri Mar 03 10:26:48 GMT 2006com.aelitis.azureus.core.dht.transport.util

DHTTransportRequestCounter

public class DHTTransportRequestCounter extends Object implements com.aelitis.azureus.core.dht.transport.DHTTransportRequestHandler
author
parg

Fields Summary
private com.aelitis.azureus.core.dht.transport.DHTTransportRequestHandler
delegate
private DHTTransportStatsImpl
stats
Constructors Summary
public DHTTransportRequestCounter(com.aelitis.azureus.core.dht.transport.DHTTransportRequestHandler _delegate, DHTTransportStatsImpl _stats)

		delegate	= _delegate;
		stats		= _stats;
	
Methods Summary
public voidcontactImported(com.aelitis.azureus.core.dht.transport.DHTTransportContact contact)

		delegate.contactImported( contact );
	
public voidcontactRemoved(com.aelitis.azureus.core.dht.transport.DHTTransportContact contact)

		delegate.contactRemoved( contact );
	
public com.aelitis.azureus.core.dht.transport.DHTTransportContact[]findNodeRequest(com.aelitis.azureus.core.dht.transport.DHTTransportContact contact, byte[] id)

		stats.findNodeReceived();
		
		return( delegate.findNodeRequest( contact, id ));
	
public com.aelitis.azureus.core.dht.transport.DHTTransportFindValueReplyfindValueRequest(com.aelitis.azureus.core.dht.transport.DHTTransportContact contact, byte[] key, int max, byte flags)

		stats.findValueReceived();
		
		return( delegate.findValueRequest( contact, key, max, flags ));
	
public intgetTransportEstimatedDHTSize()

		return( delegate.getTransportEstimatedDHTSize());
	
public voidkeyBlockRequest(com.aelitis.azureus.core.dht.transport.DHTTransportContact contact, byte[] key_block_request, byte[] key_block_signature)

		stats.keyBlockReceived();
		
		delegate.keyBlockRequest( contact, key_block_request, key_block_signature );
	
public voidpingRequest(com.aelitis.azureus.core.dht.transport.DHTTransportContact contact)

		stats.pingReceived();
		
		delegate.pingRequest( contact );
	
public voidsetTransportEstimatedDHTSize(int size)

		delegate.setTransportEstimatedDHTSize(size);
	
public com.aelitis.azureus.core.dht.transport.DHTTransportFullStatsstatsRequest(com.aelitis.azureus.core.dht.transport.DHTTransportContact contact)

		stats.statsReceived();
		
		return( delegate.statsRequest( contact ));
	
public com.aelitis.azureus.core.dht.transport.DHTTransportStoreReplystoreRequest(com.aelitis.azureus.core.dht.transport.DHTTransportContact contact, byte[][] keys, com.aelitis.azureus.core.dht.transport.DHTTransportValue[][] value_sets)

		stats.storeReceived();
		
		return( delegate.storeRequest( contact, keys, value_sets ));