Class ShareHosterPlugin
java.lang.Object
com.biglybt.plugin.sharing.hoster.ShareHosterPlugin
- All Implemented Interfaces:
Plugin, PluginListener, ShareManagerListener
public class ShareHosterPlugin
extends Object
implements Plugin, PluginListener, ShareManagerListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Downloadprivate DownloadManagerprivate LoggerChannelprivate PluginInterfaceprivate Map<ShareResource, Download> private Map<ShareResource, TrackerTorrent> private ShareManagerprivate final TagManagerprivate Map<Taggable, ShareResource> private TrackerTorrentprivate Tracker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate DownloadaddDownload(ShareResource resource, Torrent torrent, File torrent_file, File data_file) protected voidcanResourceBeDeleted(ShareResource resource) voidvoiddecodeTags(String tags_str) protected voidvoidvoidinitialize(PluginInterface _plugin_interface) This method is called when the Plugin is loaded by the clientstatic voidload(PluginInterface plugin_interface) voidreportCurrentTask(String task_description) voidreportProgress(int percent_complete) voidresourceAdded(ShareResource resource) voidresourceDeleted(ShareResource resource) voidresourceModified(ShareResource old_resource, ShareResource new_resource) 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
-
log
-
tracker
-
download_manager
-
tag_manager
-
resource_dl_map
-
resource_tt_map
-
taggable_map
-
download_being_removed
-
torrent_being_removed
-
-
Constructor Details
-
ShareHosterPlugin
public ShareHosterPlugin()
-
-
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:
_plugin_interface- the interface that the plugin must use to communicate with the client
-
initializationComplete
public void initializationComplete()- Specified by:
initializationCompletein interfacePluginListener
-
initialise
protected void initialise() -
closedownInitiated
public void closedownInitiated()- Specified by:
closedownInitiatedin interfacePluginListener
-
closedownComplete
public void closedownComplete()- Specified by:
closedownCompletein interfacePluginListener
-
decodeTags
-
reportProgress
public void reportProgress(int percent_complete) - Specified by:
reportProgressin interfaceShareManagerListener
-
reportCurrentTask
- Specified by:
reportCurrentTaskin interfaceShareManagerListener
-