Issue #352 initialize ThinClientDataUpdateTree as soon as component starts to ensure that it correctly sets the last query time.
Change-Id: I13d4af0a1529e31f78e998db6bbdee228e749e1f Former-commit-id: d05beaa84618bc01d8cb711298523dc358bb4938
This commit is contained in:
parent
357dc4d88b
commit
5dee50e7e9
3 changed files with 9 additions and 2 deletions
|
@ -48,6 +48,7 @@ import com.raytheon.uf.viz.thinclient.cave.cache.GeometryCachePersistence;
|
|||
import com.raytheon.uf.viz.thinclient.cave.cache.MapQueryCachePersistence;
|
||||
import com.raytheon.uf.viz.thinclient.cave.refresh.DataRefreshTask;
|
||||
import com.raytheon.uf.viz.thinclient.cave.refresh.MenuTimeRefreshTask;
|
||||
import com.raytheon.uf.viz.thinclient.cave.refresh.ThinClientDataUpdateTree;
|
||||
import com.raytheon.uf.viz.thinclient.cave.refresh.ThinClientURICatalog;
|
||||
import com.raytheon.uf.viz.thinclient.localization.LocalizationCachePersistence;
|
||||
import com.raytheon.uf.viz.thinclient.localization.ThinClientLocalizationInitializer;
|
||||
|
@ -112,6 +113,7 @@ public class ThinClientComponent extends CAVE implements IThinClientComponent {
|
|||
Activator.getDefault().setComponent(this);
|
||||
|
||||
ThinClientURICatalog.getInstance();
|
||||
ThinClientDataUpdateTree.getInstance();
|
||||
List<String> pluginBlacklist = new ArrayList<String>();
|
||||
File blacklistFile = BundleScanner.searchInBundle(
|
||||
com.raytheon.uf.viz.thinclient.cave.Activator.PLUGIN_ID, "",
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
**/
|
||||
package com.raytheon.uf.viz.thinclient.refresh;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
|
@ -91,6 +93,7 @@ public class TimedRefresher implements IPropertyChangeListener {
|
|||
|
||||
@Override
|
||||
protected IStatus run(IProgressMonitor monitor) {
|
||||
System.out.println(refreshTask.getClass().getSimpleName() + " : " + Calendar.getInstance().getTime().toString() + " : running");
|
||||
startOfLastRun = System.currentTimeMillis();
|
||||
try {
|
||||
refreshTask.run();
|
||||
|
@ -120,8 +123,10 @@ public class TimedRefresher implements IPropertyChangeListener {
|
|||
if (intervalInMillis > 0) {
|
||||
long timePassed = System.currentTimeMillis() - startOfLastRun;
|
||||
if (timePassed > intervalInMillis) {
|
||||
System.out.println(refreshTask.getClass().getSimpleName() + " : " + Calendar.getInstance().getTime().toString() + " : Scheduled now");
|
||||
job.schedule();
|
||||
} else {
|
||||
System.out.println(refreshTask.getClass().getSimpleName() + " : " + Calendar.getInstance().getTime().toString() + " : Scheduled in " + ((intervalInMillis - timePassed)/1000/60) + " minutes");
|
||||
job.schedule(intervalInMillis - timePassed);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</configIni>
|
||||
|
||||
<launcherArgs>
|
||||
<programArgs>-data @user.home/caveData -user @user.home/caveData -clean -consoleLog -alertviz -component thinclient</programArgs>
|
||||
<programArgs>-data @user.home/caveData -user @user.home/caveData -clean -consoleLog -alertviz</programArgs>
|
||||
<vmArgs>-Xincgc -Xmx1024M -Dosgi.instance.area.readOnly=true
|
||||
-Dosgi.hook.configurators.exclude=org.eclipse.core.runtime.internal.adaptor.EclipseLogHook,org.eclipse.core.runtime.internal.adaptor.EclipseErrorHandler
|
||||
-XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dorg.eclipse.update.reconcile=false -XX:MaxPermSize=128m -Dorg.eclipse.ui/KEY_CONFIGURATION_ID=com.raytheon.viz.ui.awips.scheme -Dawips.mode=pypies -Dqpid.dest_syntax=BURL -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false</vmArgs>
|
||||
|
|
Loading…
Add table
Reference in a new issue