Package com.biglybt.pif.update
Interface UpdateManager
-
- All Known Implementing Classes:
UpdateManagerImpl
public interface UpdateManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(UpdateManagerListener l)
void
addVerificationListener(UpdateManagerVerificationListener l)
void
applyUpdates(boolean restart_after)
applies any updates and stops or restarts AzureusUpdateCheckInstance
createEmptyUpdateCheckInstance(int check_type, java.lang.String name)
creates an update check instance with no attached updateable components (as opposed to automatically including all registeredUpdateInstaller
createInstaller()
create a stand alone update installer.UpdateCheckInstance
createUpdateCheckInstance()
creates an update check instance with currently registered updatable components Default check type is "UCI_UPDATE"UpdateCheckInstance
createUpdateCheckInstance(int check_type, java.lang.String name)
creates an update check instance with currently registered updatable componentsUpdateCheckInstance[]
getCheckInstances()
java.lang.String
getInstallDir()
UpdateInstaller[]
getInstallers()
returns the currently declared installers, if anyjava.lang.String
getUserDir()
boolean
hasPendingInstalls()
void
registerUpdatableComponent(UpdatableComponent component, boolean mandatory)
All updateable components must register in order to receive update check eventsvoid
removeListener(UpdateManagerListener l)
void
removeVerificationListener(UpdateManagerVerificationListener l)
-
-
-
Method Detail
-
registerUpdatableComponent
void registerUpdatableComponent(UpdatableComponent component, boolean mandatory)
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
UpdateCheckInstance createUpdateCheckInstance(int check_type, java.lang.String name)
creates an update check instance with currently registered updatable components- Parameters:
check_type
- see UpdateCheckInstance.UCI_xxname
- name of the update instance
-
createEmptyUpdateCheckInstance
UpdateCheckInstance createEmptyUpdateCheckInstance(int check_type, java.lang.String name)
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
UpdateInstaller createInstaller() throws UpdateException
create a stand alone update installer. you will need to restart Azureus for it to be installed- Returns:
- Throws:
UpdateException
-
hasPendingInstalls
boolean hasPendingInstalls()
-
getInstallDir
java.lang.String getInstallDir()
-
getUserDir
java.lang.String getUserDir()
-
getInstallers
UpdateInstaller[] getInstallers()
returns the currently declared installers, if any- Returns:
-
applyUpdates
void applyUpdates(boolean restart_after) throws UpdateException
applies any updates and stops or restarts Azureus- Throws:
UpdateException
-
addVerificationListener
void addVerificationListener(UpdateManagerVerificationListener l)
-
removeVerificationListener
void removeVerificationListener(UpdateManagerVerificationListener l)
-
addListener
void addListener(UpdateManagerListener l)
-
removeListener
void removeListener(UpdateManagerListener l)
-
-