Package com.biglybt.pifimpl.local.update
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 Core
private List
<UpdateInstaller> private List
private static UpdateManagerImpl
protected AEMonitor
private List
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
applyUpdates
(boolean restart_after) applies any updates and stops or restarts Azureusvoid
cancelled
(UpdateCheckInstance instance) void
complete
(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 Core
getCore()
returns the currently declared installers, if anystatic UpdateManager
getSingleton
(Core core) boolean
void
registerUpdatableComponent
(UpdatableComponent component, boolean mandatory) All updateable components must register in order to receive update check eventsprotected void
removeInstaller
(UpdateInstaller installer) void
void
verifyData
(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:UpdateManager
All updateable components must register in order to receive update check events- Specified by:
registerUpdatableComponent
in interfaceUpdateManager
- Parameters:
component
-mandatory
- indicates that this component must successfully complete checking for any overall update check to complete
-
getCheckInstances
- Specified by:
getCheckInstances
in interfaceUpdateManager
-
createUpdateCheckInstance
Description copied from interface:UpdateManager
creates an update check instance with currently registered updatable components Default check type is "UCI_UPDATE"- Specified by:
createUpdateCheckInstance
in interfaceUpdateManager
- Returns:
-
createUpdateCheckInstance
Description copied from interface:UpdateManager
creates an update check instance with currently registered updatable components- Specified by:
createUpdateCheckInstance
in interfaceUpdateManager
- Parameters:
type
- see UpdateCheckInstance.UCI_xxname
- name of the update instance
-
createEmptyUpdateCheckInstance
Description copied from interface:UpdateManager
creates an update check instance with no attached updateable components (as opposed to automatically including all registered- Specified by:
createEmptyUpdateCheckInstance
in 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:UpdateManager
create a stand alone update installer. you will need to restart Azureus for it to be installed- Specified by:
createInstaller
in interfaceUpdateManager
- Returns:
- Throws:
UpdateException
-
getInstallers
Description copied from interface:UpdateManager
returns the currently declared installers, if any- Specified by:
getInstallers
in interfaceUpdateManager
- Returns:
-
hasPendingInstalls
public boolean hasPendingInstalls()- Specified by:
hasPendingInstalls
in interfaceUpdateManager
-
cancelled
- Specified by:
cancelled
in interfaceUpdateCheckInstanceListener
-
complete
- Specified by:
complete
in interfaceUpdateCheckInstanceListener
-
removeInstaller
-
getInstallDir
- Specified by:
getInstallDir
in interfaceUpdateManager
-
getUserDir
- Specified by:
getUserDir
in interfaceUpdateManager
-
applyUpdates
Description copied from interface:UpdateManager
applies any updates and stops or restarts Azureus- Specified by:
applyUpdates
in interfaceUpdateManager
- Throws:
UpdateException
-
verifyData
- Throws:
UpdateException
-
addVerificationListener
- Specified by:
addVerificationListener
in interfaceUpdateManager
-
removeVerificationListener
- Specified by:
removeVerificationListener
in interfaceUpdateManager
-
addListener
- Specified by:
addListener
in interfaceUpdateManager
-
removeListener
- Specified by:
removeListener
in interfaceUpdateManager
-