From c9ca7a29437e881834881208e441f54c80c2ed52 Mon Sep 17 00:00:00 2001 From: Ron Anderson Date: Wed, 27 Feb 2013 14:45:30 -0600 Subject: [PATCH] Issue #1597 Moved some interpolation messages to Performance Log for consistency. Change-Id: I1bd047ada89b0e9876549c6153d06c82e4dfc5c8 Former-commit-id: 4683ff00b8bc515fc2f802810fc2caba37c282d8 --- .../src/com/raytheon/viz/gfe/core/parm/Parm.java | 7 +++++++ .../src/com/raytheon/viz/gfe/core/parm/ParmOp.java | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/Parm.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/Parm.java index 6008a454ad..5785b6672e 100644 --- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/Parm.java +++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/Parm.java @@ -68,7 +68,9 @@ import com.raytheon.uf.common.dataplugin.gfe.weather.WeatherKey; import com.raytheon.uf.common.dataplugin.gfe.weather.WeatherSubKey; import com.raytheon.uf.common.geospatial.MapUtil; import com.raytheon.uf.common.message.WsId; +import com.raytheon.uf.common.status.IPerformanceStatusHandler; import com.raytheon.uf.common.status.IUFStatusHandler; +import com.raytheon.uf.common.status.PerformanceStatus; import com.raytheon.uf.common.status.UFStatus; import com.raytheon.uf.common.status.UFStatus.Priority; import com.raytheon.uf.common.time.SimulatedTime; @@ -187,6 +189,9 @@ public abstract class Parm implements Comparable { private static final transient IUFStatusHandler statusHandler = UFStatus .getHandler(Parm.class); + private final IPerformanceStatusHandler perfLog = PerformanceStatus + .getHandler("GFE:"); + protected RWLArrayList grids; protected ParmState parmState; @@ -4323,6 +4328,8 @@ public abstract class Parm implements Comparable { if (!quietMode) { statusHandler.handle(Priority.EVENTA, "Interpolation for " + getParmID().getShortParmId() + " finished."); + perfLog.log("Interpolation for " + getParmID().getShortParmId() + + " finished."); } } } diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/ParmOp.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/ParmOp.java index 21d34e4792..8a0dcad331 100644 --- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/ParmOp.java +++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/ParmOp.java @@ -48,7 +48,9 @@ import com.raytheon.uf.common.dataplugin.gfe.server.message.ServerResponse; import com.raytheon.uf.common.dataplugin.gfe.server.request.CommitGridRequest; import com.raytheon.uf.common.dataplugin.gfe.server.request.LockRequest; import com.raytheon.uf.common.dataplugin.gfe.server.request.SendISCRequest; +import com.raytheon.uf.common.status.IPerformanceStatusHandler; import com.raytheon.uf.common.status.IUFStatusHandler; +import com.raytheon.uf.common.status.PerformanceStatus; import com.raytheon.uf.common.status.UFStatus; import com.raytheon.uf.common.status.UFStatus.Priority; import com.raytheon.uf.common.time.SimulatedTime; @@ -92,6 +94,9 @@ public class ParmOp { private static final transient IUFStatusHandler statusHandler = UFStatus .getHandler(ParmOp.class); + private final IPerformanceStatusHandler perfLog = PerformanceStatus + .getHandler("GFE:"); + private static final int MAX_CONCURRENT_JOBS = 5; private IGridData copiedGrid; @@ -387,7 +392,7 @@ public class ParmOp { */ public void interpolateSelected(InterpMode interpMode, InterpState interpState, int interval, int duration) { - statusHandler.debug("Interpolation started"); + perfLog.log("Interpolation started"); Parm[] allParms = this.dataManager.getParmManager().getAllParms(); for (Parm parm : allParms) { if (parm.getParmState().isSelected() && parm.isMutable()) {