Class UpdateCheckInstanceImpl
java.lang.Object
com.biglybt.pifimpl.local.update.UpdateCheckInstanceImpl
- All Implemented Interfaces:
UpdateCheckInstance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static UpdateCheckInstanceImplprivate booleanprivate booleanprivate intprivate UpdateCheckerImpl[]private booleanprivate UpdatableComponentImpl[]private List<UpdateManagerDecisionListener> private List<UpdateCheckInstanceListener> private static final LogIDsprivate booleanprivate UpdateManagerprivate Stringprivate AESemaphoreprotected AEMonitorprivate List<UpdateImpl> Fields inherited from interface UpdateCheckInstance
PT_CLOSE_OR_RESTART_ALREADY_IN_PROGRESS, PT_RESOURCE_OVERRIDES, PT_UI_DISABLE_ON_SUCCESS_SLIDEY, PT_UI_EXTRA_MESSAGE, 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUpdateCheckInstanceImpl(UpdateManager _manager, int _check_type, String _name, UpdatableComponentImpl[] _components) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddUpdatableComponent(UpdatableComponent component, boolean mandatory) Add a further updatable component to this instance.protected UpdateImpladdUpdate(UpdatableComponentImpl comp, String update_name, String[] desc, String old_version, String new_version, ResourceDownloader[] downloaders, int restart_required) voidcancel()protected ObjectgetDecision(Update update, int decision_type, String decision_name, String decision_description, Object decision_data) Access to the update managergetName()returns the name supplied when the instance was created (or "" if it wasn't)getProperty(int property_name) intgetType()returns one of the above UCI_ constantsUpdate[]booleanbooleanbooleanbooleanvoidvoidvoidsetAutomatic(boolean a) voidsetLowNoise(boolean a) voidsetProperty(int property_name, Object value) voidstart()private void
-
Field Details
-
LOGID
-
active_checker
-
listeners
-
updates
-
decision_listeners
-
sem
-
manager
-
check_type
private int check_type -
name
-
components
-
checkers
-
completed
private boolean completed -
cancelled
private boolean cancelled -
automatic
private boolean automatic -
low_noise
private boolean low_noise -
this_mon
-
properties
-
-
Constructor Details
-
UpdateCheckInstanceImpl
protected UpdateCheckInstanceImpl(UpdateManager _manager, int _check_type, String _name, UpdatableComponentImpl[] _components)
-
-
Method Details
-
getType
public int getType()Description copied from interface:UpdateCheckInstancereturns one of the above UCI_ constants- Specified by:
getTypein interfaceUpdateCheckInstance- Returns:
-
getName
Description copied from interface:UpdateCheckInstancereturns the name supplied when the instance was created (or "" if it wasn't)- Specified by:
getNamein interfaceUpdateCheckInstance- Returns:
-
addUpdatableComponent
Description copied from interface:UpdateCheckInstanceAdd a further updatable component to this instance. Must be called before the check process is started- Specified by:
addUpdatableComponentin interfaceUpdateCheckInstance- Parameters:
component-mandatory-
-
setAutomatic
public void setAutomatic(boolean a) - Specified by:
setAutomaticin interfaceUpdateCheckInstance
-
isAutomatic
public boolean isAutomatic()- Specified by:
isAutomaticin interfaceUpdateCheckInstance
-
setLowNoise
public void setLowNoise(boolean a) - Specified by:
setLowNoisein interfaceUpdateCheckInstance
-
isLowNoise
public boolean isLowNoise()- Specified by:
isLowNoisein interfaceUpdateCheckInstance
-
getProperty
- Specified by:
getPropertyin interfaceUpdateCheckInstance
-
setProperty
- Specified by:
setPropertyin interfaceUpdateCheckInstance
-
start
public void start()- Specified by:
startin interfaceUpdateCheckInstance
-
startSupport
private void startSupport() -
addUpdate
protected UpdateImpl addUpdate(UpdatableComponentImpl comp, String update_name, String[] desc, String old_version, String new_version, ResourceDownloader[] downloaders, int restart_required) -
getUpdates
- Specified by:
getUpdatesin interfaceUpdateCheckInstance
-
getCheckers
- Specified by:
getCheckersin interfaceUpdateCheckInstance
-
createInstaller
- Specified by:
createInstallerin interfaceUpdateCheckInstance- Throws:
UpdateException
-
isCompleteOrCancelled
public boolean isCompleteOrCancelled()- Specified by:
isCompleteOrCancelledin interfaceUpdateCheckInstance
-
cancel
public void cancel()- Specified by:
cancelin interfaceUpdateCheckInstance
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceUpdateCheckInstance
-
getManager
Description copied from interface:UpdateCheckInstanceAccess to the update manager- Specified by:
getManagerin interfaceUpdateCheckInstance- Returns:
-
getDecision
-
addDecisionListener
- Specified by:
addDecisionListenerin interfaceUpdateCheckInstance
-
removeDecisionListener
- Specified by:
removeDecisionListenerin interfaceUpdateCheckInstance
-
addListener
- Specified by:
addListenerin interfaceUpdateCheckInstance
-
removeListener
- Specified by:
removeListenerin interfaceUpdateCheckInstance
-