org.gudy.azureus2.pluginsimpl.local.update
Class UpdateCheckInstanceImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.update.UpdateCheckInstanceImpl
- All Implemented Interfaces:
- UpdateCheckInstance
public class UpdateCheckInstanceImpl
- extends java.lang.Object
- implements UpdateCheckInstance
Fields inherited from interface org.gudy.azureus2.plugins.update.UpdateCheckInstance |
PT_CLOSE_OR_RESTART_ALREADY_IN_PROGRESS, PT_UI_DISABLE_ON_SUCCESS_SLIDEY, PT_UI_PARENT_SWT_COMPOSITE, PT_UI_STYLE, PT_UI_STYLE_DEFAULT, PT_UI_STYLE_NONE, PT_UI_STYLE_SIMPLE, PT_UNINSTALL_RESTART_REQUIRED, UCI_INSTALL, UCI_UNINSTALL, UCI_UPDATE |
Method Summary |
void |
addDecisionListener(UpdateManagerDecisionListener l)
|
void |
addListener(UpdateCheckInstanceListener l)
|
void |
addUpdatableComponent(UpdatableComponent component,
boolean mandatory)
Add a further updatable component to this instance. |
protected UpdateImpl |
addUpdate(UpdatableComponentImpl comp,
java.lang.String update_name,
java.lang.String[] desc,
java.lang.String old_version,
java.lang.String new_version,
ResourceDownloader[] downloaders,
int restart_required)
|
void |
cancel()
|
UpdateInstaller |
createInstaller()
|
UpdateChecker[] |
getCheckers()
|
protected java.lang.Object |
getDecision(Update update,
int decision_type,
java.lang.String decision_name,
java.lang.String decision_description,
java.lang.Object decision_data)
|
UpdateManager |
getManager()
Access to the update manager |
java.lang.String |
getName()
returns the name supplied when the instance was created (or "" if it wasn't) |
java.lang.Object |
getProperty(int property_name)
|
int |
getType()
returns one of the above UCI_ constants |
Update[] |
getUpdates()
|
boolean |
isAutomatic()
|
boolean |
isCancelled()
|
boolean |
isCompleteOrCancelled()
|
boolean |
isLowNoise()
|
void |
removeDecisionListener(UpdateManagerDecisionListener l)
|
void |
removeListener(UpdateCheckInstanceListener l)
|
void |
setAutomatic(boolean a)
|
void |
setLowNoise(boolean a)
|
void |
setProperty(int property_name,
java.lang.Object value)
|
void |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
this_mon
protected AEMonitor this_mon
UpdateCheckInstanceImpl
protected UpdateCheckInstanceImpl(UpdateManager _manager,
int _check_type,
java.lang.String _name,
UpdatableComponentImpl[] _components)
getType
public int getType()
- Description copied from interface:
UpdateCheckInstance
- returns one of the above UCI_ constants
- Specified by:
getType
in interface UpdateCheckInstance
- Returns:
getName
public java.lang.String getName()
- Description copied from interface:
UpdateCheckInstance
- returns the name supplied when the instance was created (or "" if it wasn't)
- Specified by:
getName
in interface UpdateCheckInstance
- Returns:
addUpdatableComponent
public void addUpdatableComponent(UpdatableComponent component,
boolean mandatory)
- Description copied from interface:
UpdateCheckInstance
- Add a further updatable component to this instance. Must be called before
the check process is started
- Specified by:
addUpdatableComponent
in interface UpdateCheckInstance
setAutomatic
public void setAutomatic(boolean a)
- Specified by:
setAutomatic
in interface UpdateCheckInstance
isAutomatic
public boolean isAutomatic()
- Specified by:
isAutomatic
in interface UpdateCheckInstance
setLowNoise
public void setLowNoise(boolean a)
- Specified by:
setLowNoise
in interface UpdateCheckInstance
isLowNoise
public boolean isLowNoise()
- Specified by:
isLowNoise
in interface UpdateCheckInstance
getProperty
public java.lang.Object getProperty(int property_name)
- Specified by:
getProperty
in interface UpdateCheckInstance
setProperty
public void setProperty(int property_name,
java.lang.Object value)
- Specified by:
setProperty
in interface UpdateCheckInstance
start
public void start()
- Specified by:
start
in interface UpdateCheckInstance
addUpdate
protected UpdateImpl addUpdate(UpdatableComponentImpl comp,
java.lang.String update_name,
java.lang.String[] desc,
java.lang.String old_version,
java.lang.String new_version,
ResourceDownloader[] downloaders,
int restart_required)
getUpdates
public Update[] getUpdates()
- Specified by:
getUpdates
in interface UpdateCheckInstance
getCheckers
public UpdateChecker[] getCheckers()
- Specified by:
getCheckers
in interface UpdateCheckInstance
createInstaller
public UpdateInstaller createInstaller()
throws UpdateException
- Specified by:
createInstaller
in interface UpdateCheckInstance
- Throws:
UpdateException
isCompleteOrCancelled
public boolean isCompleteOrCancelled()
- Specified by:
isCompleteOrCancelled
in interface UpdateCheckInstance
cancel
public void cancel()
- Specified by:
cancel
in interface UpdateCheckInstance
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interface UpdateCheckInstance
getManager
public UpdateManager getManager()
- Description copied from interface:
UpdateCheckInstance
- Access to the update manager
- Specified by:
getManager
in interface UpdateCheckInstance
- Returns:
getDecision
protected java.lang.Object getDecision(Update update,
int decision_type,
java.lang.String decision_name,
java.lang.String decision_description,
java.lang.Object decision_data)
addDecisionListener
public void addDecisionListener(UpdateManagerDecisionListener l)
- Specified by:
addDecisionListener
in interface UpdateCheckInstance
removeDecisionListener
public void removeDecisionListener(UpdateManagerDecisionListener l)
- Specified by:
removeDecisionListener
in interface UpdateCheckInstance
addListener
public void addListener(UpdateCheckInstanceListener l)
- Specified by:
addListener
in interface UpdateCheckInstance
removeListener
public void removeListener(UpdateCheckInstanceListener l)
- Specified by:
removeListener
in interface UpdateCheckInstance