|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UpdateChecker
Method Summary | |
---|---|
void |
addListener(UpdateCheckerListener l)
|
void |
addProgressListener(UpdateProgressListener l)
|
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 |
Update |
addUpdate(String name,
String[] description,
String old_version,
String new_version,
ResourceDownloader downloader,
int restart_required)
Add an update with a single downloader |
void |
completed()
Indicate that update checking is complete and that any updates required have been added by the addUpdate methods |
UpdateInstaller |
createInstaller()
For updates that require a stop, update-action and then start you create an installer. |
void |
failed()
Indicates that the update check failed. |
UpdateCheckInstance |
getCheckInstance()
|
UpdatableComponent |
getComponent()
|
void |
removeListener(UpdateCheckerListener l)
|
void |
removeProgressListener(UpdateProgressListener l)
|
void |
reportProgress(String str)
report a progress string to registered listeners |
Method Detail |
---|
UpdatableComponent getComponent()
UpdateCheckInstance getCheckInstance()
Update addUpdate(String name, String[] description, String old_version, String new_version, ResourceDownloader downloader, int restart_required)
mandatory
- indicates that in a group of updates this one must succeedUpdate addUpdate(String name, String[] description, String old_version, String new_version, ResourceDownloader[] downloaders, int restart_required)
UpdateInstaller createInstaller() throws UpdateException
UpdateException
void completed()
void failed()
void reportProgress(String str)
str
- void addListener(UpdateCheckerListener l)
void removeListener(UpdateCheckerListener l)
void addProgressListener(UpdateProgressListener l)
void removeProgressListener(UpdateProgressListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |