com.aelitis.azureus.plugins.extseed
Class ExternalSeedPlugin

java.lang.Object
  extended by com.aelitis.azureus.plugins.extseed.ExternalSeedPlugin
All Implemented Interfaces:
DownloadManagerListener, Plugin

public class ExternalSeedPlugin
extends Object
implements Plugin, DownloadManagerListener


Constructor Summary
ExternalSeedPlugin()
           
 
Method Summary
protected  void addPeers(Download download, List _peers)
           
 List<ExternalSeedPeer> addSeed(Download download, Map config)
           
 void downloadAdded(Download download)
           
 void downloadChanged(Download download)
           
 void downloadRemoved(Download download)
           
 int getGlobalDownloadRateBytesPerSec()
           
 ExternalSeedManualPeer[] getManualWebSeeds(Download download)
           
 ExternalSeedReader[] getManualWebSeeds(Torrent torrent)
           
 PluginInterface getPluginInterface()
           
 TrackerPeerSource getTrackerPeerSource(Download download)
           
 TrackerPeerSource getTrackerPeerSource(Torrent torrent)
           
 void initialize(PluginInterface _plugin_interface)
          This method is called when the Plugin is loaded by Azureus
static void load(PluginInterface plugin_interface)
           
 void log(String str)
           
 void log(String str, Throwable e)
           
protected  List randomiseList(List l)
           
protected  void removePeer(ExternalSeedPeer peer)
           
protected  void setStatus(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalSeedPlugin

public ExternalSeedPlugin()
Method Detail

load

public static void load(PluginInterface plugin_interface)

initialize

public void initialize(PluginInterface _plugin_interface)
Description copied from interface: Plugin
This method is called when the Plugin is loaded by Azureus

Specified by:
initialize in interface Plugin
Parameters:
_plugin_interface - the interface that the plugin must use to communicate with Azureus

downloadAdded

public void downloadAdded(Download download)
Specified by:
downloadAdded in interface DownloadManagerListener

downloadChanged

public void downloadChanged(Download download)

addSeed

public List<ExternalSeedPeer> addSeed(Download download,
                                      Map config)

addPeers

protected void addPeers(Download download,
                        List _peers)

removePeer

protected void removePeer(ExternalSeedPeer peer)

downloadRemoved

public void downloadRemoved(Download download)
Specified by:
downloadRemoved in interface DownloadManagerListener

getManualWebSeeds

public ExternalSeedManualPeer[] getManualWebSeeds(Download download)

getManualWebSeeds

public ExternalSeedReader[] getManualWebSeeds(Torrent torrent)

getTrackerPeerSource

public TrackerPeerSource getTrackerPeerSource(Download download)

getTrackerPeerSource

public TrackerPeerSource getTrackerPeerSource(Torrent torrent)

getGlobalDownloadRateBytesPerSec

public int getGlobalDownloadRateBytesPerSec()

setStatus

protected void setStatus(String str)

log

public void log(String str)

log

public void log(String str,
                Throwable e)

getPluginInterface

public PluginInterface getPluginInterface()

randomiseList

protected List randomiseList(List l)