Package com.biglybt.plugin.extseed
Class ExternalSeedPlugin
- java.lang.Object
-
- com.biglybt.plugin.extseed.ExternalSeedPlugin
-
- All Implemented Interfaces:
DownloadManagerListener
,Plugin
public class ExternalSeedPlugin extends java.lang.Object implements Plugin, DownloadManagerListener
-
-
Field Summary
Fields Modifier and Type Field Description private DownloadManagerStats
dm_stats
private java.util.Map
download_map
private Monitor
download_mon
private static ExternalSeedReaderFactory[]
factories
private LoggerChannel
log
private PluginInterface
plugin_interface
private java.util.Random
random
private UITextField
status_field
-
Constructor Summary
Constructors Constructor Description ExternalSeedPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
downloadAdded(Download download, boolean changed)
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 the clientstatic 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
-
Methods inherited from interface com.biglybt.pif.Plugin
getInitialProperties
-
-
-
-
Field Detail
-
factories
private static ExternalSeedReaderFactory[] factories
-
plugin_interface
private PluginInterface plugin_interface
-
dm_stats
private DownloadManagerStats dm_stats
-
status_field
private UITextField status_field
-
log
private LoggerChannel log
-
random
private java.util.Random random
-
download_map
private java.util.Map download_map
-
download_mon
private Monitor download_mon
-
-
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 the client- Specified by:
initialize
in interfacePlugin
- Parameters:
_plugin_interface
- the interface that the plugin must use to communicate with the client
-
downloadAdded
public void downloadAdded(Download download)
- Specified by:
downloadAdded
in interfaceDownloadManagerListener
-
downloadAdded
public void downloadAdded(Download download, boolean changed)
-
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 interfaceDownloadManagerListener
-
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)
-
-