|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.pluginsimpl.local.update.UpdateManagerImpl
public class UpdateManagerImpl
| Field Summary | |
|---|---|
protected AEMonitor |
this_mon
|
| Constructor Summary | |
|---|---|
protected |
UpdateManagerImpl(AzureusCore _azureus_core)
|
| Method Summary | |
|---|---|
void |
addListener(UpdateManagerListener l)
|
void |
addVerificationListener(UpdateManagerVerificationListener l)
|
void |
applyUpdates(boolean restart_after)
applies any updates and stops or restarts Azureus |
void |
cancelled(UpdateCheckInstance instance)
|
void |
complete(UpdateCheckInstance instance)
|
UpdateCheckInstanceImpl |
createEmptyUpdateCheckInstance(int type,
java.lang.String name)
creates an update check instance with no attached updateable components (as opposed to automatically including all registered |
UpdateCheckInstanceImpl |
createEmptyUpdateCheckInstance(int type,
java.lang.String name,
boolean low_noise)
|
UpdateInstaller |
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 type,
java.lang.String name)
creates an update check instance with currently registered updatable components |
UpdateCheckInstance[] |
getCheckInstances()
|
protected AzureusCore |
getCore()
|
java.lang.String |
getInstallDir()
|
UpdateInstaller[] |
getInstallers()
returns the currently declared installers, if any |
static UpdateManager |
getSingleton(AzureusCore core)
|
java.lang.String |
getUserDir()
|
void |
registerUpdatableComponent(UpdatableComponent component,
boolean mandatory)
All updateable components must register in order to receive update check events |
protected void |
removeInstaller(UpdateInstaller installer)
|
void |
removeListener(UpdateManagerListener l)
|
void |
removeVerificationListener(UpdateManagerVerificationListener l)
|
void |
restart()
restart azureus after applying any updates |
java.io.InputStream |
verifyData(Update update,
java.io.InputStream is,
boolean force)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AEMonitor this_mon
| Constructor Detail |
|---|
protected UpdateManagerImpl(AzureusCore _azureus_core)
| Method Detail |
|---|
public static UpdateManager getSingleton(AzureusCore core)
protected AzureusCore getCore()
public void registerUpdatableComponent(UpdatableComponent component,
boolean mandatory)
UpdateManager
registerUpdatableComponent in interface UpdateManagermandatory - indicates that this component must successfully complete checking
for any overall update check to completepublic UpdateCheckInstance[] getCheckInstances()
getCheckInstances in interface UpdateManagerpublic UpdateCheckInstance createUpdateCheckInstance()
UpdateManager
createUpdateCheckInstance in interface UpdateManager
public UpdateCheckInstance createUpdateCheckInstance(int type,
java.lang.String name)
UpdateManager
createUpdateCheckInstance in interface UpdateManagertype - see UpdateCheckInstance.UCI_xxname - name of the update instance
public UpdateCheckInstanceImpl createEmptyUpdateCheckInstance(int type,
java.lang.String name)
UpdateManager
createEmptyUpdateCheckInstance in interface UpdateManagertype - see UpdateCheckInstance.UCI_xxname - name of the update instance
public UpdateCheckInstanceImpl createEmptyUpdateCheckInstance(int type,
java.lang.String name,
boolean low_noise)
public UpdateInstaller createInstaller()
throws UpdateException
UpdateManager
createInstaller in interface UpdateManagerUpdateExceptionpublic UpdateInstaller[] getInstallers()
UpdateManager
getInstallers in interface UpdateManagerpublic void cancelled(UpdateCheckInstance instance)
cancelled in interface UpdateCheckInstanceListenerpublic void complete(UpdateCheckInstance instance)
complete in interface UpdateCheckInstanceListenerprotected void removeInstaller(UpdateInstaller installer)
public java.lang.String getInstallDir()
getInstallDir in interface UpdateManagerpublic java.lang.String getUserDir()
getUserDir in interface UpdateManager
public void restart()
throws UpdateException
UpdateManager
restart in interface UpdateManagerUpdateException
public void applyUpdates(boolean restart_after)
throws UpdateException
UpdateManager
applyUpdates in interface UpdateManagerUpdateException
public java.io.InputStream verifyData(Update update,
java.io.InputStream is,
boolean force)
throws UpdateException
UpdateExceptionpublic void addVerificationListener(UpdateManagerVerificationListener l)
addVerificationListener in interface UpdateManagerpublic void removeVerificationListener(UpdateManagerVerificationListener l)
removeVerificationListener in interface UpdateManagerpublic void addListener(UpdateManagerListener l)
addListener in interface UpdateManagerpublic void removeListener(UpdateManagerListener l)
removeListener in interface UpdateManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||