public class UpdateCheckerJob extends AbstractJob
Modifier and Type | Field and Description |
---|---|
protected boolean |
forceCheck |
protected TimeInterval |
FORTNIGHT |
protected boolean |
isGui |
protected TimeInterval |
MONTH |
protected java.util.prefs.Preferences |
prefs |
protected java.lang.String |
prefsName |
protected java.lang.String |
programName |
protected boolean |
showNoUpdate |
protected 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 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(MicroSecondDate date) |
void |
setUsePreferencesForStorage(boolean usePrefs) |
add, getName, getStatus, isFinished, run, setFinished, setFinished, setStatus
protected final TimeInterval SIX_HOUR
protected final TimeInterval FORTNIGHT
protected final 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()
Job
protected void handleUpdateGUI(com.isti.util.updatechecker.LocationUpdate locationUpdate) throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreException
protected void handleUpdateNonGUI(com.isti.util.updatechecker.LocationUpdate locationUpdate) throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreException
protected MicroSecondDate getNextCheck()
protected void setNextCheck(MicroSecondDate date) throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreException
protected java.util.prefs.Preferences getPrefs()