com.aelitis.azureus.plugins.extseed
Class ExternalSeedPlugin
java.lang.Object
com.aelitis.azureus.plugins.extseed.ExternalSeedPlugin
- All Implemented Interfaces:
- DownloadManagerListener, Plugin
public class ExternalSeedPlugin
- extends java.lang.Object
- implements Plugin, DownloadManagerListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalSeedPlugin
public ExternalSeedPlugin()
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)