org.gudy.azureus2.pluginsimpl.update
Class PluginUpdatePlugin

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.update.PluginUpdatePlugin
All Implemented Interfaces:
Plugin

public class PluginUpdatePlugin
extends java.lang.Object
implements Plugin


Field Summary
static int RD_SIZE_RETRIES
           
static int RD_SIZE_TIMEOUT
           
 
Constructor Summary
PluginUpdatePlugin()
           
 
Method Summary
protected  boolean addInstallationActions(UpdateInstaller installer, java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> install_properties, java.lang.String prefix, java.io.File from_file, java.io.File to_file)
           
 Update addUpdate(PluginInterface pi_for_update, UpdateChecker checker, java.lang.String update_name, java.lang.String[] update_details, java.lang.String old_version, java.lang.String new_version, ResourceDownloader resource_downloader, boolean is_jar, int restart_type, boolean verify)
           
protected  boolean applyInstallProperties(java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> install_properties, java.lang.String prefix, java.io.File to_file)
           
protected  int checkForUpdateSupport(UpdateChecker checker, java.lang.String[] ids_to_check, boolean mandatory)
           
 UpdatableComponent getCustomUpdateableComponent(java.lang.String id, boolean mandatory)
           
protected  void initComplete(PluginConfig plugin_config)
           
 void initialize(PluginInterface _plugin_interface)
          This method is called when the Plugin is loaded by Azureus
protected  void installRecommendedPlugin(PluginInstaller installer, StandardPlugin plugin)
           
protected  void installUpdate(UpdateChecker checker, Update update, PluginInterface plugin, boolean unloadable, boolean is_jar, java.lang.String old_version, java.lang.String new_version, java.io.InputStream data, boolean verify)
           
protected  boolean isVersioned(java.lang.String name)
           
protected  void logMultiLine(java.lang.String indent, java.util.List lines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RD_SIZE_RETRIES

public static final int RD_SIZE_RETRIES
See Also:
Constant Field Values

RD_SIZE_TIMEOUT

public static final int RD_SIZE_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

PluginUpdatePlugin

public PluginUpdatePlugin()
Method Detail

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

initComplete

protected void initComplete(PluginConfig plugin_config)

installRecommendedPlugin

protected void installRecommendedPlugin(PluginInstaller installer,
                                        StandardPlugin plugin)

getCustomUpdateableComponent

public UpdatableComponent getCustomUpdateableComponent(java.lang.String id,
                                                       boolean mandatory)

checkForUpdateSupport

protected int checkForUpdateSupport(UpdateChecker checker,
                                    java.lang.String[] ids_to_check,
                                    boolean mandatory)

addUpdate

public Update addUpdate(PluginInterface pi_for_update,
                        UpdateChecker checker,
                        java.lang.String update_name,
                        java.lang.String[] update_details,
                        java.lang.String old_version,
                        java.lang.String new_version,
                        ResourceDownloader resource_downloader,
                        boolean is_jar,
                        int restart_type,
                        boolean verify)

installUpdate

protected void installUpdate(UpdateChecker checker,
                             Update update,
                             PluginInterface plugin,
                             boolean unloadable,
                             boolean is_jar,
                             java.lang.String old_version,
                             java.lang.String new_version,
                             java.io.InputStream data,
                             boolean verify)

addInstallationActions

protected boolean addInstallationActions(UpdateInstaller installer,
                                         java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> install_properties,
                                         java.lang.String prefix,
                                         java.io.File from_file,
                                         java.io.File to_file)
                                  throws UpdateException
Throws:
UpdateException

applyInstallProperties

protected boolean applyInstallProperties(java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> install_properties,
                                         java.lang.String prefix,
                                         java.io.File to_file)

isVersioned

protected boolean isVersioned(java.lang.String name)

logMultiLine

protected void logMultiLine(java.lang.String indent,
                            java.util.List lines)