Package com.biglybt.pif.update
Interface UpdateChecker
- All Known Implementing Classes:
UpdateCheckerImpl
public interface UpdateChecker
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addUpdate
(String name, String[] description, String old_version, String new_version, ResourceDownloader[] downloaders, int restart_required) Add an update with a number of downloadersaddUpdate
(String name, String[] description, String old_version, String new_version, ResourceDownloader downloader, int restart_required) Add an update with a single downloadervoid
Indicate that update checking is complete and that any updates required have been added by the addUpdate methodsFor updates that require a stop, update-action and then start you create an installer.boolean
void
void
void
reportProgress
(String str) report a progress string to registered listenersvoid
Indicates that the update check failed.
-
Method Details
-
getComponent
UpdatableComponent getComponent() -
getCheckInstance
UpdateCheckInstance getCheckInstance() -
addUpdate
Update addUpdate(String name, String[] description, String old_version, String new_version, ResourceDownloader downloader, int restart_required) Add an update with a single downloader- Parameters:
mandatory
- indicates that in a group of updates this one must succeed
-
addUpdate
Update addUpdate(String name, String[] description, String old_version, String new_version, ResourceDownloader[] downloaders, int restart_required) Add an update with a number of downloaders -
createInstaller
For updates that require a stop, update-action and then start you create an installer. This allows the specification of actions such as the replacement of a DLL- Returns:
- Throws:
UpdateException
-
completed
void completed()Indicate that update checking is complete and that any updates required have been added by the addUpdate methods -
setFailed
Indicates that the update check failed. Of particular importance for mandatory components (e.g. AZ core) as failure of a mandatory one causes all other updates to be aborted -
getFailed
boolean getFailed() -
getFailureReason
Throwable getFailureReason() -
reportProgress
report a progress string to registered listeners- Parameters:
str
-
-
addListener
-
removeListener
-
addProgressListener
-
removeProgressListener
-