com.aelitis.azureus.plugins.sharing.hoster
Class ShareHosterPlugin

java.lang.Object
  extended by com.aelitis.azureus.plugins.sharing.hoster.ShareHosterPlugin
All Implemented Interfaces:
Plugin, PluginListener, ShareManagerListener

public class ShareHosterPlugin
extends java.lang.Object
implements Plugin, PluginListener, ShareManagerListener


Field Summary
protected  Download download_being_removed
           
protected  DownloadManager download_manager
           
protected  LoggerChannel log
           
protected  PluginInterface plugin_interface
           
protected  java.util.Map resource_dl_map
           
protected  java.util.Map resource_tt_map
           
protected  ShareManager share_manager
           
protected  TrackerTorrent torrent_being_removed
           
protected  Tracker tracker
           
 
Constructor Summary
ShareHosterPlugin()
           
 
Method Summary
protected  void canResourceBeDeleted(ShareResource resource)
           
 void closedownComplete()
           
 void closedownInitiated()
           
protected  void initialise()
           
 void initializationComplete()
           
 void initialize(PluginInterface _plugin_interface)
          This method is called when the Plugin is loaded by Azureus
static void load(PluginInterface plugin_interface)
           
 void reportCurrentTask(java.lang.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
 

Field Detail

plugin_interface

protected PluginInterface plugin_interface

log

protected LoggerChannel log

tracker

protected Tracker tracker

share_manager

protected ShareManager share_manager

download_manager

protected DownloadManager download_manager

resource_dl_map

protected java.util.Map resource_dl_map

resource_tt_map

protected java.util.Map resource_tt_map

download_being_removed

protected Download download_being_removed

torrent_being_removed

protected TrackerTorrent torrent_being_removed
Constructor Detail

ShareHosterPlugin

public ShareHosterPlugin()
Method Detail

load

public static void load(PluginInterface plugin_interface)

initialize

public void initialize(PluginInterface _plugin_interface)
Description copied from interface: Plugin
This method is called when the Plugin is loaded by Azureus

Specified by:
initialize in interface Plugin
Parameters:
_plugin_interface - the interface that the plugin must use to communicate with Azureus

initializationComplete

public void initializationComplete()
Specified by:
initializationComplete in interface PluginListener

initialise

protected void initialise()

closedownInitiated

public void closedownInitiated()
Specified by:
closedownInitiated in interface PluginListener

closedownComplete

public void closedownComplete()
Specified by:
closedownComplete in interface PluginListener

resourceAdded

public void resourceAdded(ShareResource resource)
Specified by:
resourceAdded in interface ShareManagerListener

canResourceBeDeleted

protected void canResourceBeDeleted(ShareResource resource)
                             throws ShareResourceDeletionVetoException
Throws:
ShareResourceDeletionVetoException

resourceModified

public void resourceModified(ShareResource old_resource,
                             ShareResource new_resource)
Specified by:
resourceModified in interface ShareManagerListener

resourceDeleted

public void resourceDeleted(ShareResource resource)
Specified by:
resourceDeleted in interface ShareManagerListener

reportProgress

public void reportProgress(int percent_complete)
Specified by:
reportProgress in interface ShareManagerListener

reportCurrentTask

public void reportCurrentTask(java.lang.String task_description)
Specified by:
reportCurrentTask in interface ShareManagerListener