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 booleanprivate Mapprivate Monitorprivate LoggerChannelprivate PluginInterfaceprivate Semaphore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceResult(DownloadAnnounceResult result) An announce result has been returned from the trackerprotected voidvoiddownloadAdded(Download download) voiddownloadRemoved(Download download) voidThis method is called when the Plugin is loaded by the clientstatic voidload(PluginInterface _plugin_interface) protected voidvoidpositionChanged(Download download, int oldPosition, int newPosition) Position of download has changed.protected voidprotected voidvoidscrapeResult(DownloadScrapeResult result) A scrape result has been returned from a trackervoidstateChanged(Download download, int old_state, int new_state) The Download's state has changed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:PluginThis method is called when the Plugin is loaded by the client- Specified by:
initializein interfacePlugin- Parameters:
_pi- the interface that the plugin must use to communicate with the client
-
downloadAdded
- Specified by:
downloadAddedin interfaceDownloadManagerListener
-
downloadRemoved
- Specified by:
downloadRemovedin interfaceDownloadManagerListener
-
scrapeResult
Description copied from interface:DownloadTrackerListenerA scrape result has been returned from a tracker- Specified by:
scrapeResultin interfaceDownloadTrackerListener- Parameters:
result- Information about the scrape
-
announceResult
Description copied from interface:DownloadTrackerListenerAn announce result has been returned from the tracker- Specified by:
announceResultin interfaceDownloadTrackerListener- Parameters:
result- Information about the announce
-
stateChanged
Description copied from interface:DownloadListenerThe Download's state has changed. This is also triggered if the user toggles the Force Start on/off.- Specified by:
stateChangedin interfaceDownloadListener
-
positionChanged
Description copied from interface:DownloadListenerPosition of download has changed.- Specified by:
positionChangedin 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
-