Package com.biglybt.pifimpl.local.update
Class UpdateCheckInstanceImpl
java.lang.Object
com.biglybt.pifimpl.local.update.UpdateCheckInstanceImpl
- All Implemented Interfaces:
UpdateCheckInstance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static UpdateCheckInstanceImpl
private boolean
private boolean
private int
private UpdateCheckerImpl[]
private boolean
private UpdatableComponentImpl[]
private List<UpdateManagerDecisionListener>
private List<UpdateCheckInstanceListener>
private static final LogIDs
private boolean
private UpdateManager
private String
private AESemaphore
protected AEMonitor
private List<UpdateImpl>
Fields inherited from interface com.biglybt.pif.update.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
ConstructorsModifierConstructorDescriptionprotected
UpdateCheckInstanceImpl
(UpdateManager _manager, int _check_type, String _name, UpdatableComponentImpl[] _components) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addUpdatableComponent
(UpdatableComponent component, boolean mandatory) Add a further updatable component to this instance.protected UpdateImpl
addUpdate
(UpdatableComponentImpl comp, String update_name, String[] desc, String old_version, String new_version, ResourceDownloader[] downloaders, int restart_required) void
cancel()
protected Object
getDecision
(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) int
getType()
returns one of the above UCI_ constantsUpdate[]
boolean
boolean
boolean
boolean
void
void
void
setAutomatic
(boolean a) void
setLowNoise
(boolean a) void
setProperty
(int property_name, Object value) void
start()
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:UpdateCheckInstance
returns one of the above UCI_ constants- Specified by:
getType
in interfaceUpdateCheckInstance
- Returns:
-
getName
Description copied from interface:UpdateCheckInstance
returns the name supplied when the instance was created (or "" if it wasn't)- Specified by:
getName
in interfaceUpdateCheckInstance
- Returns:
-
addUpdatableComponent
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 interfaceUpdateCheckInstance
-
setAutomatic
public void setAutomatic(boolean a) - Specified by:
setAutomatic
in interfaceUpdateCheckInstance
-
isAutomatic
public boolean isAutomatic()- Specified by:
isAutomatic
in interfaceUpdateCheckInstance
-
setLowNoise
public void setLowNoise(boolean a) - Specified by:
setLowNoise
in interfaceUpdateCheckInstance
-
isLowNoise
public boolean isLowNoise()- Specified by:
isLowNoise
in interfaceUpdateCheckInstance
-
getProperty
- Specified by:
getProperty
in interfaceUpdateCheckInstance
-
setProperty
- Specified by:
setProperty
in interfaceUpdateCheckInstance
-
start
public void start()- Specified by:
start
in 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:
getUpdates
in interfaceUpdateCheckInstance
-
getCheckers
- Specified by:
getCheckers
in interfaceUpdateCheckInstance
-
createInstaller
- Specified by:
createInstaller
in interfaceUpdateCheckInstance
- Throws:
UpdateException
-
isCompleteOrCancelled
public boolean isCompleteOrCancelled()- Specified by:
isCompleteOrCancelled
in interfaceUpdateCheckInstance
-
cancel
public void cancel()- Specified by:
cancel
in interfaceUpdateCheckInstance
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceUpdateCheckInstance
-
getManager
Description copied from interface:UpdateCheckInstance
Access to the update manager- Specified by:
getManager
in interfaceUpdateCheckInstance
- Returns:
-
getDecision
-
addDecisionListener
- Specified by:
addDecisionListener
in interfaceUpdateCheckInstance
-
removeDecisionListener
- Specified by:
removeDecisionListener
in interfaceUpdateCheckInstance
-
addListener
- Specified by:
addListener
in interfaceUpdateCheckInstance
-
removeListener
- Specified by:
removeListener
in interfaceUpdateCheckInstance
-