Interface UpdateChecker
- All Known Implementing Classes:
UpdateCheckerImpl
public interface UpdateChecker
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddUpdate(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 downloadervoidIndicate 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.booleanvoidvoidvoidreportProgress(String str) report a progress string to registered listenersvoidIndicates that the update check failed.
-
Method Details
-
getComponent
UpdatableComponent getComponent() -
getCheckInstance
UpdateCheckInstance getCheckInstance() -
addUpdate
-
addUpdate
-
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
-
addListener
-
removeListener
-
addProgressListener
-
removeProgressListener
-