com.aelitis.azureus.plugins.startstoprules.always
Class RunEverythingPlugin

java.lang.Object
  extended by com.aelitis.azureus.plugins.startstoprules.always.RunEverythingPlugin
All Implemented Interfaces:
DownloadListener, DownloadManagerListener, DownloadTrackerListener, Plugin

public class RunEverythingPlugin
extends Object
implements Plugin, DownloadManagerListener, DownloadListener, DownloadTrackerListener


Constructor Summary
RunEverythingPlugin()
           
 
Method Summary
 void announceResult(DownloadAnnounceResult result)
          An announce result has been returned from the tracker
protected  void checkRules()
           
 void downloadAdded(Download download)
           
 void downloadRemoved(Download download)
           
 void initialize(PluginInterface _pi)
          This method is called when the Plugin is loaded by Azureus
static void load(PluginInterface _plugin_interface)
           
protected  void log(String str)
           
 void positionChanged(Download download, int oldPosition, int newPosition)
          Position of download has changed.
protected  void processLoop()
           
protected  void processSupport()
           
 void scrapeResult(DownloadScrapeResult result)
          A scrape result has been returned from a tracker
 void stateChanged(Download download, int old_state, int new_state)
          The Download's state has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunEverythingPlugin

public RunEverythingPlugin()
Method Detail

load

public static void load(PluginInterface _plugin_interface)

initialize

public void initialize(PluginInterface _pi)
Description copied from interface: Plugin
This method is called when the Plugin is loaded by Azureus

Specified by:
initialize in interface Plugin
Parameters:
_pi - the interface that the plugin must use to communicate with Azureus

downloadAdded

public void downloadAdded(Download download)
Specified by:
downloadAdded in interface DownloadManagerListener

downloadRemoved

public void downloadRemoved(Download download)
Specified by:
downloadRemoved in interface DownloadManagerListener

scrapeResult

public void scrapeResult(DownloadScrapeResult result)
Description copied from interface: DownloadTrackerListener
A scrape result has been returned from a tracker

Specified by:
scrapeResult in interface DownloadTrackerListener
Parameters:
result - Information about the scrape

announceResult

public void announceResult(DownloadAnnounceResult result)
Description copied from interface: DownloadTrackerListener
An announce result has been returned from the tracker

Specified by:
announceResult in interface DownloadTrackerListener
Parameters:
result - Information about the announce

stateChanged

public void stateChanged(Download download,
                         int old_state,
                         int new_state)
Description copied from interface: DownloadListener
The Download's state has changed. This is also triggered if the user toggles the Force Start on/off.

Specified by:
stateChanged in interface DownloadListener

positionChanged

public void positionChanged(Download download,
                            int oldPosition,
                            int newPosition)
Description copied from interface: DownloadListener
Position of download has changed.

Specified by:
positionChanged in interface DownloadListener
Parameters:
download - object in which the position has changed
oldPosition - position that the download used to be at
newPosition - position that the download is now at

checkRules

protected void checkRules()

processLoop

protected void processLoop()

processSupport

protected void processSupport()

log

protected void log(String str)