diff --git a/edexOsgi/com.raytheon.uf.edex.ohd/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.edex.ohd/META-INF/MANIFEST.MF index 5366333be5..ed400d8094 100644 --- a/edexOsgi/com.raytheon.uf.edex.ohd/META-INF/MANIFEST.MF +++ b/edexOsgi/com.raytheon.uf.edex.ohd/META-INF/MANIFEST.MF @@ -18,6 +18,7 @@ Import-Package: com.raytheon.edex.util, com.raytheon.uf.edex.database.dao, com.raytheon.uf.edex.database.plugin, com.raytheon.uf.edex.plugin.text.db, + com.raytheon.uf.edex.plugin.text.dbsrv.impl, org.quartz Export-Package: com.raytheon.uf.edex.ohd, com.raytheon.uf.edex.ohd.reportalarm, diff --git a/edexOsgi/com.raytheon.uf.edex.ohd/src/com/raytheon/uf/edex/ohd/reportalarm/RunReportAlarmSrv.java b/edexOsgi/com.raytheon.uf.edex.ohd/src/com/raytheon/uf/edex/ohd/reportalarm/RunReportAlarmSrv.java index 61dde4658d..2578eb3705 100644 --- a/edexOsgi/com.raytheon.uf.edex.ohd/src/com/raytheon/uf/edex/ohd/reportalarm/RunReportAlarmSrv.java +++ b/edexOsgi/com.raytheon.uf.edex.ohd/src/com/raytheon/uf/edex/ohd/reportalarm/RunReportAlarmSrv.java @@ -23,6 +23,7 @@ import java.io.File; import java.io.IOException; import java.text.DateFormat; import java.text.SimpleDateFormat; +import java.util.Date; import com.raytheon.uf.common.ohd.AppsDefaults; import com.raytheon.uf.common.status.IUFStatusHandler; @@ -30,6 +31,7 @@ import com.raytheon.uf.common.status.UFStatus; import com.raytheon.uf.common.time.util.TimeUtil; import com.raytheon.uf.common.util.FileUtil; import com.raytheon.uf.edex.plugin.text.db.TextDB; +import com.raytheon.uf.edex.plugin.text.dbsrv.impl.AlarmAlertUtil; /** * Provides SHEF with the ability to generate alert/alarms report products and @@ -44,6 +46,7 @@ import com.raytheon.uf.edex.plugin.text.db.TextDB; * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * Feb 12, 2014 #2783 dgilling Initial creation + * Dec 15, 2014 16736 mgamazaychikov Add call to sendProductAlarmAlert. * * * @@ -149,6 +152,12 @@ public final class RunReportAlarmSrv { TextDB textdb = new TextDB(); long statusCode = textdb.writeProduct(productId, productText, true, null); + // Set the current time and send product alarm alert. + Date d = new Date(System.currentTimeMillis()); + d.setTime(statusCode); + AlarmAlertUtil.sendProductAlarmAlert(productId, + String.valueOf(d.getTime()), + true); if (statusCode != Long.MIN_VALUE) { statusHandler.info("Product successfully sent"); diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.text/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.edex.plugin.text/META-INF/MANIFEST.MF index 13959da55d..804291ab6c 100644 --- a/edexOsgi/com.raytheon.uf.edex.plugin.text/META-INF/MANIFEST.MF +++ b/edexOsgi/com.raytheon.uf.edex.plugin.text/META-INF/MANIFEST.MF @@ -17,7 +17,8 @@ Require-Bundle: org.apache.commons.lang, Export-Package: com.raytheon.uf.edex.plugin.text, com.raytheon.uf.edex.plugin.text.dao, com.raytheon.uf.edex.plugin.text.db, - com.raytheon.uf.edex.plugin.text.dbsrv + com.raytheon.uf.edex.plugin.text.dbsrv, + com.raytheon.uf.edex.plugin.text.dbsrv.impl Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Import-Package: com.raytheon.edex.uengine.runners, com.raytheon.uf.common.dataplugin.text,