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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private Map
private Monitor
private LoggerChannel
private PluginInterface
private Semaphore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
announceResult
(DownloadAnnounceResult result) An announce result has been returned from the trackerprotected void
void
downloadAdded
(Download download) void
downloadRemoved
(Download download) void
This method is called when the Plugin is loaded by the clientstatic void
load
(PluginInterface _plugin_interface) protected void
void
positionChanged
(Download download, int oldPosition, int newPosition) Position of download has changed.protected void
protected void
void
scrapeResult
(DownloadScrapeResult result) A scrape result has been returned from a trackervoid
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
Methods inherited from interface com.biglybt.pif.Plugin
getInitialProperties
-
Field Details
-
plugin_interface
-
logger
-
downloads
-
downloads_mon
-
work_sem
-
closing
private volatile boolean closing
-
-
Constructor Details
-
RunEverythingPlugin
public RunEverythingPlugin()
-
-
Method Details
-
load
-
initialize
Description copied from interface:Plugin
This method is called when the Plugin is loaded by the client- Specified by:
initialize
in interfacePlugin
- Parameters:
_pi
- the interface that the plugin must use to communicate with the client
-
downloadAdded
- Specified by:
downloadAdded
in interfaceDownloadManagerListener
-
downloadRemoved
- Specified by:
downloadRemoved
in interfaceDownloadManagerListener
-
scrapeResult
Description copied from interface:DownloadTrackerListener
A scrape result has been returned from a tracker- Specified by:
scrapeResult
in interfaceDownloadTrackerListener
- Parameters:
result
- Information about the scrape
-
announceResult
Description copied from interface:DownloadTrackerListener
An announce result has been returned from the tracker- Specified by:
announceResult
in interfaceDownloadTrackerListener
- Parameters:
result
- Information about the announce
-
stateChanged
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 interfaceDownloadListener
-
positionChanged
Description copied from interface:DownloadListener
Position of download has changed.- Specified by:
positionChanged
in interfaceDownloadListener
- Parameters:
download
- object in which the position has changedoldPosition
- position that the download used to be atnewPosition
- position that the download is now at
-
checkRules
protected void checkRules() -
processLoop
protected void processLoop() -
processSupport
protected void processSupport() -
log
-