|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.update.UpdateCheckerImpl
public class UpdateCheckerImpl
Field Summary | |
---|---|
protected boolean |
cancelled
|
protected UpdateCheckInstanceImpl |
check_instance
|
protected boolean |
completed
|
protected UpdatableComponentImpl |
component
|
protected boolean |
failed
|
protected List |
listeners
|
protected List |
progress_listeners
|
protected boolean |
sem_released
|
protected AESemaphore |
semaphore
|
protected AEMonitor |
this_mon
|
Constructor Summary | |
---|---|
protected |
UpdateCheckerImpl(UpdateCheckInstanceImpl _check_instance,
UpdatableComponentImpl _component,
AESemaphore _sem)
|
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 |
protected void |
cancel()
|
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()
|
protected boolean |
getFailed()
|
void |
removeListener(UpdateCheckerListener l)
|
void |
removeProgressListener(UpdateProgressListener l)
|
void |
reportProgress(String str)
report a progress string to registered listeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected UpdateCheckInstanceImpl check_instance
protected UpdatableComponentImpl component
protected AESemaphore semaphore
protected boolean completed
protected boolean failed
protected boolean cancelled
protected boolean sem_released
protected List listeners
protected List progress_listeners
protected AEMonitor this_mon
Constructor Detail |
---|
protected UpdateCheckerImpl(UpdateCheckInstanceImpl _check_instance, UpdatableComponentImpl _component, AESemaphore _sem)
Method Detail |
---|
public UpdateCheckInstance getCheckInstance()
getCheckInstance
in interface UpdateChecker
public Update addUpdate(String name, String[] description, String old_version, String new_version, ResourceDownloader downloader, int restart_required)
UpdateChecker
addUpdate
in interface UpdateChecker
public Update addUpdate(String name, String[] description, String old_version, String new_version, ResourceDownloader[] downloaders, int restart_required)
UpdateChecker
addUpdate
in interface UpdateChecker
public UpdateInstaller createInstaller() throws UpdateException
UpdateChecker
createInstaller
in interface UpdateChecker
UpdateException
public UpdatableComponent getComponent()
getComponent
in interface UpdateChecker
public void completed()
UpdateChecker
completed
in interface UpdateChecker
public void failed()
UpdateChecker
failed
in interface UpdateChecker
protected boolean getFailed()
protected void cancel()
public void addListener(UpdateCheckerListener l)
addListener
in interface UpdateChecker
public void removeListener(UpdateCheckerListener l)
removeListener
in interface UpdateChecker
public void reportProgress(String str)
UpdateChecker
reportProgress
in interface UpdateChecker
public void addProgressListener(UpdateProgressListener l)
addProgressListener
in interface UpdateChecker
public void removeProgressListener(UpdateProgressListener l)
removeProgressListener
in interface UpdateChecker
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |