FileDocCategorySizeDatePackage
DHTRouterFactory.javaAPI DocAzureus 3.0.3.42012Mon Apr 24 14:11:08 BST 2006com.aelitis.azureus.core.dht.router

DHTRouterFactory

public class DHTRouterFactory extends Object
author
parg

Fields Summary
private static final List
observers
Constructors Summary
Methods Summary
public static voidaddObserver(DHTRouterFactoryObserver observer)

		observers.add( observer );
	
public static DHTRoutercreate(int K, int B, int max_rep_per_node, byte[] id, DHTRouterContactAttachment attachment, com.aelitis.azureus.core.dht.DHTLogger logger)

	
	  
	
									
									
									
								
			
							 
	
		DHTRouterImpl	res = new DHTRouterImpl( K, B, max_rep_per_node, id, attachment, logger );
		
		for( int i=0;i<observers.size();i++){
			
			try{
				((DHTRouterFactoryObserver)observers.get(i)).routerCreated( res );
				
			}catch( Throwable e ){
				
				Debug.printStackTrace(e);
			}
		}
		
		return( res );
	
public static voidremoveObserver(DHTRouterFactoryObserver observer)

		observers.remove( observer );