com.aelitis.azureus.plugins.removerules
Class DownloadRemoveRulesPlugin

java.lang.Object
  extended by com.aelitis.azureus.plugins.removerules.DownloadRemoveRulesPlugin
All Implemented Interfaces:
DownloadManagerListener, Plugin

public class DownloadRemoveRulesPlugin
extends Object
implements Plugin, DownloadManagerListener


Field Summary
static int AELITIS_BIG_TORRENT_SEED_LIMIT
           
static int AELITIS_SMALL_TORRENT_SEED_LIMIT
           
protected  boolean closing
           
static int DELAYED_REMOVAL_PERIOD
           
protected  Map dm_listener_map
           
static int INITIAL_DELAY
           
protected  LoggerChannel log
           
static int MAX_SEED_TO_PEER_RATIO
           
protected  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 String UPDATE_TRACKER
           
 
Constructor Summary
DownloadRemoveRulesPlugin()
           
 
Method Summary
 void destroyed()
           
 void destroyInitiated()
           
 void downloadAdded(Download download)
           
 void downloadRemoved(Download download)
           
protected  void handleAnnounce(Download download, DownloadAnnounceResult response)
           
protected  void handleAnnounceScrapeStatus(Download download, String status)
           
protected  void handleScrape(Download download, DownloadScrapeResult response)
           
 void initialize(PluginInterface _plugin_interface)
          This method is called when the Plugin is loaded by Azureus
static 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
 

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 String UPDATE_TRACKER
See Also:
Constant Field Values

plugin_interface

protected PluginInterface plugin_interface

closing

protected boolean closing

dm_listener_map

protected Map dm_listener_map

monitored_downloads

protected 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
Constructor Detail

DownloadRemoveRulesPlugin

public DownloadRemoveRulesPlugin()
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

handleScrape

protected void handleScrape(Download download,
                            DownloadScrapeResult response)

handleAnnounce

protected void handleAnnounce(Download download,
                              DownloadAnnounceResult response)

handleAnnounceScrapeStatus

protected void handleAnnounceScrapeStatus(Download download,
                                          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 interface DownloadManagerListener

destroyInitiated

public void destroyInitiated()

destroyed

public void destroyed()