Class PluginUpdatePlugin
java.lang.Object
com.biglybt.pifimpl.update.PluginUpdatePlugin
- All Implemented Interfaces:
Plugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate booleanprivate LoggerChannelprivate static final Stringprivate PluginInterfaceprivate static final Stringstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddInstallationActions(UpdateInstaller installer, Map<String, List<String[]>> install_properties, String prefix, File from_file, File to_file) 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 booleanprotected intcheckForUpdateSupport(UpdateChecker checker, String[] ids_to_check, boolean mandatory) private StringfindCommand(String name) getCustomUpdateableComponent(String id, boolean mandatory) protected voidinitComplete(PluginConfig plugin_config) voidinitialize(PluginInterface _plugin_interface) This method is called when the Plugin is loaded by the clientprotected voidinstallRecommendedPlugin(PluginInstaller installer, StandardPlugin plugin) protected voidinstallUpdate(UpdateChecker checker, Update update, PluginInterface plugin, boolean unloadable, boolean is_jar, String old_version, String new_version, InputStream data, boolean verify) protected booleanisVersioned(String name) protected voidlogMultiLine(String indent, List lines) private voidrunCommand(String[] command) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Plugin
getInitialProperties
-
Field Details
-
PLUGIN_CONFIGSECTION_ID
- See Also:
-
PLUGIN_RESOURCE_ID
- See Also:
-
RD_SIZE_RETRIES
public static final int RD_SIZE_RETRIES- See Also:
-
RD_SIZE_TIMEOUT
public static final int RD_SIZE_TIMEOUT- See Also:
-
plugin_interface
-
log
-
loader_listener_added
private boolean loader_listener_added -
last_id_info
-
-
Constructor Details
-
PluginUpdatePlugin
public PluginUpdatePlugin()
-
-
Method Details
-
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
-
initComplete
-
installRecommendedPlugin
-
getCustomUpdateableComponent
-
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
-
runCommand
-
findCommand
-
isVersioned
-
logMultiLine
-