|
|||||||||
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.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 UpdateManager
mandatory
- indicates that this component must successfully complete checking
for any overall update check to completepublic UpdateCheckInstance[] getCheckInstances()
getCheckInstances
in interface UpdateManager
public UpdateCheckInstance createUpdateCheckInstance()
UpdateManager
createUpdateCheckInstance
in interface UpdateManager
public UpdateCheckInstance createUpdateCheckInstance(int type, java.lang.String name)
UpdateManager
createUpdateCheckInstance
in interface UpdateManager
type
- see UpdateCheckInstance.UCI_xxname
- name of the update instancepublic UpdateCheckInstanceImpl createEmptyUpdateCheckInstance(int type, java.lang.String name)
UpdateManager
createEmptyUpdateCheckInstance
in interface UpdateManager
type
- 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 UpdateManager
UpdateException
public UpdateInstaller[] getInstallers()
UpdateManager
getInstallers
in interface UpdateManager
public void cancelled(UpdateCheckInstance instance)
cancelled
in interface UpdateCheckInstanceListener
public void complete(UpdateCheckInstance instance)
complete
in interface UpdateCheckInstanceListener
protected void removeInstaller(UpdateInstaller installer)
public java.lang.String getInstallDir()
getInstallDir
in interface UpdateManager
public java.lang.String getUserDir()
getUserDir
in interface UpdateManager
public void restart() throws UpdateException
UpdateManager
restart
in interface UpdateManager
UpdateException
public void applyUpdates(boolean restart_after) throws UpdateException
UpdateManager
applyUpdates
in interface UpdateManager
UpdateException
public java.io.InputStream verifyData(Update update, java.io.InputStream is, boolean force) throws UpdateException
UpdateException
public void addVerificationListener(UpdateManagerVerificationListener l)
addVerificationListener
in interface UpdateManager
public void removeVerificationListener(UpdateManagerVerificationListener l)
removeVerificationListener
in interface UpdateManager
public void addListener(UpdateManagerListener l)
addListener
in interface UpdateManager
public void removeListener(UpdateManagerListener l)
removeListener
in interface UpdateManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |