Class UpdateManagerImpl
java.lang.Object
com.biglybt.pifimpl.local.update.UpdateManagerImpl
- All Implemented Interfaces:
UpdateCheckInstanceListener, UpdateManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<UpdateCheckInstanceImpl> private List<UpdatableComponentImpl> private Coreprivate List<UpdateInstaller> private Listprivate static UpdateManagerImplprotected AEMonitorprivate List -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidapplyUpdates(boolean restart_after) applies any updates and stops or restarts Azureusvoidcancelled(UpdateCheckInstance instance) voidcomplete(UpdateCheckInstance instance) createEmptyUpdateCheckInstance(int type, String name) creates an update check instance with no attached updateable components (as opposed to automatically including all registeredcreateEmptyUpdateCheckInstance(int type, String name, boolean low_noise) create a stand alone update installer.creates an update check instance with currently registered updatable components Default check type is "UCI_UPDATE"createUpdateCheckInstance(int type, String name) creates an update check instance with currently registered updatable componentsprotected CoregetCore()returns the currently declared installers, if anystatic UpdateManagergetSingleton(Core core) booleanvoidregisterUpdatableComponent(UpdatableComponent component, boolean mandatory) All updateable components must register in order to receive update check eventsprotected voidremoveInstaller(UpdateInstaller installer) voidvoidverifyData(Update update, InputStream is, boolean force)
-
Field Details
-
singleton
-
core
-
checkers
-
components
-
listeners
-
verification_listeners
-
installers
-
this_mon
-
-
Constructor Details
-
UpdateManagerImpl
-
-
Method Details
-
getSingleton
-
getCore
-
registerUpdatableComponent
Description copied from interface:UpdateManagerAll updateable components must register in order to receive update check events- Specified by:
registerUpdatableComponentin interfaceUpdateManager- Parameters:
component-mandatory- indicates that this component must successfully complete checking for any overall update check to complete
-
getCheckInstances
- Specified by:
getCheckInstancesin interfaceUpdateManager
-
createUpdateCheckInstance
Description copied from interface:UpdateManagercreates an update check instance with currently registered updatable components Default check type is "UCI_UPDATE"- Specified by:
createUpdateCheckInstancein interfaceUpdateManager- Returns:
-
createUpdateCheckInstance
Description copied from interface:UpdateManagercreates an update check instance with currently registered updatable components- Specified by:
createUpdateCheckInstancein interfaceUpdateManager- Parameters:
type- see UpdateCheckInstance.UCI_xxname- name of the update instance
-
createEmptyUpdateCheckInstance
Description copied from interface:UpdateManagercreates an update check instance with no attached updateable components (as opposed to automatically including all registered- Specified by:
createEmptyUpdateCheckInstancein interfaceUpdateManager- Parameters:
type- see UpdateCheckInstance.UCI_xxname- name of the update instance- Returns:
-
createEmptyUpdateCheckInstance
public UpdateCheckInstanceImpl createEmptyUpdateCheckInstance(int type, String name, boolean low_noise) -
createInstaller
Description copied from interface:UpdateManagercreate a stand alone update installer. you will need to restart Azureus for it to be installed- Specified by:
createInstallerin interfaceUpdateManager- Returns:
- Throws:
UpdateException
-
getInstallers
Description copied from interface:UpdateManagerreturns the currently declared installers, if any- Specified by:
getInstallersin interfaceUpdateManager- Returns:
-
hasPendingInstalls
public boolean hasPendingInstalls()- Specified by:
hasPendingInstallsin interfaceUpdateManager
-
cancelled
- Specified by:
cancelledin interfaceUpdateCheckInstanceListener
-
complete
- Specified by:
completein interfaceUpdateCheckInstanceListener
-
removeInstaller
-
getInstallDir
- Specified by:
getInstallDirin interfaceUpdateManager
-
getUserDir
- Specified by:
getUserDirin interfaceUpdateManager
-
applyUpdates
Description copied from interface:UpdateManagerapplies any updates and stops or restarts Azureus- Specified by:
applyUpdatesin interfaceUpdateManager- Throws:
UpdateException
-
verifyData
- Throws:
UpdateException
-
addVerificationListener
- Specified by:
addVerificationListenerin interfaceUpdateManager
-
removeVerificationListener
- Specified by:
removeVerificationListenerin interfaceUpdateManager
-
addListener
- Specified by:
addListenerin interfaceUpdateManager
-
removeListener
- Specified by:
removeListenerin interfaceUpdateManager
-