Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.ideimpl.webupdate
Class CheckUpdatesRunnable

java.lang.Object
  extended by oracle.ideimpl.webupdate.CheckUpdatesRunnable

All Implemented Interfaces:
java.lang.Runnable

public abstract class CheckUpdatesRunnable
extends java.lang.Object
implements java.lang.Runnable

Runnable that checks one or more update centers for new updates. You should subclass this runnable and handle the detection of a new update by overriding the updateFound() method (this method is guaranteed to be executed on the AWT event thread). The runnable handles dependencies. If an update is found that requires other extensions, it will check to see whether those extensions are installed or have been found in an update center. If the dependencies are not satisfied, the runnable remembers the updates in case a later update is found that satisfies the dependency.


Constructor Summary
CheckUpdatesRunnable(java.util.List updateCenters)
           

 

Method Summary
protected abstract  void finished(java.util.Collection updates)
          An update with all satisified dependencies was found.
protected  UpdateCenterMonitor getMonitor()
           
 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.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

CheckUpdatesRunnable

public CheckUpdatesRunnable(java.util.List updateCenters)

Method Detail

setMonitor

public final void setMonitor(UpdateCenterMonitor monitor)

getMonitor

protected final UpdateCenterMonitor getMonitor()

run

public void run()
Specified by:
run in interface java.lang.Runnable

testCompatibleVersion

public static boolean testCompatibleVersion(UpdateInfo update,
                                            java.lang.String depId,
                                            Version version)

isRunning

public boolean isRunning()

updateCenterError

protected abstract void updateCenterError(UpdateCenter center,
                                          java.lang.Throwable t)
An error occurred retrieving the list of updates from one of the update centers.
Parameters:
center - the update center from which a list of updates could not be retrieved.
t - the error that occurred.

finished

protected abstract void finished(java.util.Collection updates)
An update with all satisified dependencies was found.
Parameters:
updates - all found updates.

stopped

protected abstract void stopped()
Checking for updates was stopped.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.