org.gudy.azureus2.pluginsimpl.local.dht.mainline
Class MainlineDHTManagerImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.dht.mainline.MainlineDHTManagerImpl
All Implemented Interfaces:
MainlineDHTManager

public class MainlineDHTManagerImpl
extends Object
implements MainlineDHTManager

Author:
Allan Crooks

Constructor Summary
MainlineDHTManagerImpl(AzureusCore core)
           
 
Method Summary
 MainlineDHTProvider getProvider()
          Returns the current DHT provider, or null if there isn't one.
 void setProvider(MainlineDHTProvider provider)
          Registers an object to be used for mainline DHT support.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainlineDHTManagerImpl

public MainlineDHTManagerImpl(AzureusCore core)
Method Detail

setProvider

public void setProvider(MainlineDHTProvider provider)
Description copied from interface: MainlineDHTManager
Registers an object to be used for mainline DHT support. There is only one slot available, so if multiple plugins attempt to register themselves, only the last one will be used. If you pass null as an argument, it will cause Azureus to disable support for mainline DHT.

Specified by:
setProvider in interface MainlineDHTManager

getProvider

public MainlineDHTProvider getProvider()
Description copied from interface: MainlineDHTManager
Returns the current DHT provider, or null if there isn't one.

Specified by:
getProvider in interface MainlineDHTManager