Package com.biglybt.plugin.removerules
Class DownloadRemoveRulesPlugin
- java.lang.Object
-
- com.biglybt.plugin.removerules.DownloadRemoveRulesPlugin
-
- All Implemented Interfaces:
DownloadManagerListener
,Plugin
public class DownloadRemoveRulesPlugin extends java.lang.Object implements Plugin, DownloadManagerListener
-
-
Field Summary
Fields Modifier and Type Field Description static int
AELITIS_BIG_TORRENT_SEED_LIMIT
static int
AELITIS_SMALL_TORRENT_SEED_LIMIT
protected boolean
closing
static int
DELAYED_REMOVAL_PERIOD
protected java.util.Map
dm_listener_map
static int
INITIAL_DELAY
protected LoggerChannel
log
static int
MAX_SEED_TO_PEER_RATIO
protected java.util.List
monitored_downloads
protected PluginInterface
plugin_interface
protected BooleanParameter
remove_unauthorised
protected BooleanParameter
remove_unauthorised_data
protected BooleanParameter
remove_unauthorised_seeding_only
protected BooleanParameter
remove_update_torrents
static java.lang.String
UPDATE_TRACKER
-
Constructor Summary
Constructors Constructor Description DownloadRemoveRulesPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroyed()
void
destroyInitiated()
void
downloadAdded(Download download)
void
downloadRemoved(Download download)
protected void
handleAnnounce(Download download, DownloadAnnounceResult response)
protected void
handleAnnounceScrapeStatus(Download download, java.lang.String status)
protected void
handleScrape(Download download, DownloadScrapeResult response)
void
initialize(PluginInterface _plugin_interface)
This method is called when the Plugin is loaded by the clientstatic void
load(PluginInterface plugin_interface)
protected void
removeDownload(Download download, boolean remove_data)
protected void
removeDownloadDelayed(Download download, boolean remove_data)
-
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
-
INITIAL_DELAY
public static final int INITIAL_DELAY
- See Also:
- Constant Field Values
-
DELAYED_REMOVAL_PERIOD
public static final int DELAYED_REMOVAL_PERIOD
- See Also:
- Constant Field Values
-
AELITIS_BIG_TORRENT_SEED_LIMIT
public static final int AELITIS_BIG_TORRENT_SEED_LIMIT
- See Also:
- Constant Field Values
-
AELITIS_SMALL_TORRENT_SEED_LIMIT
public static final int AELITIS_SMALL_TORRENT_SEED_LIMIT
- See Also:
- Constant Field Values
-
MAX_SEED_TO_PEER_RATIO
public static final int MAX_SEED_TO_PEER_RATIO
- See Also:
- Constant Field Values
-
UPDATE_TRACKER
public static final java.lang.String UPDATE_TRACKER
- See Also:
- Constant Field Values
-
plugin_interface
protected PluginInterface plugin_interface
-
closing
protected boolean closing
-
dm_listener_map
protected java.util.Map dm_listener_map
-
monitored_downloads
protected java.util.List monitored_downloads
-
log
protected LoggerChannel log
-
remove_unauthorised
protected BooleanParameter remove_unauthorised
-
remove_unauthorised_seeding_only
protected BooleanParameter remove_unauthorised_seeding_only
-
remove_unauthorised_data
protected BooleanParameter remove_unauthorised_data
-
remove_update_torrents
protected BooleanParameter remove_update_torrents
-
-
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
-
handleScrape
protected void handleScrape(Download download, DownloadScrapeResult response)
-
handleAnnounce
protected void handleAnnounce(Download download, DownloadAnnounceResult response)
-
handleAnnounceScrapeStatus
protected void handleAnnounceScrapeStatus(Download download, java.lang.String status)
-
removeDownloadDelayed
protected void removeDownloadDelayed(Download download, boolean remove_data)
-
removeDownload
protected void removeDownload(Download download, boolean remove_data)
-
downloadRemoved
public void downloadRemoved(Download download)
- Specified by:
downloadRemoved
in interfaceDownloadManagerListener
-
destroyInitiated
public void destroyInitiated()
-
destroyed
public void destroyed()
-
-