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 Download
private DownloadManager
private LoggerChannel
private PluginInterface
private Map<ShareResource,
Download> private Map<ShareResource,
TrackerTorrent> private ShareManager
private final TagManager
private Map<Taggable,
ShareResource> private TrackerTorrent
private Tracker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Download
addDownload
(ShareResource resource, Torrent torrent, File torrent_file, File data_file) protected void
canResourceBeDeleted
(ShareResource resource) void
void
decodeTags
(String tags_str) protected void
void
void
initialize
(PluginInterface _plugin_interface) This method is called when the Plugin is loaded by the clientstatic void
load
(PluginInterface plugin_interface) void
reportCurrentTask
(String task_description) void
reportProgress
(int percent_complete) void
resourceAdded
(ShareResource resource) void
resourceDeleted
(ShareResource resource) void
resourceModified
(ShareResource old_resource, ShareResource new_resource) 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
-
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:Plugin
This method is called when the Plugin is loaded by the client- Specified by:
initialize
in interfacePlugin
- Parameters:
_plugin_interface
- the interface that the plugin must use to communicate with the client
-
initializationComplete
public void initializationComplete()- Specified by:
initializationComplete
in interfacePluginListener
-
initialise
protected void initialise() -
closedownInitiated
public void closedownInitiated()- Specified by:
closedownInitiated
in interfacePluginListener
-
closedownComplete
public void closedownComplete()- Specified by:
closedownComplete
in interfacePluginListener
-
decodeTags
-
reportProgress
public void reportProgress(int percent_complete) - Specified by:
reportProgress
in interfaceShareManagerListener
-
reportCurrentTask
- Specified by:
reportCurrentTask
in interfaceShareManagerListener
-