Package com.biglybt.pifimpl.update
Class PluginUpdatePlugin
java.lang.Object
com.biglybt.pifimpl.update.PluginUpdatePlugin
- All Implemented Interfaces:
Plugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private boolean
private LoggerChannel
private static final String
private PluginInterface
private static final String
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addInstallationActions
(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 boolean
protected int
checkForUpdateSupport
(UpdateChecker checker, String[] ids_to_check, boolean mandatory) private String
findCommand
(String name) 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 the clientprotected 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) private void
runCommand
(String[] command) 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_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: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
-
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
-