public abstract class CheckUpdatesRunnable
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
CheckUpdatesRunnable(java.util.List updateCenters) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
finished(java.util.Collection<UpdateInfo> updates)
An update with all satisified dependencies was found.
|
protected UpdateCenterMonitor |
getMonitor() |
java.util.Set<Version> |
getValidNightlies() |
boolean |
isRunning() |
void |
run() |
void |
setMonitor(UpdateCenterMonitor monitor) |
protected abstract void |
stopped()
Checking for updates was stopped.
|
static boolean |
testCompatibleVersion(UpdateInfo update,
java.lang.String depId,
Version version) |
protected abstract void |
updateCenterError(UpdateCenter center,
java.lang.Throwable t)
An error occurred retrieving the list of updates from one of the
update centers.
|
public final void setMonitor(UpdateCenterMonitor monitor)
protected final UpdateCenterMonitor getMonitor()
public void run()
run
in interface java.lang.Runnable
public static boolean testCompatibleVersion(UpdateInfo update, java.lang.String depId, Version version)
public boolean isRunning()
protected abstract void updateCenterError(UpdateCenter center, java.lang.Throwable t)
center
- the update center from which a list of updates could not
be retrieved.t
- the error that occurred.protected abstract void finished(java.util.Collection<UpdateInfo> updates)
updates
- all found updates.protected abstract void stopped()
public java.util.Set<Version> getValidNightlies()