VLab Issue #4953 Run NWRWAVES script for both TCV and HLS.

Don't attempt to send TCV backup files in practice mode.

Change-Id: I70cc4a4014a0f1e34d8c2d3eab39a76289ca9daa

Former-commit-id: a1a11a4243 [formerly 57de590a3e] [formerly a1a11a4243 [formerly 57de590a3e] [formerly cd8f684a99 [formerly 3a60037251b7dd393d85a613c5685d5338927e61]]]
Former-commit-id: cd8f684a99
Former-commit-id: 9ee76233b9 [formerly 8565219ce8]
Former-commit-id: 7a30a7c73e
This commit is contained in:
Ron Anderson 2015-01-09 10:48:51 -06:00
parent 2851636c0c
commit e2d2cef4ee

View file

@ -192,6 +192,7 @@ public final class TPCWatchSrv extends AbstractWatchNotifierSrv {
// if it's a TCV
if ("TCV".equals(pil)) {
super.handleWatch(warningRecs);
}
// if we are not in practice mode
if (!practiceMode) {
@ -217,15 +218,14 @@ public final class TPCWatchSrv extends AbstractWatchNotifierSrv {
try {
proc = RunProcess.getRunProcess().exec(command);
} catch (IOException e) {
statusHandler.error("Error executing "
+ command, e);
statusHandler
.error("Error executing " + command, e);
return;
}
int exitCode = proc.waitFor();
if (exitCode != 0) {
statusHandler
.error(command
statusHandler.error(command
+ " terminated abnormally with exit code: "
+ exitCode);
}
@ -235,7 +235,6 @@ public final class TPCWatchSrv extends AbstractWatchNotifierSrv {
thread.start();
}
}
}
// update TCV Advisories
for (String siteId : getActiveSites()) {
@ -296,9 +295,13 @@ public final class TPCWatchSrv extends AbstractWatchNotifierSrv {
statusHandler.error("Unable to delete " + pendingFile, e);
}
// if not practice mode
if (!practiceMode) {
// send TCV files to VTEC partner sites
sendTCVFiles(siteId);
}
}
}
private void deleteTCVAdvisoriesIfCanceled(String siteId, String pil,
boolean practiceMode, String productText) {