org.gudy.azureus2.pluginsimpl.update
Class PluginUpdatePlugin
java.lang.Object
org.gudy.azureus2.pluginsimpl.update.PluginUpdatePlugin
- All Implemented Interfaces:
- Plugin
public class PluginUpdatePlugin
- extends Object
- implements Plugin
Method Summary |
protected boolean |
addInstallationActions(UpdateInstaller installer,
Map<String,List<String[]>> install_properties,
String prefix,
File from_file,
File to_file)
|
Update |
addUpdate(PluginInterface pi_for_update,
UpdateChecker checker,
String update_name,
String[] update_details,
String old_version,
String new_version,
ResourceDownloader resource_downloader,
boolean is_jar,
int restart_type,
boolean verify)
|
protected boolean |
applyInstallProperties(Map<String,List<String[]>> install_properties,
String prefix,
File to_file)
|
protected int |
checkForUpdateSupport(UpdateChecker checker,
String[] ids_to_check,
boolean mandatory)
|
UpdatableComponent |
getCustomUpdateableComponent(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,
String old_version,
String new_version,
InputStream data,
boolean verify)
|
protected boolean |
isVersioned(String name)
|
protected void |
logMultiLine(String indent,
List lines)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PluginUpdatePlugin
public PluginUpdatePlugin()
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(String id,
boolean mandatory)
checkForUpdateSupport
protected int checkForUpdateSupport(UpdateChecker checker,
String[] ids_to_check,
boolean mandatory)
addUpdate
public Update addUpdate(PluginInterface pi_for_update,
UpdateChecker checker,
String update_name,
String[] update_details,
String old_version,
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,
String old_version,
String new_version,
InputStream data,
boolean verify)
addInstallationActions
protected boolean addInstallationActions(UpdateInstaller installer,
Map<String,List<String[]>> install_properties,
String prefix,
File from_file,
File to_file)
throws UpdateException
- Throws:
UpdateException
applyInstallProperties
protected boolean applyInstallProperties(Map<String,List<String[]>> install_properties,
String prefix,
File to_file)
isVersioned
protected boolean isVersioned(String name)
logMultiLine
protected void logMultiLine(String indent,
List lines)