Interface UpdateManager
- All Known Implementing Classes:
UpdateManagerImpl
public interface UpdateManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidapplyUpdates(boolean restart_after) applies any updates and stops or restarts AzureuscreateEmptyUpdateCheckInstance(int check_type, String name) creates an update check instance with no attached updateable components (as opposed to automatically including all registeredcreate a stand alone update installer.creates an update check instance with currently registered updatable components Default check type is "UCI_UPDATE"createUpdateCheckInstance(int check_type, String name) creates an update check instance with currently registered updatable componentsreturns the currently declared installers, if anybooleanvoidregisterUpdatableComponent(UpdatableComponent component, boolean mandatory) All updateable components must register in order to receive update check eventsvoidvoid
-
Method Details
-
registerUpdatableComponent
All updateable components must register in order to receive update check events- Parameters:
component-mandatory- indicates that this component must successfully complete checking for any overall update check to complete
-
createUpdateCheckInstance
UpdateCheckInstance createUpdateCheckInstance()creates an update check instance with currently registered updatable components Default check type is "UCI_UPDATE"- Returns:
-
createUpdateCheckInstance
creates an update check instance with currently registered updatable components- Parameters:
check_type- see UpdateCheckInstance.UCI_xxname- name of the update instance
-
createEmptyUpdateCheckInstance
creates an update check instance with no attached updateable components (as opposed to automatically including all registered- Parameters:
check_type- see UpdateCheckInstance.UCI_xxname- name of the update instance- Returns:
-
getCheckInstances
UpdateCheckInstance[] getCheckInstances() -
createInstaller
create a stand alone update installer. you will need to restart Azureus for it to be installed- Returns:
- Throws:
UpdateException
-
hasPendingInstalls
boolean hasPendingInstalls() -
getInstallDir
String getInstallDir() -
getUserDir
String getUserDir() -
getInstallers
-
applyUpdates
applies any updates and stops or restarts Azureus- Throws:
UpdateException
-
addVerificationListener
-
removeVerificationListener
-
addListener
-
removeListener
-