public class UpdateCheckerJob extends AbstractJob
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
forceCheck |
protected edu.iris.Fissures.model.TimeInterval |
FORTNIGHT |
protected boolean |
isGui |
protected edu.iris.Fissures.model.TimeInterval |
MONTH |
protected java.util.prefs.Preferences |
prefs |
protected java.lang.String |
prefsName |
protected java.lang.String |
programName |
protected boolean |
showNoUpdate |
protected edu.iris.Fissures.model.TimeInterval |
SIX_HOUR |
protected java.lang.String |
updateURL |
protected boolean |
usePrefs |
protected java.lang.String |
version |
FINISHED, INITIALIZE| Constructor and Description |
|---|
UpdateCheckerJob(java.lang.String displayName,
java.lang.String programName,
java.lang.String version,
java.lang.String updateURL,
boolean gui,
boolean forceCheck) |
| Modifier and Type | Method and Description |
|---|---|
protected edu.iris.Fissures.model.MicroSecondDate |
getNextCheck() |
protected java.util.prefs.Preferences |
getPrefs() |
protected void |
handleUpdateGUI(com.isti.util.updatechecker.LocationUpdate locationUpdate) |
protected void |
handleUpdateNonGUI(com.isti.util.updatechecker.LocationUpdate locationUpdate) |
void |
runJob()
run acts like the run method of Runnable, but is wrapped by the Job
system so that any exceptions are caught and the job is set to
finished.
|
protected void |
setNextCheck(edu.iris.Fissures.model.MicroSecondDate date) |
void |
setUsePreferencesForStorage(boolean usePrefs) |
add, getName, getStatus, isFinished, run, setFinished, setFinished, setStatusprotected final edu.iris.Fissures.model.TimeInterval SIX_HOUR
protected final edu.iris.Fissures.model.TimeInterval FORTNIGHT
protected final edu.iris.Fissures.model.TimeInterval MONTH
protected java.lang.String prefsName
protected java.lang.String version
protected java.lang.String programName
protected boolean forceCheck
protected boolean showNoUpdate
protected boolean isGui
protected java.lang.String updateURL
protected java.util.prefs.Preferences prefs
protected boolean usePrefs
public UpdateCheckerJob(java.lang.String displayName,
java.lang.String programName,
java.lang.String version,
java.lang.String updateURL,
boolean gui,
boolean forceCheck)
forceCheck - overides the users "don't bother me until..." setting in the
Java Preferences. Usually this should be false, but is useful
for testing.public void setUsePreferencesForStorage(boolean usePrefs)
public void runJob()
Jobprotected void handleUpdateGUI(com.isti.util.updatechecker.LocationUpdate locationUpdate)
throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreExceptionprotected void handleUpdateNonGUI(com.isti.util.updatechecker.LocationUpdate locationUpdate)
throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreExceptionprotected edu.iris.Fissures.model.MicroSecondDate getNextCheck()
protected void setNextCheck(edu.iris.Fissures.model.MicroSecondDate date)
throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreExceptionprotected java.util.prefs.Preferences getPrefs()