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 java.lang.Object
implements Plugin, DownloadManagerListener


Constructor Summary
ExternalSeedPlugin()
           
 
Method Summary
protected  void addPeers(Download download, java.util.List _peers)
           
 java.util.List<ExternalSeedPeer> addSeed(Download download, java.util.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(java.lang.String str)
           
 void log(java.lang.String str, java.lang.Throwable e)
           
protected  java.util.List randomiseList(java.util.List l)
           
protected  void removePeer(ExternalSeedPeer peer)
           
protected  void setStatus(java.lang.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 java.util.List<ExternalSeedPeer> addSeed(Download download,
                                                java.util.Map config)

addPeers

protected void addPeers(Download download,
                        java.util.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(java.lang.String str)

log

public void log(java.lang.String str)

log

public void log(java.lang.String str,
                java.lang.Throwable e)

getPluginInterface

public PluginInterface getPluginInterface()

randomiseList

protected java.util.List randomiseList(java.util.List l)