Issue #2297 - fix 14.2.1 merge
Former-commit-id:fee6a5dc9c
[formerlye2a02ca247
] [formerly411e0fa7c4
[formerly e5b298f51871ab2ed8be9e70cd1de5a4f8ce7f2b]] Former-commit-id:411e0fa7c4
Former-commit-id:e937ba954b
This commit is contained in:
parent
5630f71579
commit
b1a6d2d828
9 changed files with 11 additions and 36 deletions
|
@ -36,12 +36,6 @@
|
||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
id="org.apache.commons.io"
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"/>
|
|
||||||
|
|
||||||
<plugin
|
<plugin
|
||||||
id="org.apache.commons.compress"
|
id="org.apache.commons.compress"
|
||||||
download-size="0"
|
download-size="0"
|
||||||
|
@ -49,10 +43,4 @@
|
||||||
version="0.0.0"
|
version="0.0.0"
|
||||||
unpack="false"/>
|
unpack="false"/>
|
||||||
|
|
||||||
<plugin
|
|
||||||
download-size="0"
|
|
||||||
install-size="0"
|
|
||||||
version="0.0.0"
|
|
||||||
unpack="false"/>
|
|
||||||
|
|
||||||
</feature>
|
</feature>
|
||||||
|
|
|
@ -25,13 +25,14 @@ import org.apache.commons.collections.map.DefaultedMap;
|
||||||
import org.eclipse.jface.preference.IPreferenceStore;
|
import org.eclipse.jface.preference.IPreferenceStore;
|
||||||
|
|
||||||
import com.raytheon.uf.common.comm.HttpClient;
|
import com.raytheon.uf.common.comm.HttpClient;
|
||||||
|
import com.raytheon.uf.common.localization.msgs.GetServersRequest;
|
||||||
import com.raytheon.uf.common.localization.msgs.GetServersResponse;
|
import com.raytheon.uf.common.localization.msgs.GetServersResponse;
|
||||||
import com.raytheon.uf.viz.core.VizApp;
|
import com.raytheon.uf.viz.core.VizApp;
|
||||||
import com.raytheon.uf.viz.core.VizServers;
|
import com.raytheon.uf.viz.core.VizServers;
|
||||||
import com.raytheon.uf.viz.core.comm.ConnectivityManager;
|
|
||||||
import com.raytheon.uf.viz.core.exception.VizException;
|
import com.raytheon.uf.viz.core.exception.VizException;
|
||||||
import com.raytheon.uf.viz.core.localization.LocalizationInitializer;
|
import com.raytheon.uf.viz.core.localization.LocalizationInitializer;
|
||||||
import com.raytheon.uf.viz.core.localization.LocalizationManager;
|
import com.raytheon.uf.viz.core.localization.LocalizationManager;
|
||||||
|
import com.raytheon.uf.viz.core.requests.ThriftClient;
|
||||||
import com.raytheon.uf.viz.thinclient.Activator;
|
import com.raytheon.uf.viz.thinclient.Activator;
|
||||||
import com.raytheon.uf.viz.thinclient.preferences.ThinClientPreferenceConstants;
|
import com.raytheon.uf.viz.thinclient.preferences.ThinClientPreferenceConstants;
|
||||||
import com.raytheon.uf.viz.thinclient.ui.ThinClientConnectivityDialog;
|
import com.raytheon.uf.viz.thinclient.ui.ThinClientConnectivityDialog;
|
||||||
|
|
|
@ -321,8 +321,7 @@ public class GFESiteActivation implements ISiteActivationListener {
|
||||||
&& System.getProperty("edex.run.mode").equals("request")) {
|
&& System.getProperty("edex.run.mode").equals("request")) {
|
||||||
statusHandler.info("Enabling ISC...");
|
statusHandler.info("Enabling ISC...");
|
||||||
try {
|
try {
|
||||||
IRTManager.getInstance().enableISC(siteID,
|
IRTManager.getInstance().enableISC(siteID, config);
|
||||||
config.getMhsid());
|
|
||||||
isIscActivated = true;
|
isIscActivated = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
statusHandler
|
statusHandler
|
||||||
|
|
|
@ -32,6 +32,7 @@ import jep.JepException;
|
||||||
|
|
||||||
import com.raytheon.edex.plugin.gfe.config.GridDbConfig;
|
import com.raytheon.edex.plugin.gfe.config.GridDbConfig;
|
||||||
import com.raytheon.edex.plugin.gfe.config.IFPServerConfig;
|
import com.raytheon.edex.plugin.gfe.config.IFPServerConfig;
|
||||||
|
import com.raytheon.edex.plugin.gfe.config.IFPServerConfigManager;
|
||||||
import com.raytheon.edex.plugin.gfe.server.IFPServer;
|
import com.raytheon.edex.plugin.gfe.server.IFPServer;
|
||||||
import com.raytheon.edex.plugin.gfe.exception.GfeConfigurationException;
|
import com.raytheon.edex.plugin.gfe.exception.GfeConfigurationException;
|
||||||
import com.raytheon.uf.common.dataplugin.gfe.db.objects.DatabaseID;
|
import com.raytheon.uf.common.dataplugin.gfe.db.objects.DatabaseID;
|
||||||
|
@ -81,8 +82,6 @@ public class GfeIRT extends Thread {
|
||||||
/** The site ID associated with this IRT thread */
|
/** The site ID associated with this IRT thread */
|
||||||
private final String siteID;
|
private final String siteID;
|
||||||
|
|
||||||
private final IFPServerConfig config;
|
|
||||||
|
|
||||||
/** The MHS ID associated with this IRT thread */
|
/** The MHS ID associated with this IRT thread */
|
||||||
private final String mhsID;
|
private final String mhsID;
|
||||||
|
|
||||||
|
@ -119,20 +118,15 @@ public class GfeIRT extends Thread {
|
||||||
* If the GFE configuration for the specified site could not be
|
* If the GFE configuration for the specified site could not be
|
||||||
* loaded.
|
* loaded.
|
||||||
*/
|
*/
|
||||||
public GfeIRT(String mhsid, String siteid) throws GfeConfigurationException {
|
public GfeIRT(String siteid, IFPServerConfig config)
|
||||||
|
throws GfeConfigurationException {
|
||||||
this.setDaemon(true);
|
this.setDaemon(true);
|
||||||
this.siteID = siteid;
|
this.siteID = siteid;
|
||||||
this.config = config;
|
|
||||||
this.mhsID = config.getMhsid();
|
this.mhsID = config.getMhsid();
|
||||||
|
|
||||||
IFPServerConfig config = IFPServerConfigManager.getServerConfig(siteID);
|
|
||||||
shutdownHooks.put(mhsID + siteID, hook);
|
|
||||||
|
|
||||||
this.serverHost = config.getServerHost();
|
this.serverHost = config.getServerHost();
|
||||||
this.serverPort = config.getRpcPort();
|
this.serverPort = config.getRpcPort();
|
||||||
this.serverProtocol = config.getProtocolVersion();
|
this.serverProtocol = config.getProtocolVersion();
|
||||||
script = new PythonScript(scriptFile, includePath, this.getClass()
|
|
||||||
.getClassLoader());
|
|
||||||
|
|
||||||
GridLocation domain = config.dbDomain();
|
GridLocation domain = config.dbDomain();
|
||||||
|
|
||||||
|
@ -147,13 +141,11 @@ public class GfeIRT extends Thread {
|
||||||
this.gridBoundBox.add(domain.getOrigin().y);
|
this.gridBoundBox.add(domain.getOrigin().y);
|
||||||
this.gridBoundBox.add(domain.getExtent().x);
|
this.gridBoundBox.add(domain.getExtent().x);
|
||||||
this.gridBoundBox.add(domain.getExtent().y);
|
this.gridBoundBox.add(domain.getExtent().y);
|
||||||
List<DatabaseID> dbs = IFPServer.getActiveServer(siteID)
|
|
||||||
.getGridParmMgr().getDbInventory().getPayload();
|
|
||||||
|
|
||||||
this.parmsWanted = config.requestedISCparms();
|
this.parmsWanted = config.requestedISCparms();
|
||||||
if (this.parmsWanted.isEmpty()) {
|
if (this.parmsWanted.isEmpty()) {
|
||||||
List<DatabaseID> dbs = GridParmManager.getDbInventory(this.siteID)
|
List<DatabaseID> dbs = IFPServer.getActiveServer(this.siteID)
|
||||||
.getPayload();
|
.getGridParmMgr().getDbInventory().getPayload();
|
||||||
for (DatabaseID dbId : dbs) {
|
for (DatabaseID dbId : dbs) {
|
||||||
if ((dbId.getModelName().equals("ISC"))
|
if ((dbId.getModelName().equals("ISC"))
|
||||||
&& (dbId.getDbType().equals(""))
|
&& (dbId.getDbType().equals(""))
|
||||||
|
@ -208,7 +200,7 @@ public class GfeIRT extends Thread {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
java.lang.Runtime.getRuntime().addShutdownHook(hook);
|
java.lang.Runtime.getRuntime().addShutdownHook(hook);
|
||||||
shutdownHooks.put(mhsid + siteid, hook);
|
shutdownHooks.put(mhsID + siteID, hook);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -12,7 +12,6 @@ import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
|
@ -1033,7 +1032,6 @@ public class FSSObsRecord extends PersistablePluginDataObject implements
|
||||||
return totCloudAmount;
|
return totCloudAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@Override
|
@Override
|
||||||
public ISpatialObject getSpatialObject() {
|
public ISpatialObject getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
|
|
@ -409,7 +409,6 @@ public class LocalStormReport extends PersistablePluginDataObject implements
|
||||||
identifier = dataURI;
|
identifier = dataURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@Override
|
@Override
|
||||||
public SurfaceObsLocation getSpatialObject() {
|
public SurfaceObsLocation getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
@ -477,7 +476,6 @@ public class LocalStormReport extends PersistablePluginDataObject implements
|
||||||
return location.getLocationDefined();
|
return location.getLocationDefined();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@Override
|
@Override
|
||||||
public PointDataView getPointDataView() {
|
public PointDataView getPointDataView() {
|
||||||
return pointDataView;
|
return pointDataView;
|
||||||
|
|
|
@ -153,7 +153,6 @@ public class SvrWxRecord extends PersistablePluginDataObject implements
|
||||||
identifier = dataURI;
|
identifier = dataURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@Override
|
@Override
|
||||||
public SurfaceObsLocation getSpatialObject() {
|
public SurfaceObsLocation getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
|
|
@ -184,7 +184,6 @@ public class TropicalCycloneSummary extends PersistablePluginDataObject
|
||||||
identifier = dataURI;
|
identifier = dataURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@Override
|
@Override
|
||||||
public SurfaceObsLocation getSpatialObject() {
|
public SurfaceObsLocation getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
|
|
@ -1431,6 +1431,7 @@ public class ContourSupport {
|
||||||
|
|
||||||
rastPosToWorldGrid.transform(
|
rastPosToWorldGrid.transform(
|
||||||
new double[] { f, point.getY() + minY }, 0,
|
new double[] { f, point.getY() + minY }, 0,
|
||||||
|
out, 0, 1);
|
||||||
|
|
||||||
pts.add(new Coordinate(f, point.getY() + minY));
|
pts.add(new Coordinate(f, point.getY() + minY));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue