Class RunEverythingPlugin

java.lang.Object
com.biglybt.plugin.startstoprules.always.RunEverythingPlugin
All Implemented Interfaces:
DownloadListener, DownloadManagerListener, DownloadTrackerListener, Plugin

public class RunEverythingPlugin extends Object implements Plugin, DownloadManagerListener, DownloadListener, DownloadTrackerListener
  • Field Details

    • plugin_interface

      private PluginInterface plugin_interface
    • logger

      private LoggerChannel logger
    • downloads

      private Map downloads
    • downloads_mon

      private Monitor downloads_mon
    • work_sem

      private Semaphore work_sem
    • closing

      private volatile boolean closing
  • Constructor Details

    • RunEverythingPlugin

      public RunEverythingPlugin()
  • Method Details

    • 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 the client
      Specified by:
      initialize in interface Plugin
      Parameters:
      _pi - the interface that the plugin must use to communicate with the client
    • 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)