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 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 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)