Merge branch 'omaha_13.5.1.1' (omaha_13.5.1.1-4) into omaha_13.5.2
Conflicts: cave/com.raytheon.viz.texteditor/src/com/raytheon/viz/texteditor/dialogs/TextEditorDialog.java cave/com.raytheon.viz.warngen/src/com/raytheon/viz/warngen/gui/WarngenDialog.java cave/com.raytheon.viz.warngen/src/com/raytheon/viz/warngen/gui/WarngenLayer.java edexOsgi/build.edex/esb/data/utility/common_static/base/ncep/hold/NcInventoryDefinitions/FFG_TIR_HIRES.xml ncep/gov.noaa.nws.ncep.edex.plugin.geomag/res/spring/geomag-ingest.xml Former-commit-id:4b934caa41
[formerly92a45d77bb
] [formerly271a8d753e
[formerly 14284eb34f246c2d283ecf4040996957d7117cd3]] Former-commit-id:271a8d753e
Former-commit-id:83dc5197a1
This commit is contained in:
commit
f23ea6e3ad
150 changed files with 1524 additions and 1024 deletions
|
@ -28,24 +28,39 @@
|
||||||
# Date Ticket# Engineer Description
|
# Date Ticket# Engineer Description
|
||||||
# ------------ ---------- ----------- --------------------------
|
# ------------ ---------- ----------- --------------------------
|
||||||
# 07/25/08 njensen Initial Creation.
|
# 07/25/08 njensen Initial Creation.
|
||||||
#
|
# 09/05/13 #2329 randerso Added error handling
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
import sys
|
import sys, traceback, os, time, LogStream
|
||||||
from java.util import ArrayList
|
from java.util import ArrayList
|
||||||
|
|
||||||
def getCombinations(comboName):
|
def getCombinations(comboName):
|
||||||
outercombos = ArrayList()
|
try:
|
||||||
cmd = "md = __import__(\"" + comboName + "\")"
|
outercombos = ArrayList()
|
||||||
exec cmd
|
md = __import__(comboName)
|
||||||
comList = md.Combinations
|
comList = md.Combinations
|
||||||
for i in comList:
|
for i in comList:
|
||||||
combos = ArrayList()
|
combos = ArrayList()
|
||||||
innerList = i[0]
|
innerList = i[0]
|
||||||
for zone in innerList:
|
for zone in innerList:
|
||||||
combos.add(zone)
|
combos.add(zone)
|
||||||
outercombos.add(combos)
|
outercombos.add(combos)
|
||||||
return outercombos
|
return outercombos
|
||||||
|
|
||||||
|
except AttributeError as e:
|
||||||
|
filename = md.__file__
|
||||||
|
if filename.endswith("pyc") or filename.endswith("pyo"):
|
||||||
|
filename = filename[:-1]
|
||||||
|
with open(filename,'r') as fd:
|
||||||
|
filecontents = fd.read()
|
||||||
|
|
||||||
|
LogStream.logProblem("\nERROR loading combinations file: "+ comboName +
|
||||||
|
"\nmd.__file__: " + md.__file__ +
|
||||||
|
"\ndir(md): " + str(dir(md)) +
|
||||||
|
"\n" + md.__file__ + " last modified: " + time.strftime("%Y-%m-%d %H:%M:%S",time.gmtime(os.path.getmtime(md.__file__))) +
|
||||||
|
"\n" + filename + " last modified: " + time.strftime("%Y-%m-%d %H:%M:%S",time.gmtime(os.path.getmtime(filename))) +
|
||||||
|
"\nContents of " + filename + "\n" + filecontents)
|
||||||
|
raise e
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<dfltGeogArea>BasicWX_US</dfltGeogArea>
|
<dfltGeogArea>BasicWX_US</dfltGeogArea>
|
||||||
<resourceParameters>
|
<resourceParameters>
|
||||||
pluginName=grid
|
pluginName=grid
|
||||||
GDFILE=FFG-TIR-HiRes
|
GDFILE=FFG-TIR
|
||||||
|
|
||||||
</resourceParameters>
|
</resourceParameters>
|
||||||
<inventoryEnabled>true</inventoryEnabled>
|
<inventoryEnabled>true</inventoryEnabled>
|
||||||
|
|
|
@ -61,6 +61,8 @@ import com.raytheon.viz.gfe.textformatter.TextProductManager;
|
||||||
* 26 SEP 2012 15423 ryu Fix product correction in practice mode
|
* 26 SEP 2012 15423 ryu Fix product correction in practice mode
|
||||||
* 15 MAY 2013 1842 dgilling Change constructor signature to accept a
|
* 15 MAY 2013 1842 dgilling Change constructor signature to accept a
|
||||||
* DataManager instance.
|
* DataManager instance.
|
||||||
|
* 05 SEP 2013 2329 randerso Added call to ZoneCombinerComp.applyZoneCombo when
|
||||||
|
* when run formatter button is clicked.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -386,12 +388,12 @@ public class ProductAreaComp extends Composite implements
|
||||||
// use
|
// use
|
||||||
// it, else use the default
|
// it, else use the default
|
||||||
String dbId = null;
|
String dbId = null;
|
||||||
// zoneCombinerComp.compactList();
|
zoneCombiner.applyZoneCombo();
|
||||||
dbId = ((FormatterLauncherDialog) productTabCB)
|
dbId = ((FormatterLauncherDialog) productTabCB)
|
||||||
.getSelectedDataSource(productName);
|
.getSelectedDataSource(productName);
|
||||||
FormatterUtil.runFormatterScript(textProductMgr,
|
FormatterUtil.runFormatterScript(textProductMgr,
|
||||||
productName, zoneCombiner.getZoneGroupings(),
|
productName, dbId, vtecMode,
|
||||||
dbId, vtecMode, ProductAreaComp.this);
|
ProductAreaComp.this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -22,16 +22,12 @@ package com.raytheon.viz.gfe.dialogs.formatterlauncher;
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
import java.io.FilenameFilter;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
|
||||||
import java.util.TreeSet;
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
|
|
||||||
import org.eclipse.jface.preference.IPreferenceStore;
|
import org.eclipse.jface.preference.IPreferenceStore;
|
||||||
|
@ -61,6 +57,7 @@ import org.opengis.referencing.FactoryException;
|
||||||
import org.opengis.referencing.operation.TransformException;
|
import org.opengis.referencing.operation.TransformException;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.gfe.db.objects.GridLocation;
|
import com.raytheon.uf.common.dataplugin.gfe.db.objects.GridLocation;
|
||||||
|
import com.raytheon.uf.common.dataplugin.gfe.exception.GfeException;
|
||||||
import com.raytheon.uf.common.localization.FileUpdatedMessage;
|
import com.raytheon.uf.common.localization.FileUpdatedMessage;
|
||||||
import com.raytheon.uf.common.localization.FileUpdatedMessage.FileChangeType;
|
import com.raytheon.uf.common.localization.FileUpdatedMessage.FileChangeType;
|
||||||
import com.raytheon.uf.common.localization.ILocalizationFileObserver;
|
import com.raytheon.uf.common.localization.ILocalizationFileObserver;
|
||||||
|
@ -70,21 +67,17 @@ import com.raytheon.uf.common.localization.LocalizationContext.LocalizationLevel
|
||||||
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationType;
|
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationType;
|
||||||
import com.raytheon.uf.common.localization.LocalizationFile;
|
import com.raytheon.uf.common.localization.LocalizationFile;
|
||||||
import com.raytheon.uf.common.localization.PathManagerFactory;
|
import com.raytheon.uf.common.localization.PathManagerFactory;
|
||||||
import com.raytheon.uf.common.localization.exception.LocalizationOpFailedException;
|
|
||||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
import com.raytheon.uf.common.status.UFStatus;
|
import com.raytheon.uf.common.status.UFStatus;
|
||||||
import com.raytheon.uf.common.status.UFStatus.Priority;
|
import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
import com.raytheon.uf.common.util.FileUtil;
|
import com.raytheon.uf.common.util.FileUtil;
|
||||||
import com.raytheon.uf.common.util.file.FilenameFilters;
|
|
||||||
import com.raytheon.uf.viz.core.RGBColors;
|
import com.raytheon.uf.viz.core.RGBColors;
|
||||||
import com.raytheon.uf.viz.core.VizApp;
|
import com.raytheon.uf.viz.core.VizApp;
|
||||||
import com.raytheon.uf.viz.core.exception.VizException;
|
import com.raytheon.uf.viz.core.exception.VizException;
|
||||||
import com.raytheon.viz.gfe.Activator;
|
import com.raytheon.viz.gfe.Activator;
|
||||||
import com.raytheon.viz.gfe.core.DataManagerUIFactory;
|
import com.raytheon.viz.gfe.core.DataManagerUIFactory;
|
||||||
import com.raytheon.viz.gfe.textformatter.CombinationsFileGenerator;
|
|
||||||
import com.raytheon.viz.gfe.textformatter.CombinationsFileUtil;
|
import com.raytheon.viz.gfe.textformatter.CombinationsFileUtil;
|
||||||
import com.raytheon.viz.gfe.textformatter.TextProductManager;
|
import com.raytheon.viz.gfe.textformatter.TextProductManager;
|
||||||
import com.raytheon.viz.gfe.ui.AccessMgr;
|
|
||||||
import com.raytheon.viz.gfe.ui.zoneselector.ZoneSelector;
|
import com.raytheon.viz.gfe.ui.zoneselector.ZoneSelector;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -100,8 +93,9 @@ import com.raytheon.viz.gfe.ui.zoneselector.ZoneSelector;
|
||||||
* Changes for non-blocking SaveDeleteComboDlg.
|
* Changes for non-blocking SaveDeleteComboDlg.
|
||||||
* Changes for non-blocking ShuffleZoneGroupsDialog.
|
* Changes for non-blocking ShuffleZoneGroupsDialog.
|
||||||
* Changes for non-blocking ZoneColorEditorDlg.
|
* Changes for non-blocking ZoneColorEditorDlg.
|
||||||
*
|
|
||||||
* Mar 14, 2013 1794 djohnson Consolidate common FilenameFilter implementations.
|
* Mar 14, 2013 1794 djohnson Consolidate common FilenameFilter implementations.
|
||||||
|
* Sep 05, 2013 2329 randerso Removed obsolete methods, added ApplyZoneCombo method
|
||||||
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author lvenable
|
* @author lvenable
|
||||||
|
@ -307,6 +301,8 @@ public class ZoneCombinerComp extends Composite implements
|
||||||
createMapArea(theSaved);
|
createMapArea(theSaved);
|
||||||
|
|
||||||
createBottomControls();
|
createBottomControls();
|
||||||
|
|
||||||
|
applyButtonState(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -455,6 +451,7 @@ public class ZoneCombinerComp extends Composite implements
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
zoneSelector.updateCombos(new HashMap<String, Integer>());
|
zoneSelector.updateCombos(new HashMap<String, Integer>());
|
||||||
|
applyButtonState(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
clearMI.setText("Clear");
|
clearMI.setText("Clear");
|
||||||
|
@ -731,14 +728,7 @@ public class ZoneCombinerComp extends Composite implements
|
||||||
applyZoneComboBtn.addSelectionListener(new SelectionAdapter() {
|
applyZoneComboBtn.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent event) {
|
public void widgetSelected(SelectionEvent event) {
|
||||||
try {
|
applyZoneCombo();
|
||||||
CombinationsFileGenerator.generateAutoCombinationsFile(
|
|
||||||
zoneSelector.getZoneGroupings(),
|
|
||||||
getCombinationsFileName() + ".py");
|
|
||||||
} catch (Exception e) {
|
|
||||||
statusHandler.handle(Priority.PROBLEM, "Unable to save "
|
|
||||||
+ getCombinationsFileName(), e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Label label = new Label(controlComp, SWT.CENTER);
|
Label label = new Label(controlComp, SWT.CENTER);
|
||||||
|
@ -754,6 +744,25 @@ public class ZoneCombinerComp extends Composite implements
|
||||||
label.setAlignment(SWT.CENTER);
|
label.setAlignment(SWT.CENTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save zone combo
|
||||||
|
*/
|
||||||
|
public void applyZoneCombo() {
|
||||||
|
if (!buttonState()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
CombinationsFileUtil.generateAutoCombinationsFile(
|
||||||
|
zoneSelector.getZoneGroupings(), getCombinationsFileName()
|
||||||
|
+ ".py");
|
||||||
|
applyButtonState(false);
|
||||||
|
} catch (Exception e) {
|
||||||
|
statusHandler.handle(Priority.PROBLEM, "Unable to save "
|
||||||
|
+ getCombinationsFileName(), e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display the Color Editor dialog.
|
* Display the Color Editor dialog.
|
||||||
*/
|
*/
|
||||||
|
@ -845,93 +854,6 @@ public class ZoneCombinerComp extends Composite implements
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the names of the combo files at the given level. If level is null,
|
|
||||||
* get the names of the combo files at all levels. Otherwise, only get the
|
|
||||||
* names of the files at the given level.
|
|
||||||
*
|
|
||||||
* @param level
|
|
||||||
* @return the save combo files at the given level
|
|
||||||
*/
|
|
||||||
public String[] getSavedCombos(LocalizationLevel level) {
|
|
||||||
String comboDirName = "saved";
|
|
||||||
String[] combos;
|
|
||||||
File localFile;
|
|
||||||
// Accept any file whose name ends with ".py".
|
|
||||||
FilenameFilter filter = FilenameFilters.byFileExtension(".py");
|
|
||||||
|
|
||||||
if (level == null) {
|
|
||||||
// Aggregate the filenames for all levels.
|
|
||||||
// Use a set to keep names unique.
|
|
||||||
Set<String> comboSet = new TreeSet<String>();
|
|
||||||
LocalizationLevel[] levels = PathManagerFactory.getPathManager()
|
|
||||||
.getAvailableLevels();
|
|
||||||
for (int i = levels.length - 1; i >= 0; --i) {
|
|
||||||
localFile = getLocalization(comboDirName, levels[i]);
|
|
||||||
if ((localFile != null) && localFile.exists()) {
|
|
||||||
comboSet.addAll(Arrays.asList(localFile.list(filter)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
combos = comboSet.toArray(new String[0]);
|
|
||||||
} else {
|
|
||||||
// Get only the filenames for USER level.
|
|
||||||
localFile = getLocalization(comboDirName);
|
|
||||||
combos = localFile.list(filter);
|
|
||||||
}
|
|
||||||
return combos;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Load the combinations file called filename if it is in list or
|
|
||||||
* filename.py is in list, and return the loaded file as a List of Lists of
|
|
||||||
* Strings.
|
|
||||||
*
|
|
||||||
* @param list
|
|
||||||
* The list of valid filenames
|
|
||||||
* @param filename
|
|
||||||
* The filename to load
|
|
||||||
* @return the contents of the file, as a List of Lists of Strings.
|
|
||||||
*/
|
|
||||||
// public List<List<String>> findCombos(String[] list, String filename) {
|
|
||||||
// List<List<String>> listOfCombos = null;
|
|
||||||
// for (int i = 0; i < list.length; i++) {
|
|
||||||
// if (list[i].equals(filename) || list[i].equals(filename + ".py")) {
|
|
||||||
// listOfCombos = loadCombinationsFile(filename);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// return listOfCombos;
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deletes the saved file chosen
|
|
||||||
*
|
|
||||||
* @param name
|
|
||||||
* the combo file name
|
|
||||||
* @throws LocalizationOpFailedException
|
|
||||||
* if the server copy of the file cannot be deleted
|
|
||||||
*/
|
|
||||||
public void deleteSavedCombos(String name)
|
|
||||||
throws LocalizationOpFailedException {
|
|
||||||
String searchName = FileUtil.join(CombinationsFileUtil.COMBO_DIR_PATH,
|
|
||||||
"saved", name + ".py");
|
|
||||||
IPathManager pm = PathManagerFactory.getPathManager();
|
|
||||||
LocalizationContext userContext = pm.getContext(
|
|
||||||
LocalizationType.CAVE_STATIC, LocalizationLevel.USER);
|
|
||||||
LocalizationFile userFile = pm.getLocalizationFile(userContext,
|
|
||||||
searchName);
|
|
||||||
|
|
||||||
if (AccessMgr.verifyDelete(userFile.getName(),
|
|
||||||
LocalizationType.CAVE_STATIC, false)) {
|
|
||||||
if (userFile.isAvailableOnServer()) {
|
|
||||||
userFile.delete();
|
|
||||||
} else if (userFile.exists()) {
|
|
||||||
File localFile = userFile.getFile();
|
|
||||||
localFile.delete();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the localization for the save and delete functions. This is a
|
* Returns the localization for the save and delete functions. This is a
|
||||||
* wrapper around getLocalization(String, level).
|
* wrapper around getLocalization(String, level).
|
||||||
|
@ -987,34 +909,40 @@ public class ZoneCombinerComp extends Composite implements
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, Integer> loadCombinationsFile(String comboName) {
|
public Map<String, Integer> loadCombinationsFile(String comboName) {
|
||||||
List<List<String>> combolist = new ArrayList<List<String>>();
|
Map<String, Integer> dict = new HashMap<String, Integer>();
|
||||||
File localFile = PathManagerFactory.getPathManager().getStaticFile(
|
|
||||||
FileUtil.join(CombinationsFileUtil.COMBO_DIR_PATH, comboName
|
|
||||||
+ ".py"));
|
|
||||||
if (localFile != null) {
|
|
||||||
combolist = CombinationsFileUtil.init(comboName);
|
|
||||||
}
|
|
||||||
|
|
||||||
// reformat combinations into combo dictionary
|
|
||||||
Map<String, Integer> d = new HashMap<String, Integer>();
|
|
||||||
try {
|
try {
|
||||||
|
IPathManager pm = PathManagerFactory.getPathManager();
|
||||||
|
LocalizationContext ctx = pm.getContext(
|
||||||
|
LocalizationType.CAVE_STATIC, LocalizationLevel.SITE);
|
||||||
|
File localFile = pm.getFile(ctx, FileUtil.join(
|
||||||
|
CombinationsFileUtil.COMBO_DIR_PATH, comboName + ".py"));
|
||||||
|
|
||||||
|
List<List<String>> combolist = new ArrayList<List<String>>();
|
||||||
|
if (localFile != null && localFile.exists()) {
|
||||||
|
combolist = CombinationsFileUtil.init(comboName);
|
||||||
|
} else {
|
||||||
|
statusHandler.error("Combinations file does not found: "
|
||||||
|
+ comboName);
|
||||||
|
}
|
||||||
|
|
||||||
|
// reformat combinations into combo dictionary
|
||||||
int group = 1;
|
int group = 1;
|
||||||
for (List<String> zonelist : combolist) {
|
for (List<String> zonelist : combolist) {
|
||||||
for (String z : zonelist) {
|
for (String z : zonelist) {
|
||||||
d.put(z, group);
|
dict.put(z, group);
|
||||||
}
|
}
|
||||||
group += 1;
|
group += 1;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (GfeException e) {
|
||||||
statusHandler.handle(Priority.SIGNIFICANT,
|
statusHandler.handle(Priority.SIGNIFICANT, e.getLocalizedMessage(),
|
||||||
"Combo file is not in combo format: " + comboName);
|
e);
|
||||||
return new HashMap<String, Integer>();
|
return new HashMap<String, Integer>();
|
||||||
}
|
}
|
||||||
|
|
||||||
currentComboFile = FileUtil.join(CombinationsFileUtil.COMBO_DIR_PATH,
|
currentComboFile = FileUtil.join(CombinationsFileUtil.COMBO_DIR_PATH,
|
||||||
comboName + ".py");
|
comboName + ".py");
|
||||||
|
|
||||||
return d;
|
return dict;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1060,11 +988,12 @@ public class ZoneCombinerComp extends Composite implements
|
||||||
&& message.getFileName().equalsIgnoreCase(currentComboFile)) {
|
&& message.getFileName().equalsIgnoreCase(currentComboFile)) {
|
||||||
File file = new File(message.getFileName());
|
File file = new File(message.getFileName());
|
||||||
String comboName = file.getName().replace(".py", "");
|
String comboName = file.getName().replace(".py", "");
|
||||||
if (file.getParent().endsWith("saved")) {
|
statusHandler
|
||||||
comboName = FileUtil.join("saved", comboName);
|
.info("Received FileUpdatedMessage for combinations file: "
|
||||||
}
|
+ comboName);
|
||||||
Map<String, Integer> comboDict = loadCombinationsFile(comboName);
|
Map<String, Integer> comboDict = loadCombinationsFile(comboName);
|
||||||
this.zoneSelector.updateCombos(comboDict);
|
this.zoneSelector.updateCombos(comboDict);
|
||||||
|
applyButtonState(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1085,4 +1014,20 @@ public class ZoneCombinerComp extends Composite implements
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean buttonState() {
|
||||||
|
final boolean[] state = { false };
|
||||||
|
if (this.applyZoneComboBtn != null
|
||||||
|
&& !this.applyZoneComboBtn.isDisposed()) {
|
||||||
|
VizApp.runSync(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
state[0] = ZoneCombinerComp.this.applyZoneComboBtn
|
||||||
|
.isEnabled();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return state[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,108 +0,0 @@
|
||||||
/**
|
|
||||||
* This software was developed and / or modified by Raytheon Company,
|
|
||||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
||||||
*
|
|
||||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
||||||
* This software product contains export-restricted data whose
|
|
||||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
||||||
* to non-U.S. persons whether in the United States or abroad requires
|
|
||||||
* an export license or other authorization.
|
|
||||||
*
|
|
||||||
* Contractor Name: Raytheon Company
|
|
||||||
* Contractor Address: 6825 Pine Street, Suite 340
|
|
||||||
* Mail Stop B8
|
|
||||||
* Omaha, NE 68106
|
|
||||||
* 402.291.0100
|
|
||||||
*
|
|
||||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
||||||
* further licensing information.
|
|
||||||
**/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creating the combinations file for the TextFormatter
|
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
*6/12/2008 mnash Initial creation
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @author mnash
|
|
||||||
* @version 1
|
|
||||||
*/
|
|
||||||
package com.raytheon.viz.gfe.textformatter;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.gfe.request.SaveCombinationsFileRequest;
|
|
||||||
import com.raytheon.uf.common.localization.IPathManager;
|
|
||||||
import com.raytheon.uf.common.localization.LocalizationContext;
|
|
||||||
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationLevel;
|
|
||||||
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationType;
|
|
||||||
import com.raytheon.uf.common.localization.PathManagerFactory;
|
|
||||||
import com.raytheon.uf.common.util.FileUtil;
|
|
||||||
import com.raytheon.viz.gfe.core.DataManager;
|
|
||||||
import com.raytheon.viz.gfe.core.internal.IFPClient;
|
|
||||||
|
|
||||||
public class CombinationsFileGenerator {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generates combinations files based on just running the formatter
|
|
||||||
*
|
|
||||||
* @param zoneGroupList
|
|
||||||
* @param filename
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
|
||||||
public static void generateAutoCombinationsFile(
|
|
||||||
List<List<String>> zoneGroupList, String filename) throws Exception {
|
|
||||||
generateCombinationsFile(zoneGroupList, filename, "");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generates combinations files based on user wanting to save
|
|
||||||
*
|
|
||||||
* @param zoneGroupList
|
|
||||||
* @param filename
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
|
||||||
public static void generateSavedCombinationsFile(
|
|
||||||
List<List<String>> zoneGroupList, String filename) throws Exception {
|
|
||||||
|
|
||||||
if (filename.endsWith(".py")) {
|
|
||||||
generateCombinationsFile(zoneGroupList, filename, "saved"
|
|
||||||
+ File.separator);
|
|
||||||
} else {
|
|
||||||
generateCombinationsFile(zoneGroupList, filename + ".py", "saved"
|
|
||||||
+ File.separator);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Called by both auto and saved functions to actually write file
|
|
||||||
*
|
|
||||||
* @param zoneGroupList
|
|
||||||
* @param filename
|
|
||||||
* @param loc
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public static void generateCombinationsFile(
|
|
||||||
List<List<String>> zoneGroupList, String filename, String loc)
|
|
||||||
throws Exception {
|
|
||||||
IFPClient ifpc = DataManager.getCurrentInstance().getClient();
|
|
||||||
SaveCombinationsFileRequest req = new SaveCombinationsFileRequest();
|
|
||||||
req.setFileName(FileUtil.join(loc, filename));
|
|
||||||
req.setCombos(zoneGroupList);
|
|
||||||
ifpc.makeRequest(req);
|
|
||||||
|
|
||||||
IPathManager pm = PathManagerFactory.getPathManager();
|
|
||||||
LocalizationContext ctx = pm.getContext(LocalizationType.CAVE_STATIC,
|
|
||||||
LocalizationLevel.SITE);
|
|
||||||
pm.getFile(ctx, FileUtil.join("gfe", "combinations", filename));
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -20,6 +20,7 @@
|
||||||
package com.raytheon.viz.gfe.textformatter;
|
package com.raytheon.viz.gfe.textformatter;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -33,7 +34,9 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
import jep.JepException;
|
import jep.JepException;
|
||||||
|
|
||||||
|
import com.raytheon.uf.common.dataplugin.gfe.exception.GfeException;
|
||||||
import com.raytheon.uf.common.dataplugin.gfe.python.GfePyIncludeUtil;
|
import com.raytheon.uf.common.dataplugin.gfe.python.GfePyIncludeUtil;
|
||||||
|
import com.raytheon.uf.common.dataplugin.gfe.request.SaveCombinationsFileRequest;
|
||||||
import com.raytheon.uf.common.localization.IPathManager;
|
import com.raytheon.uf.common.localization.IPathManager;
|
||||||
import com.raytheon.uf.common.localization.LocalizationContext;
|
import com.raytheon.uf.common.localization.LocalizationContext;
|
||||||
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationLevel;
|
import com.raytheon.uf.common.localization.LocalizationContext.LocalizationLevel;
|
||||||
|
@ -49,8 +52,9 @@ import com.raytheon.uf.common.serialization.SerializationException;
|
||||||
import com.raytheon.uf.common.serialization.SerializationUtil;
|
import com.raytheon.uf.common.serialization.SerializationUtil;
|
||||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
import com.raytheon.uf.common.status.UFStatus;
|
import com.raytheon.uf.common.status.UFStatus;
|
||||||
import com.raytheon.uf.common.status.UFStatus.Priority;
|
|
||||||
import com.raytheon.uf.common.util.FileUtil;
|
import com.raytheon.uf.common.util.FileUtil;
|
||||||
|
import com.raytheon.viz.gfe.core.DataManagerUIFactory;
|
||||||
|
import com.raytheon.viz.gfe.core.internal.IFPClient;
|
||||||
import com.raytheon.viz.gfe.textformatter.CombinationsFileUtil.ComboData.Entry;
|
import com.raytheon.viz.gfe.textformatter.CombinationsFileUtil.ComboData.Entry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,7 +64,10 @@ import com.raytheon.viz.gfe.textformatter.CombinationsFileUtil.ComboData.Entry;
|
||||||
* SOFTWARE HISTORY
|
* SOFTWARE HISTORY
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Jul 25, 2008 mnash Initial creation
|
* Jul 25, 2008 mnash Initial creation
|
||||||
|
* Sep 05, 2013 #2329 randerso Moved genereateAutoCombinationsFile here
|
||||||
|
* Cleaned up error handling
|
||||||
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author mnash
|
* @author mnash
|
||||||
|
@ -200,7 +207,7 @@ public class CombinationsFileUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public static List<List<String>> init(String comboName) {
|
public static List<List<String>> init(String comboName) throws GfeException {
|
||||||
|
|
||||||
IPathManager pm = PathManagerFactory.getPathManager();
|
IPathManager pm = PathManagerFactory.getPathManager();
|
||||||
|
|
||||||
|
@ -211,7 +218,6 @@ public class CombinationsFileUtil {
|
||||||
File comboFile = new File(comboName);
|
File comboFile = new File(comboName);
|
||||||
comboName = comboFile.getName();
|
comboName = comboFile.getName();
|
||||||
|
|
||||||
String comboPath = GfePyIncludeUtil.getCombinationsIncludePath();
|
|
||||||
String scriptPath = FileUtil.join(
|
String scriptPath = FileUtil.join(
|
||||||
GfePyIncludeUtil.getUtilitiesLF(baseContext).getFile()
|
GfePyIncludeUtil.getUtilitiesLF(baseContext).getFile()
|
||||||
.getPath(), "CombinationsInterface.py");
|
.getPath(), "CombinationsInterface.py");
|
||||||
|
@ -221,13 +227,15 @@ public class CombinationsFileUtil {
|
||||||
map.put("comboName", comboName);
|
map.put("comboName", comboName);
|
||||||
PythonScript python = null;
|
PythonScript python = null;
|
||||||
try {
|
try {
|
||||||
python = new PythonScript(scriptPath,
|
python = new PythonScript(scriptPath, PyUtil.buildJepIncludePath(
|
||||||
PyUtil.buildJepIncludePath(comboPath));
|
GfePyIncludeUtil.getCombinationsIncludePath(),
|
||||||
|
GfePyIncludeUtil.getCommonPythonIncludePath()),
|
||||||
|
CombinationsFileUtil.class.getClassLoader());
|
||||||
Object com = python.execute("getCombinations", map);
|
Object com = python.execute("getCombinations", map);
|
||||||
combos = (List<List<String>>) com;
|
combos = (List<List<String>>) com;
|
||||||
} catch (JepException e) {
|
} catch (JepException e) {
|
||||||
statusHandler.handle(Priority.CRITICAL,
|
throw new GfeException("Error loading combinations file: "
|
||||||
"Could not get combinations", e);
|
+ comboName, e);
|
||||||
} finally {
|
} finally {
|
||||||
if (python != null) {
|
if (python != null) {
|
||||||
python.dispose();
|
python.dispose();
|
||||||
|
@ -235,4 +243,30 @@ public class CombinationsFileUtil {
|
||||||
}
|
}
|
||||||
return combos;
|
return combos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates combinations files based on just running the formatter
|
||||||
|
*
|
||||||
|
* @param zoneGroupList
|
||||||
|
* @param filename
|
||||||
|
* @throws Exception
|
||||||
|
* @throws IOException
|
||||||
|
*/
|
||||||
|
public static void generateAutoCombinationsFile(
|
||||||
|
List<List<String>> zoneGroupList, String filename) throws Exception {
|
||||||
|
IFPClient ifpc = DataManagerUIFactory.getCurrentInstance().getClient();
|
||||||
|
SaveCombinationsFileRequest req = new SaveCombinationsFileRequest();
|
||||||
|
req.setFileName(filename);
|
||||||
|
req.setCombos(zoneGroupList);
|
||||||
|
try {
|
||||||
|
statusHandler.info("Saving combinations file: " + filename);
|
||||||
|
ifpc.makeRequest(req);
|
||||||
|
statusHandler.info("Successfully saved combinations file: "
|
||||||
|
+ filename);
|
||||||
|
} catch (Exception e) {
|
||||||
|
statusHandler.error("Error saving combinations file: " + filename,
|
||||||
|
e);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package com.raytheon.viz.gfe.textformatter;
|
package com.raytheon.viz.gfe.textformatter;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.List;
|
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
|
@ -40,8 +39,9 @@ import com.raytheon.viz.gfe.tasks.TaskManager;
|
||||||
* SOFTWARE HISTORY
|
* SOFTWARE HISTORY
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Sep 8, 2008 njensen Initial creation
|
* Sep 8, 2008 njensen Initial creation
|
||||||
* Jan 15, 2010 3395 ryu Fix "issued by" functionality
|
* Jan 15, 2010 3395 ryu Fix "issued by" functionality
|
||||||
|
* Sep 05, 2013 2329 randerso Removed save of combinations file
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -63,21 +63,20 @@ public class FormatterUtil {
|
||||||
* the formatter instance to use
|
* the formatter instance to use
|
||||||
* @param productName
|
* @param productName
|
||||||
* the name of the text product
|
* the name of the text product
|
||||||
* @param zoneList
|
* @param dbId
|
||||||
* the list of zones to produce the product for
|
* source database
|
||||||
|
* @param vtecMode
|
||||||
|
* VTEC mode
|
||||||
* @param finish
|
* @param finish
|
||||||
* listener to fire when formatter finishes generating product
|
* listener to fire when formatter finishes generating product
|
||||||
*/
|
*/
|
||||||
public static void runFormatterScript(TextProductManager productMgr,
|
public static void runFormatterScript(TextProductManager productMgr,
|
||||||
String productName, List<List<String>> zoneList, String dbId,
|
String productName, String dbId, String vtecMode,
|
||||||
String vtecMode, TextProductFinishListener finish) {
|
TextProductFinishListener finish) {
|
||||||
try {
|
try {
|
||||||
String filename = productMgr.getCombinationsFileName(productName);
|
String filename = productMgr.getCombinationsFileName(productName);
|
||||||
boolean mapRequired = productMgr.mapRequired(productName);
|
boolean mapRequired = productMgr.mapRequired(productName);
|
||||||
if (filename != null && mapRequired) {
|
if (filename != null && mapRequired) {
|
||||||
String filenameExt = filename + ".py";
|
|
||||||
CombinationsFileGenerator.generateAutoCombinationsFile(
|
|
||||||
zoneList, filenameExt);
|
|
||||||
productMgr.reloadModule(filename);
|
productMgr.reloadModule(filename);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<constraint constraintValue="grid" constraintType="EQUALS"/>
|
<constraint constraintValue="grid" constraintType="EQUALS"/>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping key="info.datasetId">
|
<mapping key="info.datasetId">
|
||||||
<constraint constraintValue="FFG-TUA,FFG-ACR,FFG-STR,FFG-RSA,FFG-ORN,FFG-RHA,FFG-KRF,FFG-MSR,FFG-TAR,FFG-PTR,FFG-TIR-HiRes,FFG-ALR,FFG-FWR"
|
<constraint constraintValue="FFG-TUA,FFG-ACR,FFG-STR,FFG-RSA,FFG-ORN,FFG-RHA,FFG-KRF,FFG-MSR,FFG-TAR,FFG-PTR,FFG-TIR,FFG-ALR,FFG-FWR"
|
||||||
constraintType="IN" />
|
constraintType="IN" />
|
||||||
</mapping>
|
</mapping>
|
||||||
</metadataMap>
|
</metadataMap>
|
||||||
|
@ -321,7 +321,7 @@
|
||||||
<constraint constraintValue="grid" constraintType="EQUALS"/>
|
<constraint constraintValue="grid" constraintType="EQUALS"/>
|
||||||
</mapping>
|
</mapping>
|
||||||
<mapping key="info.datasetId">
|
<mapping key="info.datasetId">
|
||||||
<constraint constraintValue="FFG-TIR-HiRes" constraintType="EQUALS"/>
|
<constraint constraintValue="FFG-TIR" constraintType="EQUALS"/>
|
||||||
</mapping>
|
</mapping>
|
||||||
</metadataMap>
|
</metadataMap>
|
||||||
</resourceData>
|
</resourceData>
|
||||||
|
|
|
@ -246,19 +246,19 @@
|
||||||
menuText="1hr FFG" id="OH1hrFFG">
|
menuText="1hr FFG" id="OH1hrFFG">
|
||||||
<dataURI>/grib/%/FFG-TIR/FFG0124hr/%</dataURI>
|
<dataURI>/grib/%/FFG-TIR/FFG0124hr/%</dataURI>
|
||||||
<substitute key="timespan" value="FFG0124hr"/>
|
<substitute key="timespan" value="FFG0124hr"/>
|
||||||
<substitute key="model" value="FFG-TIR-HiRes"/>
|
<substitute key="model" value="FFG-TIR"/>
|
||||||
</contribute>
|
</contribute>
|
||||||
<contribute xsi:type="bundleItem" file="bundles/hydro/FFGmosaic.xml"
|
<contribute xsi:type="bundleItem" file="bundles/hydro/FFGmosaic.xml"
|
||||||
menuText="3hr FFG" id="OH3hrFFG">
|
menuText="3hr FFG" id="OH3hrFFG">
|
||||||
<dataURI>/grib/%/FFG-TIR-HiRes/FFG0324hr/%</dataURI>
|
<dataURI>/grib/%/FFG-TIR/FFG0324hr/%</dataURI>
|
||||||
<substitute key="timespan" value="FFG0324hr"/>
|
<substitute key="timespan" value="FFG0324hr"/>
|
||||||
<substitute key="model" value="FFG-TIR-HiRes"/>
|
<substitute key="model" value="FFG-TIR"/>
|
||||||
</contribute>
|
</contribute>
|
||||||
<contribute xsi:type="bundleItem" file="bundles/hydro/FFGmosaic.xml"
|
<contribute xsi:type="bundleItem" file="bundles/hydro/FFGmosaic.xml"
|
||||||
menuText="6hr FFG" id="OH6hrFFG">
|
menuText="6hr FFG" id="OH6hrFFG">
|
||||||
<dataURI>/grib/%/FFG-TIR-HiRes/FFG0624hr/%</dataURI>
|
<dataURI>/grib/%/FFG-TIR/FFG0624hr/%</dataURI>
|
||||||
<substitute key="timespan" value="FFG0624hr"/>
|
<substitute key="timespan" value="FFG0624hr"/>
|
||||||
<substitute key="model" value="FFG-TIR-HiRes"/>
|
<substitute key="model" value="FFG-TIR"/>
|
||||||
</contribute>
|
</contribute>
|
||||||
</contribute>
|
</contribute>
|
||||||
<contribute xsi:type="subMenu" menuText="SERFC" id="SERFCMenu">
|
<contribute xsi:type="subMenu" menuText="SERFC" id="SERFCMenu">
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.ui.menus">
|
point="org.eclipse.ui.menus">
|
||||||
<menuContribution
|
<menuContribution
|
||||||
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
|
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=d2d-3">
|
||||||
<toolbar
|
<toolbar
|
||||||
id="plugins">
|
id="plugins">
|
||||||
<command
|
<command
|
||||||
|
|
|
@ -28,6 +28,7 @@ import java.util.regex.Pattern;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import javax.jms.BytesMessage;
|
||||||
import javax.jms.Connection;
|
import javax.jms.Connection;
|
||||||
|
import javax.jms.DeliveryMode;
|
||||||
import javax.jms.JMSException;
|
import javax.jms.JMSException;
|
||||||
import javax.jms.MessageProducer;
|
import javax.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import javax.jms.Session;
|
||||||
|
@ -47,7 +48,7 @@ import com.raytheon.viz.texteditor.msgs.IWarngenObserver;
|
||||||
import com.raytheon.viz.texteditor.util.SiteAbbreviationUtil;
|
import com.raytheon.viz.texteditor.util.SiteAbbreviationUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO Add Description
|
* Sends warning products to text workstation and text database.
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -58,6 +59,7 @@ import com.raytheon.viz.texteditor.util.SiteAbbreviationUtil;
|
||||||
* 01Jun2010 2187 cjeanbap Added operational mode functionality
|
* 01Jun2010 2187 cjeanbap Added operational mode functionality
|
||||||
* 02Aug2010 2187 cjeanbap Update variable/method signature to be consistent.
|
* 02Aug2010 2187 cjeanbap Update variable/method signature to be consistent.
|
||||||
* 04Oct2010 7193 cjeanbap Add time-to-live value to MessageProducer.
|
* 04Oct2010 7193 cjeanbap Add time-to-live value to MessageProducer.
|
||||||
|
* Sep 13, 2013 2368 rjpeter Set delivery mode to PERSISTENT.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author mschenke
|
* @author mschenke
|
||||||
|
@ -65,209 +67,208 @@ import com.raytheon.viz.texteditor.util.SiteAbbreviationUtil;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class WarningSender implements IWarngenObserver {
|
public class WarningSender implements IWarngenObserver {
|
||||||
private static final transient IUFStatusHandler statusHandler = UFStatus
|
private static final transient IUFStatusHandler statusHandler = UFStatus
|
||||||
.getHandler(WarningSender.class);
|
.getHandler(WarningSender.class);
|
||||||
|
|
||||||
private String hostName = null;
|
private final String hostName = null;
|
||||||
|
|
||||||
private boolean notifyError;
|
private boolean notifyError;
|
||||||
|
|
||||||
private static final long MILLISECONDS_PER_SECOND = 1000;
|
private static final long MILLISECONDS_PER_SECOND = 1000;
|
||||||
|
|
||||||
private static final long SECONDS_PER_MINUTE = 60;
|
private static final long SECONDS_PER_MINUTE = 60;
|
||||||
|
|
||||||
private static final long TTL_MINUTES = 5;
|
private static final long TTL_MINUTES = 5;
|
||||||
|
|
||||||
private static Pattern PATTERN = Pattern.compile("(\\d{1,1})");
|
private static Pattern PATTERN = Pattern.compile("(\\d{1,1})");
|
||||||
|
|
||||||
private static final SimpleDateFormat sdf;
|
private static final SimpleDateFormat sdf;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
|
sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
|
||||||
sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
|
sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc) Incoming message was not a binary
|
* (non-Javadoc) Incoming message was not a binary
|
||||||
*
|
*
|
||||||
* @see
|
* @see
|
||||||
* com.raytheon.viz.texteditor.msgs.IWarngenObserver#setTextWarngenDisplay
|
* com.raytheon.viz.texteditor.msgs.IWarngenObserver#setTextWarngenDisplay
|
||||||
* (java.lang.String)
|
* (java.lang.String)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setTextWarngenDisplay(String warning, boolean ne) {
|
public void setTextWarngenDisplay(String warning, boolean ne) {
|
||||||
this.notifyError = ne;
|
this.notifyError = ne;
|
||||||
|
|
||||||
String number = "0";
|
String number = "0";
|
||||||
String host = TextWorkstationConstants.getId();
|
String host = TextWorkstationConstants.getId();
|
||||||
long t0 = System.currentTimeMillis();
|
long t0 = System.currentTimeMillis();
|
||||||
String siteNode = SiteAbbreviationUtil.getSiteNode(LocalizationManager
|
String siteNode = SiteAbbreviationUtil.getSiteNode(LocalizationManager
|
||||||
.getInstance().getCurrentSite());
|
.getInstance().getCurrentSite());
|
||||||
System.out.println("Get site node time: "
|
statusHandler.debug("Get site node time: "
|
||||||
+ (System.currentTimeMillis() - t0));
|
+ (System.currentTimeMillis() - t0));
|
||||||
if (host == null) {
|
if (host == null) {
|
||||||
statusHandler.handle(Priority.ERROR,
|
statusHandler.handle(Priority.ERROR,
|
||||||
"Text Workstation host not set in preferences.");
|
"Text Workstation host not set in preferences.");
|
||||||
} else {
|
} else {
|
||||||
Matcher m = PATTERN.matcher(host);
|
Matcher m = PATTERN.matcher(host);
|
||||||
if (m.find()) {
|
if (m.find()) {
|
||||||
number = m.group();
|
number = m.group();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String id = siteNode + "WRKWG" + number;
|
String id = siteNode + "WRKWG" + number;
|
||||||
boolean sentToTextDatabase = false;
|
boolean sentToTextDatabase = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
boolean messageNotSent = true;
|
boolean messageNotSent = true;
|
||||||
int connectCount = 0;
|
int connectCount = 0;
|
||||||
t0 = System.currentTimeMillis();
|
t0 = System.currentTimeMillis();
|
||||||
byte[] data = SerializationUtil.transformToThrift(id + ":"
|
byte[] data = SerializationUtil.transformToThrift(id + ":"
|
||||||
+ warning);
|
+ warning);
|
||||||
while (messageNotSent && connectCount < 4) {
|
while (messageNotSent && (connectCount < 4)) {
|
||||||
Session s = null;
|
Session s = null;
|
||||||
MessageProducer mp = null;
|
MessageProducer mp = null;
|
||||||
Connection conn = null;
|
Connection conn = null;
|
||||||
try {
|
try {
|
||||||
conn = JMSConnection.getInstance().getFactory()
|
conn = JMSConnection.getInstance().getFactory()
|
||||||
.createConnection();
|
.createConnection();
|
||||||
s = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE);
|
s = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE);
|
||||||
mp = s.createProducer(s
|
mp = s.createProducer(s
|
||||||
.createQueue(TextWorkstationConstants
|
.createQueue(TextWorkstationConstants
|
||||||
.getDestinationTextWorkstationQueueName()));
|
.getDestinationTextWorkstationQueueName()));
|
||||||
mp.setTimeToLive(TTL_MINUTES * SECONDS_PER_MINUTE
|
mp.setTimeToLive(TTL_MINUTES * SECONDS_PER_MINUTE
|
||||||
* MILLISECONDS_PER_SECOND);
|
* MILLISECONDS_PER_SECOND);
|
||||||
BytesMessage m = s.createBytesMessage();
|
BytesMessage m = s.createBytesMessage();
|
||||||
m.writeBytes(data);
|
m.writeBytes(data);
|
||||||
mp.send(m);
|
m.setJMSDeliveryMode(DeliveryMode.PERSISTENT);
|
||||||
long t1 = System.currentTimeMillis();
|
mp.send(m);
|
||||||
System.out.println(WarningSender.getCurTimeString() + ": "
|
long t1 = System.currentTimeMillis();
|
||||||
+ id + " sent to text workstation in " + (t1 - t0)
|
statusHandler.debug(id + " sent to text workstation in "
|
||||||
+ "ms in " + (connectCount + 1)
|
+ (t1 - t0) + "ms in " + (connectCount + 1)
|
||||||
+ (connectCount > 0 ? " tries" : " try"));
|
+ (connectCount > 0 ? " tries" : " try"));
|
||||||
messageNotSent = false;
|
messageNotSent = false;
|
||||||
} catch (JMSException e) {
|
} catch (JMSException e) {
|
||||||
if (notifyError) {
|
if (notifyError) {
|
||||||
statusHandler
|
statusHandler
|
||||||
.handle(Priority.PROBLEM,
|
.handle(Priority.PROBLEM,
|
||||||
"Error trying to send product ["
|
"Error trying to send product ["
|
||||||
+ id
|
+ id
|
||||||
+ "] to Text Workstation. Attempting to reconnect. ",
|
+ "] to Text Workstation. Attempting to reconnect. ",
|
||||||
e);
|
e);
|
||||||
notifyError = false;
|
notifyError = false;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (mp != null) {
|
if (mp != null) {
|
||||||
try {
|
try {
|
||||||
mp.close();
|
mp.close();
|
||||||
mp = null;
|
mp = null;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
mp = null;
|
mp = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (s != null) {
|
if (s != null) {
|
||||||
try {
|
try {
|
||||||
s.close();
|
s.close();
|
||||||
s = null;
|
s = null;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
s = null;
|
s = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (conn != null) {
|
if (conn != null) {
|
||||||
try {
|
try {
|
||||||
conn.close();
|
conn.close();
|
||||||
conn = null;
|
conn = null;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
conn = null;
|
conn = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (messageNotSent) {
|
if (messageNotSent) {
|
||||||
if (!sentToTextDatabase) {
|
if (!sentToTextDatabase) {
|
||||||
try {
|
try {
|
||||||
sendToTextDatabase(id, warning);
|
sendToTextDatabase(id, warning);
|
||||||
sentToTextDatabase = true;
|
sentToTextDatabase = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
statusHandler.handle(Priority.PROBLEM,
|
statusHandler.handle(Priority.PROBLEM,
|
||||||
"Error trying to save product [" + id
|
"Error trying to save product [" + id
|
||||||
+ "] to Text Database: ", e);
|
+ "] to Text Database: ", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
connectCount++;
|
connectCount++;
|
||||||
switch (connectCount) {
|
switch (connectCount) {
|
||||||
case 1:
|
case 1:
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
Thread.sleep(5 * 1000);
|
Thread.sleep(5 * 1000);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
Thread.sleep(30 * 1000);
|
Thread.sleep(30 * 1000);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
statusHandler.handle(Priority.PROBLEM,
|
statusHandler.handle(Priority.PROBLEM,
|
||||||
"Could not reconnect (" + id
|
"Could not reconnect (" + id
|
||||||
+ ") after 3 tries: ");
|
+ ") after 3 tries: ");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sentToTextDatabase) {
|
if (!sentToTextDatabase) {
|
||||||
try {
|
try {
|
||||||
sendToTextDatabase(id, warning);
|
sendToTextDatabase(id, warning);
|
||||||
sentToTextDatabase = true;
|
sentToTextDatabase = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
statusHandler.handle(Priority.PROBLEM,
|
statusHandler.handle(Priority.PROBLEM,
|
||||||
"Error trying to save product [" + id
|
"Error trying to save product [" + id
|
||||||
+ "] to Text Database: ", e);
|
+ "] to Text Database: ", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (UnknownHostException uhe) {
|
} catch (UnknownHostException uhe) {
|
||||||
if (notifyError) {
|
if (notifyError) {
|
||||||
statusHandler.handle(Priority.PROBLEM,
|
statusHandler.handle(Priority.PROBLEM,
|
||||||
"unable to map hostname, " + hostName
|
"unable to map hostname, " + hostName
|
||||||
+ ", to an ip address", uhe);
|
+ ", to an ip address", uhe);
|
||||||
notifyError = false;
|
notifyError = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
statusHandler.handle(Priority.PROBLEM,
|
statusHandler.handle(Priority.PROBLEM,
|
||||||
"Error trying to send product [" + id
|
"Error trying to send product [" + id
|
||||||
+ "] to Text Workstation: ", e);
|
+ "] to Text Workstation: ", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves a product to the text database.
|
* Saves a product to the text database.
|
||||||
*
|
*
|
||||||
* @param id
|
* @param id
|
||||||
* @param warning
|
* @param warning
|
||||||
* @throws VizException
|
* @throws VizException
|
||||||
*/
|
*/
|
||||||
public static void sendToTextDatabase(String id, String warning)
|
public static void sendToTextDatabase(String id, String warning)
|
||||||
throws VizException {
|
throws VizException {
|
||||||
CAVEMode mode = CAVEMode.getMode();
|
CAVEMode mode = CAVEMode.getMode();
|
||||||
boolean operationalMode = (CAVEMode.OPERATIONAL.equals(mode)
|
boolean operationalMode = (CAVEMode.OPERATIONAL.equals(mode)
|
||||||
|| CAVEMode.TEST.equals(mode) ? true : false);
|
|| CAVEMode.TEST.equals(mode) ? true : false);
|
||||||
|
|
||||||
// Generate StdTextProduct and insert into db
|
// Generate StdTextProduct and insert into db
|
||||||
long t0 = System.currentTimeMillis();
|
long t0 = System.currentTimeMillis();
|
||||||
ThriftClient.sendRequest(new InsertStdTextProductRequest(id, warning,
|
ThriftClient.sendRequest(new InsertStdTextProductRequest(id, warning,
|
||||||
operationalMode));
|
operationalMode));
|
||||||
|
|
||||||
System.out.println(WarningSender.getCurTimeString() + ": " + id
|
statusHandler.debug(id + " saved to textdb in "
|
||||||
+ " saved to textdb in " + (System.currentTimeMillis() - t0)
|
+ (System.currentTimeMillis() - t0) + "ms");
|
||||||
+ "ms");
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static String getCurTimeString() {
|
public static String getCurTimeString() {
|
||||||
String rval = null;
|
String rval = null;
|
||||||
synchronized (sdf) {
|
synchronized (sdf) {
|
||||||
rval = sdf.format(new Date());
|
rval = sdf.format(new Date());
|
||||||
}
|
}
|
||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,6 +148,7 @@ import com.vividsolutions.jts.geom.Polygon;
|
||||||
* Jul 29, 2013 DR 16352 D. Friedman Move 'result' to okPressed().
|
* Jul 29, 2013 DR 16352 D. Friedman Move 'result' to okPressed().
|
||||||
* Aug 6, 2013 2243 jsanchez Refreshed the follow up list every minute.
|
* Aug 6, 2013 2243 jsanchez Refreshed the follow up list every minute.
|
||||||
* Aug 15, 2013 DR 16418 D. Friedman Make dialog visibility match editable state.
|
* Aug 15, 2013 DR 16418 D. Friedman Make dialog visibility match editable state.
|
||||||
|
* Sep 17, 2013 DR 16496 D. Friedman Make editable state more consistent.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author chammack
|
* @author chammack
|
||||||
|
@ -1334,11 +1335,9 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
* Box was selected, allow editing of box only
|
* Box was selected, allow editing of box only
|
||||||
*/
|
*/
|
||||||
private void boxSelected() {
|
private void boxSelected() {
|
||||||
boxEditable = !polygonLocked;
|
boxEditable = true;
|
||||||
trackEditable = true;
|
trackEditable = false;
|
||||||
warngenLayer.getStormTrackState().editable = trackEditable;
|
realizeEditableState();
|
||||||
warngenLayer.setBoxEditable(boxEditable);
|
|
||||||
warngenLayer.issueRefresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1347,20 +1346,16 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
private void trackSelected() {
|
private void trackSelected() {
|
||||||
boxEditable = false;
|
boxEditable = false;
|
||||||
trackEditable = true;
|
trackEditable = true;
|
||||||
warngenLayer.getStormTrackState().editable = trackEditable;
|
realizeEditableState();
|
||||||
warngenLayer.setBoxEditable(boxEditable);
|
|
||||||
warngenLayer.issueRefresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Box and track was selected, allow editing of both
|
* Box and track was selected, allow editing of both
|
||||||
*/
|
*/
|
||||||
private void boxAndTrackSelected() {
|
private void boxAndTrackSelected() {
|
||||||
boxEditable = !polygonLocked;
|
boxEditable = true;
|
||||||
trackEditable = true;
|
trackEditable = true;
|
||||||
warngenLayer.getStormTrackState().editable = trackEditable;
|
realizeEditableState();
|
||||||
warngenLayer.setBoxEditable(boxEditable);
|
|
||||||
warngenLayer.issueRefresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1615,7 +1610,6 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
* item from update list selected
|
* item from update list selected
|
||||||
*/
|
*/
|
||||||
public void updateListSelected() {
|
public void updateListSelected() {
|
||||||
warngenLayer.setOldWarningPolygon(null);
|
|
||||||
if (updateListCbo.getSelectionIndex() >= 0) {
|
if (updateListCbo.getSelectionIndex() >= 0) {
|
||||||
AbstractWarningRecord oldWarning = null;
|
AbstractWarningRecord oldWarning = null;
|
||||||
FollowupData data = (FollowupData) updateListCbo
|
FollowupData data = (FollowupData) updateListCbo
|
||||||
|
@ -1666,6 +1660,7 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
warngenLayer.setOldWarningPolygon(null);
|
||||||
bulletList.setEnabled(true);
|
bulletList.setEnabled(true);
|
||||||
durationList.setEnabled(true);
|
durationList.setEnabled(true);
|
||||||
totalSegments = 0;
|
totalSegments = 0;
|
||||||
|
@ -2461,4 +2456,12 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void realizeEditableState() {
|
||||||
|
boolean layerEditable = warngenLayer.isEditable();
|
||||||
|
// TODO: Note there is no 'is track editing allowed' state yet.
|
||||||
|
warngenLayer.getStormTrackState().editable = layerEditable && trackEditable;
|
||||||
|
warngenLayer.setBoxEditable(layerEditable && boxEditable && !polygonLocked);
|
||||||
|
warngenLayer.issueRefresh();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,6 +188,7 @@ import com.vividsolutions.jts.io.WKTReader;
|
||||||
* updated AreaHatcher's run().
|
* updated AreaHatcher's run().
|
||||||
* 07/26/2013 DR 16450 D. Friedman Fix logic errors when frame count is one.
|
* 07/26/2013 DR 16450 D. Friedman Fix logic errors when frame count is one.
|
||||||
* 08/19/2013 2177 jsanchez Set a GeneralGridGeometry object in the GeospatialDataList.
|
* 08/19/2013 2177 jsanchez Set a GeneralGridGeometry object in the GeospatialDataList.
|
||||||
|
* 09/17/2013 DR 16496 D. Friedman Make editable state more consistent.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author mschenke
|
* @author mschenke
|
||||||
|
@ -3010,10 +3011,7 @@ public class WarngenLayer extends AbstractStormTrackResource {
|
||||||
final boolean editable = isEditable();
|
final boolean editable = isEditable();
|
||||||
boxEditable = editable;
|
boxEditable = editable;
|
||||||
displayState.editable = editable;
|
displayState.editable = editable;
|
||||||
if (editable) {
|
dialog.realizeEditableState();
|
||||||
boxEditable = dialog.boxEditable();
|
|
||||||
displayState.editable = dialog.trackEditable();
|
|
||||||
}
|
|
||||||
final WarngenDialog dlg = dialog;
|
final WarngenDialog dlg = dialog;
|
||||||
dialog.getDisplay().asyncExec(new Runnable() {
|
dialog.getDisplay().asyncExec(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -40,8 +40,19 @@
|
||||||
<property name="taskExecutor" ref="genericThreadPool" />
|
<property name="taskExecutor" ref="genericThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<bean id="jms-durable" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
|
<constructor-arg ref="jmsDurableConfig" />
|
||||||
|
<property name="taskExecutor" ref="genericThreadPool" />
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="jmsGenericConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsGenericConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy" />
|
factory-bean="jmsConfig" factory-method="copy"/>
|
||||||
|
|
||||||
|
<bean id="jmsDurableConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
|
factory-bean="jmsConfig" factory-method="copy">
|
||||||
|
<property name="destinationResolver" ref="qpidDurableResolver" />
|
||||||
|
<property name="deliveryPersistent" value="true"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="qpidNoDurableResolver" class="com.raytheon.uf.edex.esb.camel.spring.QpidDestinationNameResolver">
|
<bean id="qpidNoDurableResolver" class="com.raytheon.uf.edex.esb.camel.spring.QpidDestinationNameResolver">
|
||||||
<property name="queueNamePrefix" value="direct://amq.direct/"/>
|
<property name="queueNamePrefix" value="direct://amq.direct/"/>
|
||||||
|
@ -71,6 +82,7 @@
|
||||||
<property name="templateConnectionFactory" ref="jmsPooledConnectionFactory" />
|
<property name="templateConnectionFactory" ref="jmsPooledConnectionFactory" />
|
||||||
<property name="destinationResolver" ref="qpidNoDurableResolver" />
|
<property name="destinationResolver" ref="qpidNoDurableResolver" />
|
||||||
<property name="disableReplyTo" value="true" />
|
<property name="disableReplyTo" value="true" />
|
||||||
|
<property name="deliveryPersistent" value="false"/>
|
||||||
<!--
|
<!--
|
||||||
<property name="transacted" value="true" />
|
<property name="transacted" value="true" />
|
||||||
<property name="acknowledgementModeName" value="TRANSACTED"/>
|
<property name="acknowledgementModeName" value="TRANSACTED"/>
|
||||||
|
@ -253,14 +265,14 @@
|
||||||
<route id="alertVizNotify">
|
<route id="alertVizNotify">
|
||||||
<from uri="vm:edex.alertVizNotification" />
|
<from uri="vm:edex.alertVizNotification" />
|
||||||
<bean ref="serializationUtil" method="transformToThrift" />
|
<bean ref="serializationUtil" method="transformToThrift" />
|
||||||
<to uri="jms-generic:topic:edex.alerts.msg?deliveryPersistent=false" />
|
<to uri="jms-generic:topic:edex.alerts.msg" />
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<!-- Route to send text products to alarm/alert -->
|
<!-- Route to send text products to alarm/alert -->
|
||||||
<route id="alarmAlertNotify">
|
<route id="alarmAlertNotify">
|
||||||
<from uri="vm:edex.alarmAlertNotification" />
|
<from uri="vm:edex.alarmAlertNotification" />
|
||||||
<bean ref="serializationUtil" method="transformToThrift" />
|
<bean ref="serializationUtil" method="transformToThrift" />
|
||||||
<to uri="jms-generic:topic:edex.alarms.msg?deliveryPersistent=false" />
|
<to uri="jms-generic:topic:edex.alarms.msg" />
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<!-- Route to periodically close any unused jms resources that have been pooled -->
|
<!-- Route to periodically close any unused jms resources that have been pooled -->
|
||||||
|
|
|
@ -1,75 +1,73 @@
|
||||||
#*
|
#*
|
||||||
CREATED 1-25-2012 BY MIKE DANGELO AND EVAN BOOKBINDER
|
UPDATED 9-16-2013 BY MIKE DANGELO AND EVAN BOOKBINDER
|
||||||
|
|
||||||
Here are some examples of very simple INTERSTATE output
|
### THIS PLUG-IN VM FILE ALLOWS YOU TO CONSOLIDATE ALL YOUR MILEMARKER/EXIT/ROUTE
|
||||||
(one line/sentence per interstate):
|
### OUTPUT INTO A SINGLE FUNCTION CALL
|
||||||
|
|
||||||
#mmarkers(${i70momm},${i70mommid},"INTERSTATE 70 IN MISSOURI","MILE MARKER",false)
|
Mile Marker Macro
|
||||||
#mmarkers(${i70momm},${i70mommid},"INTERSTATE 70 IN MISSOURI","MILE MARKER",true)
|
|
||||||
#mmarkers(${i70momm},${i70mommid},"INTERSTATE 70 IN MISSOURI","",false)
|
|
||||||
#mmarkers(${i70momm},${i70mommid},"INTERSTATE 70 IN MISSOURI","",true)
|
|
||||||
#mmarkers(${i435mm},${i435mmid},"INTERSTATE 435 IN MISSOURI","",false)
|
|
||||||
#mmarkers(${i435mm},${i435mmid},"INTERSTATE 435 IN MISSOURI","",true)
|
|
||||||
#mmarkers(${i435mm},${i435mmid},"INTERSTATE 435 IN MISSOURI","MILE MARKER",false)
|
|
||||||
#mmarkers(${i435mm},${i435mmid},"INTERSTATE 435 IN MISSOURI","MILE MARKER",true)
|
|
||||||
|
|
||||||
Mile Marker Test Code
|
|
||||||
macro "mmarkers" use (called out of VM_global_library.vm):
|
macro "mmarkers" use (called out of VM_global_library.vm):
|
||||||
#mmarkers($name, $id, $type, $markers, $simplify)
|
#macro(mmarkers $markers $id $name $type $simplify)
|
||||||
where the argument:
|
where the argument:
|
||||||
|
$markers is a string, and is the exact "variable" set in the XML "pointSource" tag for this road
|
||||||
|
- <pointSource variable="i70momm">
|
||||||
|
$id is the sequential ID database field to determine logical breaks in the mile markers
|
||||||
|
set in the XML "pointSource" tag for this road
|
||||||
|
- <pointSource variable="i70mommid">
|
||||||
$name is a string "OUTPUT TEXT" of the road name
|
$name is a string "OUTPUT TEXT" of the road name
|
||||||
$id is the sequential ID database field to determine logical breaks in the mile markers
|
|
||||||
$type is a string which describes the type of "marker"
|
$type is a string which describes the type of "marker"
|
||||||
- may be "MILE MARKER" or something similar, or blank ""
|
- may be "MILE MARKER" or something similar, or blank ""
|
||||||
- "" is for use when town names (CHARLESTON) or exit names (THE SUNSET EXIT)
|
- "" is for use when town names (CHARLESTON) or exit names (THE SUNSET EXIT)
|
||||||
$markers is a string, and is the exact "variable" set in the XML "pointSource" tag for this road
|
|
||||||
- <pointSource variable="i70momm">
|
|
||||||
$simplify is a boolean value (true or false)
|
$simplify is a boolean value (true or false)
|
||||||
- true concatenates (FROM MM 2 to 4),
|
- true concatenates (FROM MM 2 to 4),
|
||||||
- false is a big list (MM 2...3...AND 4)
|
- false is a big list (MM 2...3...AND 4)
|
||||||
|
|
||||||
From mileMarkers.xml
|
CONFIGURATION:
|
||||||
$databaseName is an array of pointSource objects containing the milemarker names
|
#COMMENT OUT LINES 59-62 BELOW AS NEEDED, REPLACING THE EXAMPLE WITH YOUR MILE MARKER/ROUTE ENTRIES
|
||||||
$databaseId is an array of pointSource objects containing the milemarker IDs
|
#EACH LINE CONTAINS A VARIABLE MM1,MM2,MM3,etc... REFERENCING AN ARRAY (LIST) OF DATA THAT
|
||||||
$specificName is an array of plain English names for the Interstates, Routes, etc..
|
#WILL BE PASSED TO THE MMARKERS ROUTINE.
|
||||||
e.g.
|
|
||||||
#set ($databaseName = [${i435mm},${i70momm},${i35momm}])
|
|
||||||
#set ($databaseId = [${i435mmid},${i70mommid},${i35mommid}])
|
|
||||||
#set ($specificName = ['INTERSTATE 435','INTERSTATE 70','INTERSTATE 35'])
|
|
||||||
|
|
||||||
The following code makes upkeep of the mile marker files easier, and is
|
The items in the array are as follows:
|
||||||
reccomended for use.
|
1.) java Object - A pointSource object from mileMarkers.xml containing the milemarker names
|
||||||
Substitute all your "INTERSTATE NAME(s)" into the array: $specificName
|
2.) java Object - A pointSource object from mileMarkers.xml containing the milemarker IDs or index
|
||||||
Likewise,
|
3.) String - A plain English name for the Interstates, Routes, etc..
|
||||||
Substitute all your corresponding database table names (${tablename}) for those
|
4.) String - A plain English name describing the output (mile marker, exit, etc...)
|
||||||
interstates into the array: $databaseName
|
Can be blank ''. Make sure the singular phrase is used (an "S" will be auto-applied for
|
||||||
You may also use town names or exit names
|
plural values. e.g. MILE MARKERS 3 AND 10
|
||||||
in the "name" field of your database tables.
|
5.) Boolean - A true/false value telling the function whether to group the milemarkers where
|
||||||
|
possible, or list them individually. For mile markers that are text (such as exits or
|
||||||
|
intersections, false might be a better option)
|
||||||
|
|
||||||
|
NOTE: PLEASE ENSURE PROPER SYNTAX. Java Objects are ${variable}, Text Strings are 'TEXT', and
|
||||||
|
Booleans are true/false (no quote)
|
||||||
|
ALSO ENSURE THAT EACH LINE CONTAINS A UNIQUE VARIABLE NAME: MM1, MM2, MM3, etc..
|
||||||
|
|
||||||
|
|
||||||
|
HERE IS AN EXAMPLE:
|
||||||
|
e.g.
|
||||||
|
#set ($mm1 = [${i435mm},${i435mmid},'INTERSTATE 435','MILE MARKER',true])
|
||||||
|
#set ($mm2 = [${i70momm},${i70mommid},'INTERSTATE 70 IN MISSOURI','MILE MARKER',true])
|
||||||
|
#set ($mm3 = [${i35momm},${i35mommid},'INTERSTATE 70 IN KANSAS','MILE MARKER',true])
|
||||||
|
|
||||||
|
After creating these, we must create a list containing all of our variable names
|
||||||
|
e.g.
|
||||||
|
#set ($varList = [$mm1,$mm2,$mm3])
|
||||||
*#
|
*#
|
||||||
|
|
||||||
#set($hits = 0)
|
#set($hits = 0)
|
||||||
#set($bigList = '')
|
#set($bigList = '')
|
||||||
##set ($databaseName = [${i435mm},${i70momm},${i35momm}])
|
|
||||||
##set ($databaseId = [${i435mmid},${i70mommid},${i35mommid}])
|
##set ($mm1 = [${i435mm},${i435mmid},'INTERSTATE 435','MILE MARKER',true])
|
||||||
##set ($specificName = ['INTERSTATE 435','INTERSTATE 70','INTERSTATE 35'])
|
##set ($mm2 = [${i70momm},${i70mommid},'INTERSTATE 70 IN MISSOURI','MILE MARKER',true])
|
||||||
#set ($itemCount = 0)
|
##set ($mm3 = [${i35momm},${i35mommid},'INTERSTATE 70 IN KANSAS','MILE MARKER',true])
|
||||||
#foreach($specName in $specificName)
|
##set ($varList = [$mm1,$mm2,$mm3])
|
||||||
#set ($itemCount = $itemCount + 1)
|
|
||||||
#set ($itemCount2 = 0)
|
#foreach ($var in $varList)
|
||||||
#foreach($dbName in $databaseName)
|
#set ($checker = "#mmarkers(${list.get(${var},0)},${list.get(${var},1)},${list.get(${var},2)},${list.get(${var},3)},${list.get(${var},4)})")
|
||||||
#set ($itemCount2 = $itemCount2 + 1)
|
|
||||||
#set ($itemCount3 = 0)
|
|
||||||
#foreach($dbId in $databaseId)
|
|
||||||
#set ($itemCount3 = $itemCount3 + 1)
|
|
||||||
#if ($itemCount3 == $itemCount2 && $itemCount2 == $itemCount)
|
|
||||||
#set ($checker = "#mmarkers(${dbName},${dbId},${specName},'MILE MARKER',true)")
|
|
||||||
#if ($checker.length() > 0)
|
#if ($checker.length() > 0)
|
||||||
#set ($hits = $hits + 1)
|
#set ($hits = $hits + 1)
|
||||||
#set ($bigList = "$bigList $checker")
|
#set ($bigList = "$bigList $checker")
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
#if ($hits == 1)
|
#if ($hits == 1)
|
||||||
THIS INCLUDES$bigList
|
THIS INCLUDES$bigList
|
||||||
#end
|
#end
|
||||||
|
|
|
@ -8,22 +8,52 @@
|
||||||
SHOULD BE MODIFIED.
|
SHOULD BE MODIFIED.
|
||||||
|
|
||||||
EXAMPLE FOR INTERSTATE 435 in the Kansas City Metro follows:
|
EXAMPLE FOR INTERSTATE 435 in the Kansas City Metro follows:
|
||||||
|
|
||||||
|
|
||||||
<pointSource variable="i435mm">
|
<pointSource variable="i435mm">
|
||||||
<pointSource>i435mm</pointSource>
|
<pointSource>i435</pointSource>
|
||||||
<pointField>NAME</pointField>
|
<pointField>NAME</pointField>
|
||||||
<searchMethod>POINTS</searchMethod>
|
<searchMethod>POINTS</searchMethod>
|
||||||
<withinPolygon>true</withinPolygon>
|
<withinPolygon>true</withinPolygon>
|
||||||
<maxResults>1000</maxResults>
|
<maxResults>1000</maxResults>
|
||||||
<distanceThreshold>100</distanceThreshold>
|
<distanceThreshold>100</distanceThreshold>
|
||||||
|
<sortBy>
|
||||||
|
<sort>gid</sort>
|
||||||
|
</sortBy>
|
||||||
</pointSource>
|
</pointSource>
|
||||||
<pointSource variable="i435mmid">
|
<pointSource variable="i435mmid">
|
||||||
<pointSource>i435mm</pointSource>
|
<pointSource>i435</pointSource>
|
||||||
<pointField>GID</pointField>
|
<pointField>GID</pointField>
|
||||||
<searchMethod>POINTS</searchMethod>
|
<searchMethod>POINTS</searchMethod>
|
||||||
<withinPolygon>true</withinPolygon>
|
<withinPolygon>true</withinPolygon>
|
||||||
<maxResults>1000</maxResults>
|
<maxResults>1000</maxResults>
|
||||||
<distanceThreshold>100</distanceThreshold>
|
<distanceThreshold>100</distanceThreshold>
|
||||||
|
<sortBy>
|
||||||
|
<sort>gid</sort>
|
||||||
|
</sortBy>
|
||||||
</pointSource>
|
</pointSource>
|
||||||
|
|
||||||
-->
|
<pointSource variable="i35momm">
|
||||||
|
<pointSource>i35mo</pointSource>
|
||||||
|
<pointField>NAME</pointField>
|
||||||
|
<searchMethod>POINTS</searchMethod>
|
||||||
|
<withinPolygon>true</withinPolygon>
|
||||||
|
<maxResults>1000</maxResults>
|
||||||
|
<distanceThreshold>100</distanceThreshold>
|
||||||
|
<sortBy>
|
||||||
|
<sort>gid</sort>
|
||||||
|
</sortBy>
|
||||||
|
</pointSource>
|
||||||
|
<pointSource variable="i35mommid">
|
||||||
|
<pointSource>i35mo</pointSource>
|
||||||
|
<pointField>GID</pointField>
|
||||||
|
<searchMethod>POINTS</searchMethod>
|
||||||
|
<withinPolygon>true</withinPolygon>
|
||||||
|
<maxResults>1000</maxResults>
|
||||||
|
<distanceThreshold>100</distanceThreshold>
|
||||||
|
<sortBy>
|
||||||
|
<sort>gid</sort>
|
||||||
|
</sortBy>
|
||||||
|
</pointSource>
|
||||||
|
-->
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
<!-- LDAD (watch/warn) triggered script runner -->
|
<!-- LDAD (watch/warn) triggered script runner -->
|
||||||
<route id="ldadWatchWarn">
|
<route id="ldadWatchWarn">
|
||||||
<from uri="jms-generic:queue:watchwarn?destinationResolver=#qpidDurableResolver"/>
|
<from uri="jms-durable:queue:watchwarn"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="ldadScriptRunner" method="runScripts" />
|
<bean ref="ldadScriptRunner" method="runScripts" />
|
||||||
<doCatch>
|
<doCatch>
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<method bean="uriAggregator" method="hasUris" />
|
<method bean="uriAggregator" method="hasUris" />
|
||||||
<bean ref="uriAggregator" method="sendQueuedUris" />
|
<bean ref="uriAggregator" method="sendQueuedUris" />
|
||||||
<bean ref="serializationUtil" method="transformToThrift" />
|
<bean ref="serializationUtil" method="transformToThrift" />
|
||||||
<to uri="jms-generic:topic:edex.alerts?timeToLive=60000&deliveryPersistent=false"/>
|
<to uri="jms-generic:topic:edex.alerts?timeToLive=60000"/>
|
||||||
</filter>
|
</filter>
|
||||||
</route>
|
</route>
|
||||||
</camelContext>
|
</camelContext>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<bean id="airepDistRegistry" factory-bean="distributionSrv"
|
<bean id="airepDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="airep" />
|
<constructor-arg value="airep" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.airep" />
|
<constructor-arg value="jms-dist:queue:Ingest.airep"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="airepCamelRegistered" factory-bean="contextManager"
|
<bean id="airepCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -33,13 +33,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>airep</constant>
|
<constant>airep</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.airep" />
|
<to uri="jms-durable:queue:Ingest.airep" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin airep routes -->
|
<!-- Begin airep routes -->
|
||||||
<route id="airepIngestRoute">
|
<route id="airepIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.airep?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.airep"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>airep</constant>
|
<constant>airep</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<bean id="binlightningDistRegistry" factory-bean="distributionSrv"
|
<bean id="binlightningDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="binlightning" />
|
<constructor-arg value="binlightning" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.binlightning?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.binlightning" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="binlightningCamelRegistered" factory-bean="clusteredCamelContextMgr"
|
<bean id="binlightningCamelRegistered" factory-bean="clusteredCamelContextMgr"
|
||||||
|
@ -31,13 +31,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>binlightning</constant>
|
<constant>binlightning</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.binlightning" />
|
<to uri="jms-durable:queue:Ingest.binlightning" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin binlightning routes -->
|
<!-- Begin binlightning routes -->
|
||||||
<route id="binlightningIngestRoute">
|
<route id="binlightningIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.binlightning?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.binlightning"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>binlightning</constant>
|
<constant>binlightning</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<bean id="bufrmosDistRegistry" factory-bean="distributionSrv"
|
<bean id="bufrmosDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="bufrmos" />
|
<constructor-arg value="bufrmos" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.bufrmos?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.bufrmos" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="bufrmosCamelRegistered" factory-bean="contextManager"
|
<bean id="bufrmosCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -30,13 +30,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrmos</constant>
|
<constant>bufrmos</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrmos" />
|
<to uri="jms-durable:queue:Ingest.bufrmos" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin bufrmos routes -->
|
<!-- Begin bufrmos routes -->
|
||||||
<route id="bufrmosIngestRoute">
|
<route id="bufrmosIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrmos?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.bufrmos" />
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrmos</constant>
|
<constant>bufrmos</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -32,13 +32,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrua</constant>
|
<constant>bufrua</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrua"/>
|
<to uri="jms-durable:queue:Ingest.bufrua"/>
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin BUFRUA routes -->
|
<!-- Begin BUFRUA routes -->
|
||||||
<route id="bufruaIngestRoute">
|
<route id="bufruaIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrua?destinationResolver=#qpidDurableResolver"/>
|
<from uri="jms-durable:queue:Ingest.bufrua"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrua</constant>
|
<constant>bufrua</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>ccfp</constant>
|
<constant>ccfp</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.ccfp" />
|
<to uri="jms-durable:queue:Ingest.ccfp" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin ccfp routes -->
|
<!-- Begin ccfp routes -->
|
||||||
<route id="ccfpIngestRoute">
|
<route id="ccfpIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.ccfp?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.ccfp"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>ccfp</constant>
|
<constant>ccfp</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
errorHandlerRef="errorHandler">
|
errorHandlerRef="errorHandler">
|
||||||
|
|
||||||
<route id="gfeParmIdCacheListenerEndpoint">
|
<route id="gfeParmIdCacheListenerEndpoint">
|
||||||
<from uri="jms-generic:topic:gfeGribNotification?concurrentConsumers=1" />
|
<from uri="jms-generic:topic:gfeGribNotification"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="parmIdFilter" method="updateParmIdCache" />
|
<bean ref="parmIdFilter" method="updateParmIdCache" />
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="rebuildD2DCacheAfterPurge">
|
<route id="rebuildD2DCacheAfterPurge">
|
||||||
<from uri="jms-generic:topic:pluginPurged" />
|
<from uri="jms-durable:topic:pluginPurged" />
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="d2dParmIdCache" method="pluginPurged" />
|
<bean ref="d2dParmIdCache" method="pluginPurged" />
|
||||||
<doCatch>
|
<doCatch>
|
||||||
|
|
|
@ -464,9 +464,9 @@
|
||||||
<constructor-arg ref="jmsIscSendConfig" />
|
<constructor-arg ref="jmsIscSendConfig" />
|
||||||
<property name="taskExecutor" ref="iscSendThreadPool" />
|
<property name="taskExecutor" ref="iscSendThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIscSendConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsIscSendConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy" />
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
<bean id="iscSendThreadPool"
|
<bean id="iscSendThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="2" />
|
<property name="corePoolSize" value="2" />
|
||||||
<property name="maxPoolSize" value="2" />
|
<property name="maxPoolSize" value="2" />
|
||||||
|
@ -487,11 +487,11 @@
|
||||||
<!-- ISC Receive Beans -->
|
<!-- ISC Receive Beans -->
|
||||||
|
|
||||||
<bean id="jms-iscrec" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-iscrec" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIscReceiveConfig" />
|
<constructor-arg ref="jmsIscRecConfig" />
|
||||||
<property name="taskExecutor" ref="iscReceiveThreadPool" />
|
<property name="taskExecutor" ref="iscReceiveThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIscReceiveConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsIscRecConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy" />
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
<bean id="iscReceiveThreadPool"
|
<bean id="iscReceiveThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="2" />
|
<property name="corePoolSize" value="2" />
|
||||||
|
@ -623,7 +623,7 @@
|
||||||
|
|
||||||
<!-- ISC Data Receive route -->
|
<!-- ISC Data Receive route -->
|
||||||
<route id="iscReceiveRoute">
|
<route id="iscReceiveRoute">
|
||||||
<from uri="jms-iscrec:queue:gfeIscDataReceive?concurrentConsumers=2&destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-iscrec:queue:gfeIscDataReceive?concurrentConsumers=2"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
|
@ -643,7 +643,7 @@
|
||||||
errorHandlerRef="errorHandler" autoStartup="false">
|
errorHandlerRef="errorHandler" autoStartup="false">
|
||||||
|
|
||||||
<route id="iscSendJobQueueAggr">
|
<route id="iscSendJobQueueAggr">
|
||||||
<from uri="jms-iscsend:queue:iscSendNotification?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-iscsend:queue:iscSendNotification" />
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="iscSendQueue" method="addSendJobs" />
|
<bean ref="iscSendQueue" method="addSendJobs" />
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
<constructor-arg ref="jmsSmartInitConfig" />
|
<constructor-arg ref="jmsSmartInitConfig" />
|
||||||
<property name="taskExecutor" ref="smartInitThreadPool" />
|
<property name="taskExecutor" ref="smartInitThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsSmartInitConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsSmartInitConfig" class="org.apache.camel.component.jms.JmsConfiguration" factory-bean="jmsDurableConfig"
|
||||||
factory-bean="jmsConfig" factory-method="copy" />
|
factory-method="copy"/>
|
||||||
<bean id="smartInitThreadPool"
|
<bean id="smartInitThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="${smartinit.threadpoolsize}" />
|
<property name="corePoolSize" value="${smartinit.threadpoolsize}" />
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
xmlns="http://camel.apache.org/schema/spring"
|
xmlns="http://camel.apache.org/schema/spring"
|
||||||
errorHandlerRef="errorHandler">
|
errorHandlerRef="errorHandler">
|
||||||
<route id="SPCWatch">
|
<route id="SPCWatch">
|
||||||
<from uri="jms-generic:queue:edex.spcWatch?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:edex.spcWatch"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="spcWatch" method="handleSpcWatch" />
|
<bean ref="spcWatch" method="handleSpcWatch" />
|
||||||
<doCatch>
|
<doCatch>
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="TPCWatch">
|
<route id="TPCWatch">
|
||||||
<from uri="jms-generic:queue:edex.tpcWatch?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:edex.tpcWatch"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="tpcWatch" method="handleTpcWatch" />
|
<bean ref="tpcWatch" method="handleTpcWatch" />
|
||||||
<doCatch>
|
<doCatch>
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
|
|
||||||
<!-- gfeIngestNotification must be a singleton and has 4 threads to read due to throughput of messages during model run times -->
|
<!-- gfeIngestNotification must be a singleton and has 4 threads to read due to throughput of messages during model run times -->
|
||||||
<route id="gfeIngestNotification">
|
<route id="gfeIngestNotification">
|
||||||
<from uri="jms-generic:queue:gfeDataURINotification?destinationResolver=#qpidDurableResolver&concurrentConsumers=4" />
|
<from uri="jms-durable:queue:gfeDataURINotification?concurrentConsumers=4" />
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="gfeIngestFilter" method="filterDataURINotifications" />
|
<bean ref="gfeIngestFilter" method="filterDataURINotifications" />
|
||||||
|
@ -117,9 +117,9 @@
|
||||||
|
|
||||||
<!-- Convert the topic into a queue so only one consumer gets each message and we still have competing consumers. -->
|
<!-- Convert the topic into a queue so only one consumer gets each message and we still have competing consumers. -->
|
||||||
<route id="gfeDataURINotificationQueueRoute">
|
<route id="gfeDataURINotificationQueueRoute">
|
||||||
<from uri="jms-gfe-notify:topic:edex.alerts" />
|
<from uri="jms-generic:topic:edex.alerts" />
|
||||||
<doTry>
|
<doTry>
|
||||||
<to uri="jms-generic:queue:gfeDataURINotification"/>
|
<to uri="jms-durable:queue:gfeDataURINotification"/>
|
||||||
<doCatch>
|
<doCatch>
|
||||||
<exception>java.lang.Throwable</exception>
|
<exception>java.lang.Throwable</exception>
|
||||||
<to
|
<to
|
||||||
|
@ -128,40 +128,6 @@
|
||||||
</doTry>
|
</doTry>
|
||||||
</route>
|
</route>
|
||||||
</camelContext>
|
</camelContext>
|
||||||
|
|
||||||
<!-- Beans to define a custom jms connection which will allow a durable subscription -->
|
|
||||||
<bean id="gfeNotifyConnectionFactory" class="org.apache.qpid.client.AMQConnectionFactory">
|
|
||||||
<constructor-arg type="java.lang.String" value="amqp://guest:guest@gfeNotify/edex?brokerlist='tcp://${BROKER_ADDR}?retries='9999'&connecttimeout='5000'&connectdelay='5000''&maxprefetch='0'&sync_publish='all'&sync_ack='true'"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="gfeNotifyPooledConnectionFactory" class="com.raytheon.uf.common.jms.JmsPooledConnectionFactory">
|
|
||||||
<constructor-arg ref="gfeNotifyConnectionFactory"/>
|
|
||||||
<property name="provider" value="QPID"/>
|
|
||||||
<property name="reconnectInterval" value="5000"/>
|
|
||||||
<!-- After connection has been closed by thread keep it allocated for another 90 seconds in case thread needs it again -->
|
|
||||||
<property name="connectionHoldTime" value="90000"/>
|
|
||||||
<!-- Any resource that has been available in the pool for more than 1 minute will be closed -->
|
|
||||||
<property name="resourceRetention" value="60000"/>
|
|
||||||
<property name="maxSpareConnections" value="1"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="gfeNotifyJmsConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
|
||||||
factory-bean="jmsConfig" factory-method="copy">
|
|
||||||
<property name="listenerConnectionFactory" ref="gfeNotifyPooledConnectionFactory" />
|
|
||||||
<property name="templateConnectionFactory" ref="gfeNotifyPooledConnectionFactory" />
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="gfeNotifyThreadPool"
|
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
|
||||||
<property name="corePoolSize" value="1" />
|
|
||||||
<property name="maxPoolSize" value="1" />
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="jms-gfe-notify" class="org.apache.camel.component.jms.JmsComponent">
|
|
||||||
<constructor-arg ref="gfeNotifyJmsConfig" />
|
|
||||||
<property name="taskExecutor" ref="gfeNotifyThreadPool" />
|
|
||||||
</bean>
|
|
||||||
<!-- end of custom JMS beans -->
|
|
||||||
|
|
||||||
<bean factory-bean="clusteredCamelContextMgr"
|
<bean factory-bean="clusteredCamelContextMgr"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
package com.raytheon.edex.plugin.gfe.cache.d2dparms;
|
package com.raytheon.edex.plugin.gfe.cache.d2dparms;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -72,6 +71,8 @@ import com.raytheon.uf.edex.site.SiteAwareRegistry;
|
||||||
* Mar 20, 2013 #1774 randerso Changed to use GFDD2DDao
|
* Mar 20, 2013 #1774 randerso Changed to use GFDD2DDao
|
||||||
* Apr 01, 2013 #1774 randerso Moved wind component checking to GfeIngestNotificaionFilter
|
* Apr 01, 2013 #1774 randerso Moved wind component checking to GfeIngestNotificaionFilter
|
||||||
* May 14, 2013 #2004 randerso Added DBInvChangeNotifications when D2D data is purged
|
* May 14, 2013 #2004 randerso Added DBInvChangeNotifications when D2D data is purged
|
||||||
|
* Sep 12, 2013 #2348 randerso Changed to send DBInvChangeNotifications in a batch instead
|
||||||
|
* of one at a time.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -346,13 +347,8 @@ public class D2DParmIdCache {
|
||||||
putParmIDList(parmIds);
|
putParmIDList(parmIds);
|
||||||
List<DatabaseID> currentDbInventory = this.getDatabaseIDs();
|
List<DatabaseID> currentDbInventory = this.getDatabaseIDs();
|
||||||
dbsToRemove.removeAll(currentDbInventory);
|
dbsToRemove.removeAll(currentDbInventory);
|
||||||
List<DBInvChangeNotification> invChgList = new ArrayList<DBInvChangeNotification>(
|
SendNotifications.send(new DBInvChangeNotification(null,
|
||||||
dbsToRemove.size());
|
dbsToRemove, siteID));
|
||||||
for (DatabaseID dbId : dbsToRemove) {
|
|
||||||
invChgList.add(new DBInvChangeNotification(null, Arrays
|
|
||||||
.asList(dbId), siteID));
|
|
||||||
}
|
|
||||||
SendNotifications.send(invChgList);
|
|
||||||
|
|
||||||
// inform GfeIngestNotificationFilter of removed dbs
|
// inform GfeIngestNotificationFilter of removed dbs
|
||||||
GfeIngestNotificationFilter.purgeDbs(dbsToRemove);
|
GfeIngestNotificationFilter.purgeDbs(dbsToRemove);
|
||||||
|
|
|
@ -88,7 +88,7 @@ import com.raytheon.uf.edex.site.notify.SendSiteActivationNotifications;
|
||||||
* activation.
|
* activation.
|
||||||
* Mar 20, 2013 #1774 randerso Changed to use GFED2DDao
|
* Mar 20, 2013 #1774 randerso Changed to use GFED2DDao
|
||||||
* May 02, 2013 #1969 randerso Moved updateDbs method into IFPGridDatabase
|
* May 02, 2013 #1969 randerso Moved updateDbs method into IFPGridDatabase
|
||||||
*
|
* Sep 13, 2013 2368 rjpeter Used durable jms settings.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author njensen
|
* @author njensen
|
||||||
|
@ -115,7 +115,7 @@ public class GFESiteActivation implements ISiteActivationListener {
|
||||||
|
|
||||||
private boolean intialized = false;
|
private boolean intialized = false;
|
||||||
|
|
||||||
private ExecutorService postActivationTaskExecutor = MoreExecutors
|
private final ExecutorService postActivationTaskExecutor = MoreExecutors
|
||||||
.getExitingExecutorService((ThreadPoolExecutor) Executors
|
.getExitingExecutorService((ThreadPoolExecutor) Executors
|
||||||
.newCachedThreadPool());
|
.newCachedThreadPool());
|
||||||
|
|
||||||
|
@ -356,7 +356,7 @@ public class GFESiteActivation implements ISiteActivationListener {
|
||||||
GridDatabase db = GridParmManager.getDb(dbid);
|
GridDatabase db = GridParmManager.getDb(dbid);
|
||||||
// cluster locked since IFPGridDatabase can modify the grids
|
// cluster locked since IFPGridDatabase can modify the grids
|
||||||
// based on changes to grid size, etc
|
// based on changes to grid size, etc
|
||||||
if (db instanceof IFPGridDatabase && db.databaseIsValid()) {
|
if ((db instanceof IFPGridDatabase) && db.databaseIsValid()) {
|
||||||
((IFPGridDatabase) db).updateDbs();
|
((IFPGridDatabase) db).updateDbs();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -410,7 +410,7 @@ public class GFESiteActivation implements ISiteActivationListener {
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
// wait for system startup or at least 3 minutes
|
// wait for system startup or at least 3 minutes
|
||||||
while (!EDEXUtil.isRunning()
|
while (!EDEXUtil.isRunning()
|
||||||
|| System.currentTimeMillis() > startTime + 180000) {
|
|| (System.currentTimeMillis() > (startTime + 180000))) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(15000);
|
Thread.sleep(15000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
@ -420,7 +420,7 @@ public class GFESiteActivation implements ISiteActivationListener {
|
||||||
|
|
||||||
ClusterTask ct = ClusterLockUtils.lookupLock(TASK_NAME,
|
ClusterTask ct = ClusterLockUtils.lookupLock(TASK_NAME,
|
||||||
SMART_INIT_TASK_DETAILS + siteID);
|
SMART_INIT_TASK_DETAILS + siteID);
|
||||||
if (ct.getLastExecution() + SMART_INIT_TIMEOUT < System
|
if ((ct.getLastExecution() + SMART_INIT_TIMEOUT) < System
|
||||||
.currentTimeMillis()) {
|
.currentTimeMillis()) {
|
||||||
ct = ClusterLockUtils.lock(TASK_NAME,
|
ct = ClusterLockUtils.lock(TASK_NAME,
|
||||||
SMART_INIT_TASK_DETAILS + siteID,
|
SMART_INIT_TASK_DETAILS + siteID,
|
||||||
|
@ -467,7 +467,7 @@ public class GFESiteActivation implements ISiteActivationListener {
|
||||||
"Firing smartinit for " + id);
|
"Firing smartinit for " + id);
|
||||||
try {
|
try {
|
||||||
producer.sendAsyncUri(
|
producer.sendAsyncUri(
|
||||||
"jms-generic:queue:manualSmartInit",
|
"jms-durable:queue:manualSmartInit",
|
||||||
id
|
id
|
||||||
+ ":0::"
|
+ ":0::"
|
||||||
+ SmartInitRecord.SITE_ACTIVATION_INIT_PRIORITY);
|
+ SmartInitRecord.SITE_ACTIVATION_INIT_PRIORITY);
|
||||||
|
@ -499,7 +499,7 @@ public class GFESiteActivation implements ISiteActivationListener {
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
// wait for system startup or at least 3 minutes
|
// wait for system startup or at least 3 minutes
|
||||||
while (!EDEXUtil.isRunning()
|
while (!EDEXUtil.isRunning()
|
||||||
|| System.currentTimeMillis() > startTime + 180000) {
|
|| (System.currentTimeMillis() > (startTime + 180000))) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(15000);
|
Thread.sleep(15000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|
|
@ -100,6 +100,12 @@ import com.raytheon.uf.edex.database.purge.PurgeLogger;
|
||||||
* Removed inventory from DBInvChangedNotification
|
* Removed inventory from DBInvChangedNotification
|
||||||
* 05/03/13 #1974 randerso Fixed error logging to include stack trace
|
* 05/03/13 #1974 randerso Fixed error logging to include stack trace
|
||||||
* 05/14/13 #2004 randerso Added methods to synch GridParmManager across JVMs
|
* 05/14/13 #2004 randerso Added methods to synch GridParmManager across JVMs
|
||||||
|
* 09/12/13 #2348 randerso Added logging when database are added/removed from dbMap
|
||||||
|
* Fixed the synchronization of dbMap with the database inventory
|
||||||
|
* Changed to call D2DGridDatabase.getDatabase instead of calling
|
||||||
|
* the constructor directly to ensure the data exists before creating
|
||||||
|
* the D2DGridDatabase object
|
||||||
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author bphillip
|
* @author bphillip
|
||||||
|
@ -1016,10 +1022,10 @@ public class GridParmManager {
|
||||||
sr.addMessage("VersionPurge failed - couldn't get inventory");
|
sr.addMessage("VersionPurge failed - couldn't get inventory");
|
||||||
return sr;
|
return sr;
|
||||||
}
|
}
|
||||||
List<DatabaseID> databases = sr.getPayload();
|
List<DatabaseID> currentInv = sr.getPayload();
|
||||||
|
|
||||||
// sort the inventory by site, type, model, time (most recent first)
|
// sort the inventory by site, type, model, time (most recent first)
|
||||||
Collections.sort(databases);
|
Collections.sort(currentInv);
|
||||||
|
|
||||||
// process the inventory looking for "old" unwanted databases
|
// process the inventory looking for "old" unwanted databases
|
||||||
String model = null;
|
String model = null;
|
||||||
|
@ -1027,7 +1033,7 @@ public class GridParmManager {
|
||||||
String type = null;
|
String type = null;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int desiredVersions = 0;
|
int desiredVersions = 0;
|
||||||
for (DatabaseID dbId : databases) {
|
for (DatabaseID dbId : currentInv) {
|
||||||
// new series?
|
// new series?
|
||||||
if (!dbId.getSiteId().equals(site)
|
if (!dbId.getSiteId().equals(site)
|
||||||
|| !dbId.getDbType().equals(type)
|
|| !dbId.getDbType().equals(type)
|
||||||
|
@ -1055,11 +1061,31 @@ public class GridParmManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<DatabaseID> newInv = getDbInventory(siteID).getPayload();
|
||||||
|
List<DatabaseID> additions = new ArrayList<DatabaseID>(newInv);
|
||||||
|
additions.removeAll(currentInv);
|
||||||
|
|
||||||
|
List<DatabaseID> deletions = new ArrayList<DatabaseID>(currentInv);
|
||||||
|
deletions.removeAll(newInv);
|
||||||
|
|
||||||
// kludge to keep dbMap in synch until GridParmManager/D2DParmICache
|
// kludge to keep dbMap in synch until GridParmManager/D2DParmICache
|
||||||
// merge/refactor
|
// merge/refactor
|
||||||
dbMap.keySet().retainAll(databases);
|
List<DatabaseID> toRemove = new ArrayList<DatabaseID>(dbMap.keySet());
|
||||||
|
toRemove.removeAll(newInv);
|
||||||
|
for (DatabaseID dbId : toRemove) {
|
||||||
|
statusHandler
|
||||||
|
.info("Synching GridParmManager with database inventory, removing "
|
||||||
|
+ dbId);
|
||||||
|
dbMap.remove(dbId);
|
||||||
|
|
||||||
createDbNotification(siteID, databases);
|
// add any removals to the deletions list
|
||||||
|
// so notifications go to the other JVMs
|
||||||
|
if (!deletions.contains(dbId)) {
|
||||||
|
deletions.add(dbId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
createDbNotification(siteID, additions, deletions);
|
||||||
|
|
||||||
return sr;
|
return sr;
|
||||||
}
|
}
|
||||||
|
@ -1220,8 +1246,8 @@ public class GridParmManager {
|
||||||
// ingested
|
// ingested
|
||||||
String d2dModelName = serverConfig
|
String d2dModelName = serverConfig
|
||||||
.d2dModelNameMapping(modelName);
|
.d2dModelNameMapping(modelName);
|
||||||
db = new D2DGridDatabase(serverConfig, d2dModelName,
|
db = D2DGridDatabase.getDatabase(serverConfig,
|
||||||
dbId.getModelTimeAsDate());
|
d2dModelName, dbId.getModelTimeAsDate());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
statusHandler.handle(Priority.PROBLEM,
|
statusHandler.handle(Priority.PROBLEM,
|
||||||
e.getLocalizedMessage(), e);
|
e.getLocalizedMessage(), e);
|
||||||
|
@ -1244,6 +1270,7 @@ public class GridParmManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((db != null) && db.databaseIsValid()) {
|
if ((db != null) && db.databaseIsValid()) {
|
||||||
|
statusHandler.info("getDb called, adding " + dbId);
|
||||||
dbMap.put(dbId, db);
|
dbMap.put(dbId, db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1255,6 +1282,8 @@ public class GridParmManager {
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
DatabaseID dbId = iter.next();
|
DatabaseID dbId = iter.next();
|
||||||
if (dbId.getSiteId().equals(siteID)) {
|
if (dbId.getSiteId().equals(siteID)) {
|
||||||
|
statusHandler.info("purgeDbCache(" + siteID + "), removing "
|
||||||
|
+ dbId);
|
||||||
iter.remove();
|
iter.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1370,18 +1399,6 @@ public class GridParmManager {
|
||||||
return sr;
|
return sr;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void createDbNotification(String siteID,
|
|
||||||
List<DatabaseID> prevInventory) {
|
|
||||||
List<DatabaseID> newInventory = getDbInventory(siteID).getPayload();
|
|
||||||
List<DatabaseID> additions = new ArrayList<DatabaseID>(newInventory);
|
|
||||||
additions.removeAll(prevInventory);
|
|
||||||
|
|
||||||
List<DatabaseID> deletions = new ArrayList<DatabaseID>(prevInventory);
|
|
||||||
deletions.removeAll(newInventory);
|
|
||||||
|
|
||||||
createDbNotification(siteID, additions, deletions);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void createDbNotification(String siteID,
|
private static void createDbNotification(String siteID,
|
||||||
List<DatabaseID> additions, List<DatabaseID> deletions) {
|
List<DatabaseID> additions, List<DatabaseID> deletions) {
|
||||||
if (!additions.isEmpty() || !deletions.isEmpty()) {
|
if (!additions.isEmpty() || !deletions.isEmpty()) {
|
||||||
|
@ -1400,6 +1417,7 @@ public class GridParmManager {
|
||||||
"Unable to purge model database: " + id, e);
|
"Unable to purge model database: " + id, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
statusHandler.info("deallocateDb called, removing " + id);
|
||||||
dbMap.remove(id);
|
dbMap.remove(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1429,6 +1447,9 @@ public class GridParmManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (DatabaseID dbId : invChanged.getDeletions()) {
|
for (DatabaseID dbId : invChanged.getDeletions()) {
|
||||||
|
statusHandler
|
||||||
|
.info("DBInvChangeNotification deletion received, removing "
|
||||||
|
+ dbId);
|
||||||
dbMap.remove(dbId);
|
dbMap.remove(dbId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ import com.raytheon.edex.plugin.gfe.db.dao.GFED2DDao;
|
||||||
import com.raytheon.edex.plugin.gfe.paraminfo.GridParamInfo;
|
import com.raytheon.edex.plugin.gfe.paraminfo.GridParamInfo;
|
||||||
import com.raytheon.edex.plugin.gfe.paraminfo.GridParamInfoLookup;
|
import com.raytheon.edex.plugin.gfe.paraminfo.GridParamInfoLookup;
|
||||||
import com.raytheon.edex.plugin.gfe.paraminfo.ParameterInfo;
|
import com.raytheon.edex.plugin.gfe.paraminfo.ParameterInfo;
|
||||||
import com.raytheon.edex.plugin.gfe.server.GridParmManager;
|
|
||||||
import com.raytheon.uf.common.comm.CommunicationException;
|
import com.raytheon.uf.common.comm.CommunicationException;
|
||||||
import com.raytheon.uf.common.dataplugin.PluginException;
|
import com.raytheon.uf.common.dataplugin.PluginException;
|
||||||
import com.raytheon.uf.common.dataplugin.gfe.GridDataHistory;
|
import com.raytheon.uf.common.dataplugin.gfe.GridDataHistory;
|
||||||
|
@ -107,6 +106,9 @@ import com.raytheon.uf.edex.database.DataAccessLayerException;
|
||||||
* 04/17/2013 #1913 randerso Added GFE level mapping to replace GridTranslator
|
* 04/17/2013 #1913 randerso Added GFE level mapping to replace GridTranslator
|
||||||
* 05/02/2013 #1969 randerso Removed unnecessary updateDbs method
|
* 05/02/2013 #1969 randerso Removed unnecessary updateDbs method
|
||||||
* 05/03/2013 #1974 randerso Fixed error handling when no D2D level mapping found
|
* 05/03/2013 #1974 randerso Fixed error handling when no D2D level mapping found
|
||||||
|
* 09/12/2013 #2348 randerso Removed code that called getDb from getD2DDatabaseIdsFromDb
|
||||||
|
* Added function to create a D2DGridDatabase object only if there is
|
||||||
|
* data in postgres for the desired model/reftime
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -135,6 +137,33 @@ public class D2DGridDatabase extends VGridDatabase {
|
||||||
gfeModelName, modelTime);
|
gfeModelName, modelTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a D2DGridDatabase if it is available
|
||||||
|
*
|
||||||
|
* @param config
|
||||||
|
* configuration for site
|
||||||
|
* @param dbId
|
||||||
|
* DatabaseID of desired database
|
||||||
|
* @return D2DGridDatabase or null if not available
|
||||||
|
*/
|
||||||
|
public static D2DGridDatabase getDatabase(IFPServerConfig config,
|
||||||
|
String d2dModelName, Date refTime) {
|
||||||
|
try {
|
||||||
|
GFED2DDao dao = new GFED2DDao();
|
||||||
|
List<Date> result = dao.getModelRunTimes(d2dModelName, -1);
|
||||||
|
|
||||||
|
if (result.contains(refTime)) {
|
||||||
|
D2DGridDatabase db = new D2DGridDatabase(config, d2dModelName,
|
||||||
|
refTime);
|
||||||
|
return db;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
} catch (Exception e) {
|
||||||
|
statusHandler.handle(Priority.PROBLEM, e.getLocalizedMessage(), e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves DatabaseIDs for all model runs of a given d2dModelName
|
* Retrieves DatabaseIDs for all model runs of a given d2dModelName
|
||||||
*
|
*
|
||||||
|
@ -178,15 +207,7 @@ public class D2DGridDatabase extends VGridDatabase {
|
||||||
for (Date date : result) {
|
for (Date date : result) {
|
||||||
DatabaseID dbId = null;
|
DatabaseID dbId = null;
|
||||||
dbId = getDbId(d2dModelName, date, config);
|
dbId = getDbId(d2dModelName, date, config);
|
||||||
try {
|
dbInventory.add(dbId);
|
||||||
GridDatabase db = GridParmManager.getDb(dbId);
|
|
||||||
if ((db != null) && !dbInventory.contains(dbId)) {
|
|
||||||
dbInventory.add(dbId);
|
|
||||||
}
|
|
||||||
} catch (GfeException e) {
|
|
||||||
statusHandler.handle(Priority.PROBLEM,
|
|
||||||
e.getLocalizedMessage(), e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return dbInventory;
|
return dbInventory;
|
||||||
} catch (PluginException e) {
|
} catch (PluginException e) {
|
||||||
|
@ -285,10 +306,14 @@ public class D2DGridDatabase extends VGridDatabase {
|
||||||
/**
|
/**
|
||||||
* Constructs a new D2DGridDatabase
|
* Constructs a new D2DGridDatabase
|
||||||
*
|
*
|
||||||
|
* For internal use only. External code should call
|
||||||
|
* D2DGridDatabase.getDatabase(IFPServerConfig, String, Date) to ensure
|
||||||
|
* objects are only created if data is present
|
||||||
|
*
|
||||||
* @param dbId
|
* @param dbId
|
||||||
* The database ID of this database
|
* The database ID of this database
|
||||||
*/
|
*/
|
||||||
public D2DGridDatabase(IFPServerConfig config, String d2dModelName,
|
private D2DGridDatabase(IFPServerConfig config, String d2dModelName,
|
||||||
Date refTime) throws GfeException {
|
Date refTime) throws GfeException {
|
||||||
super(config);
|
super(config);
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ import com.raytheon.uf.common.serialization.comm.IRequestHandler;
|
||||||
import com.raytheon.uf.edex.core.EDEXUtil;
|
import com.raytheon.uf.edex.core.EDEXUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO Add Description
|
* Handler for SmartInitRequest.
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -43,7 +43,7 @@ import com.raytheon.uf.edex.core.EDEXUtil;
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Oct 12, 2010 dgilling Initial creation
|
* Oct 12, 2010 dgilling Initial creation
|
||||||
*
|
* Sep 13, 2013 2368 rjpeter Used durable jms settings.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author dgilling
|
* @author dgilling
|
||||||
|
@ -93,7 +93,7 @@ public class SmartInitRequestHandler implements
|
||||||
.append(SmartInitRecord.MANUAL_SMART_INIT_PRIORITY);
|
.append(SmartInitRecord.MANUAL_SMART_INIT_PRIORITY);
|
||||||
|
|
||||||
EDEXUtil.getMessageProducer().sendAsyncUri(
|
EDEXUtil.getMessageProducer().sendAsyncUri(
|
||||||
"jms-generic:queue:manualSmartInit",
|
"jms-durable:queue:manualSmartInit",
|
||||||
manualInitString.toString());
|
manualInitString.toString());
|
||||||
} else {
|
} else {
|
||||||
sr.addMessage("No valid model data could be retrieved for model "
|
sr.addMessage("No valid model data could be retrieved for model "
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<bean id="goessoundingDistRegistry" factory-bean="distributionSrv"
|
<bean id="goessoundingDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="goessoundingPluginName" />
|
<constructor-arg ref="goessoundingPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.goessounding?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.goessounding"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="goessoundingCamelRegistered" factory-bean="contextManager"
|
<bean id="goessoundingCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -35,13 +35,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>goessounding</constant>
|
<constant>goessounding</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.goessounding" />
|
<to uri="jms-durable:queue:Ingest.goessounding" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin GOES Sounding routes -->
|
<!-- Begin GOES Sounding routes -->
|
||||||
<route id="goessndgIngestRoute">
|
<route id="goessndgIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.goessounding?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.goessounding"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>goessounding</constant>
|
<constant>goessounding</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -6,14 +6,11 @@
|
||||||
<bean id="gribDecoder" class="com.raytheon.edex.plugin.grib.GribDecoder" />
|
<bean id="gribDecoder" class="com.raytheon.edex.plugin.grib.GribDecoder" />
|
||||||
|
|
||||||
<bean id="ingest-grib" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="ingest-grib" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestGribConfig" />
|
<constructor-arg ref="jmsGribConfig" />
|
||||||
<property name="taskExecutor" ref="gribThreadPool" />
|
<property name="taskExecutor" ref="gribThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
|
<bean id="jmsGribConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
<bean id="jmsIngestGribConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
factory-bean="jmsConfig" factory-method="copy">
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="gribThreadPool"
|
<bean id="gribThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="${grib-decode.count.threads}" />
|
<property name="corePoolSize" value="${grib-decode.count.threads}" />
|
||||||
|
@ -61,7 +58,7 @@
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
|
|
||||||
<endpoint id="gribFileEndpoint" uri="file:${edex.home}/data/sbn/grib?noop=true&idempotent=false" />
|
<endpoint id="gribFileEndpoint" uri="file:${edex.home}/data/sbn/grib?noop=true&idempotent=false" />
|
||||||
<endpoint id="gribJmsEndpoint" uri="ingest-grib:queue:Ingest.Grib?concurrentConsumers=${grib-decode.count.threads}&destinationResolver=#qpidDurableResolver" />
|
<endpoint id="gribJmsEndpoint" uri="ingest-grib:queue:Ingest.Grib?concurrentConsumers=${grib-decode.count.threads}"/>
|
||||||
|
|
||||||
<route id="gribFileConsumerRoute">
|
<route id="gribFileConsumerRoute">
|
||||||
<from ref="gribFileEndpoint" />
|
<from ref="gribFileEndpoint" />
|
||||||
|
|
|
@ -6,14 +6,11 @@
|
||||||
<bean id="gribDecoder" class="com.raytheon.edex.plugin.grib.GribDecoder" />
|
<bean id="gribDecoder" class="com.raytheon.edex.plugin.grib.GribDecoder" />
|
||||||
|
|
||||||
<bean id="ingest-grib" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="ingest-grib" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestGribConfig" />
|
<constructor-arg ref="jmsGribConfig" />
|
||||||
<property name="taskExecutor" ref="gribThreadPool" />
|
<property name="taskExecutor" ref="gribThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
|
<bean id="jmsGribConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
<bean id="jmsIngestGribConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
factory-bean="jmsConfig" factory-method="copy">
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="gribThreadPool"
|
<bean id="gribThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="${grib-decode.count.threads}" />
|
<property name="corePoolSize" value="${grib-decode.count.threads}" />
|
||||||
|
@ -57,7 +54,7 @@
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
|
|
||||||
<endpoint id="gribFileEndpoint" uri="file:${edex.home}/data/sbn/grib?noop=true&idempotent=false" />
|
<endpoint id="gribFileEndpoint" uri="file:${edex.home}/data/sbn/grib?noop=true&idempotent=false" />
|
||||||
<endpoint id="gribJmsEndpoint" uri="ingest-grib:queue:Ingest.Grib?concurrentConsumers=${grib-decode.count.threads}&destinationResolver=#qpidDurableResolver" />
|
<endpoint id="gribJmsEndpoint" uri="ingest-grib:queue:Ingest.Grib?concurrentConsumers=${grib-decode.count.threads}"/>
|
||||||
|
|
||||||
<route id="gribFileConsumerRoute">
|
<route id="gribFileConsumerRoute">
|
||||||
<from ref="gribFileEndpoint" />
|
<from ref="gribFileEndpoint" />
|
||||||
|
|
|
@ -515,11 +515,6 @@
|
||||||
<datasetId>FFG-TIR</datasetId>
|
<datasetId>FFG-TIR</datasetId>
|
||||||
<dt>1</dt>
|
<dt>1</dt>
|
||||||
</info>
|
</info>
|
||||||
<info>
|
|
||||||
<title>FFG-TIR-HiRes</title>
|
|
||||||
<datasetId>FFG-TIR-HiRes</datasetId>
|
|
||||||
<dt>1</dt>
|
|
||||||
</info>
|
|
||||||
<info>
|
<info>
|
||||||
<title>QPE-TIR</title>
|
<title>QPE-TIR</title>
|
||||||
<datasetId>QPE-TIR</datasetId>
|
<datasetId>QPE-TIR</datasetId>
|
||||||
|
|
|
@ -1079,19 +1079,9 @@
|
||||||
<id>180</id>
|
<id>180</id>
|
||||||
</process>
|
</process>
|
||||||
</model>
|
</model>
|
||||||
|
|
||||||
<model>
|
|
||||||
<name>FFG-TIR</name>
|
|
||||||
<center>9</center>
|
|
||||||
<subcenter>160</subcenter>
|
|
||||||
<grid>240160</grid>
|
|
||||||
<process>
|
|
||||||
<id>151</id>
|
|
||||||
</process>
|
|
||||||
</model>
|
|
||||||
|
|
||||||
<model>
|
<model>
|
||||||
<name>FFG-TIR-HiRes</name>
|
<name>FFG-TIR</name>
|
||||||
<center>9</center>
|
<center>9</center>
|
||||||
<subcenter>160</subcenter>
|
<subcenter>160</subcenter>
|
||||||
<grid>250160</grid>
|
<grid>250160</grid>
|
||||||
|
|
|
@ -21,11 +21,11 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>ldad</constant>
|
<constant>ldad</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.ldad" />
|
<to uri="jms-durable:queue:Ingest.ldad" />
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="ldadIngestRoute">
|
<route id="ldadIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.ldad" />
|
<from uri="jms-durable:queue:Ingest.ldad" />
|
||||||
<multicast>
|
<multicast>
|
||||||
<try>
|
<try>
|
||||||
<to uri="direct-vm:ldadmesonetIngest" />
|
<to uri="direct-vm:ldadmesonetIngest" />
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<bean id="ldadhydroDistRegistry" factory-bean="distributionSrv"
|
<bean id="ldadhydroDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="ldadhydro" />
|
<constructor-arg value="ldadhydro" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.ldadhydro?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.ldadhydro" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="ldadhydroPointData" class="com.raytheon.edex.plugin.ldadhydro.dao.LdadhydroPointDataTransform"/>
|
<bean id="ldadhydroPointData" class="com.raytheon.edex.plugin.ldadhydro.dao.LdadhydroPointDataTransform"/>
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
errorHandlerRef="errorHandler"
|
errorHandlerRef="errorHandler"
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
<route id="ldadhydroIngestRoute">
|
<route id="ldadhydroIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.ldadhydro?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.ldadhydro"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="stringToFile" />
|
<bean ref="stringToFile" />
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<bean id="ldadmanualDistRegistry" factory-bean="distributionSrv"
|
<bean id="ldadmanualDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="ldadmanual" />
|
<constructor-arg value="ldadmanual" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.ldadmanual?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.ldadmanual"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="ldadmanualCamelRegistered" factory-bean="contextManager"
|
<bean id="ldadmanualCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
|
|
||||||
<route id="ldadmanualIngestRoute">
|
<route id="ldadmanualIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.ldadmanual?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.ldadmanual"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="stringToFile" />
|
<bean ref="stringToFile" />
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<bean id="ldadprofilerDistRegistry" factory-bean="distributionSrv"
|
<bean id="ldadprofilerDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="ldadprofiler" />
|
<constructor-arg value="ldadprofiler" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.ldadprofiler?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.ldadprofiler"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="ldadprofilerCamelRegistered" factory-bean="contextManager"
|
<bean id="ldadprofilerCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -37,13 +37,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>ldadprofiler</constant>
|
<constant>ldadprofiler</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.ldadprofiler" />
|
<to uri="jms-durable:queue:Ingest.ldadprofiler" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin ldadprofiler routes -->
|
<!-- Begin ldadprofiler routes -->
|
||||||
<route id="ldadprofilerIngestRoute">
|
<route id="ldadprofilerIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.ldadprofiler?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.ldadprofiler"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="stringToFile" />
|
<bean ref="stringToFile" />
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<bean id="mdlsndgDistRegistry" factory-bean="distributionSrv"
|
<bean id="mdlsndgDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="modelsoundingPluginName" />
|
<constructor-arg ref="modelsoundingPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.modelsounding?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.modelsounding"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="modelsoundingCamelRegistered" factory-bean="contextManager"
|
<bean id="modelsoundingCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -45,13 +45,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>modelsounding</constant>
|
<constant>modelsounding</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.modelsounding" />
|
<to uri="jms-durable:queue:Ingest.modelsounding" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin Model Sounding routes -->
|
<!-- Begin Model Sounding routes -->
|
||||||
<route id="modelsndgIngestRoute">
|
<route id="modelsndgIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.modelsounding?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.modelsounding"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>modelsounding</constant>
|
<constant>modelsounding</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<bean id="obsDistRegistry" factory-bean="distributionSrv"
|
<bean id="obsDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="obs" />
|
<constructor-arg value="obs" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.obs?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.obs"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="obsCamelRegistered" factory-bean="contextManager"
|
<bean id="obsCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -38,13 +38,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>obs</constant>
|
<constant>obs</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.obs" />
|
<to uri="jms-durable:queue:Ingest.obs" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin METAR routes -->
|
<!-- Begin METAR routes -->
|
||||||
<route id="metarIngestRoute">
|
<route id="metarIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.obs?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.obs"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>obs</constant>
|
<constant>obs</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -34,12 +34,12 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>pirep</constant>
|
<constant>pirep</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.pirep"/>
|
<to uri="jms-durable:queue:Ingest.pirep"/>
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
<!-- Begin Pirep routes -->
|
<!-- Begin Pirep routes -->
|
||||||
<route id="pirepIngestRoute">
|
<route id="pirepIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.pirep?destinationResolver=#qpidDurableResolver"/>
|
<from uri="jms-durable:queue:Ingest.pirep"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>pirep</constant>
|
<constant>pirep</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<bean id="poessoundingDistRegistry" factory-bean="distributionSrv"
|
<bean id="poessoundingDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="poessoundingPluginName" />
|
<constructor-arg ref="poessoundingPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.poessounding?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.poessounding"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="poessoundingCamelRegistered" factory-bean="contextManager"
|
<bean id="poessoundingCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -30,13 +30,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>poessounding</constant>
|
<constant>poessounding</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.poessounding"/>
|
<to uri="jms-durable:queue:Ingest.poessounding"/>
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin poes Sounding routes -->
|
<!-- Begin poes Sounding routes -->
|
||||||
<route id="poessndgIngestRoute">
|
<route id="poessndgIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.poessounding?destinationResolver=#qpidDurableResolver"/>
|
<from uri="jms-durable:queue:Ingest.poessounding"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>poessounding</constant>
|
<constant>poessounding</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<bean id="profilerDistRegistry" factory-bean="distributionSrv"
|
<bean id="profilerDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="profilerPluginName" />
|
<constructor-arg ref="profilerPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.profiler?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.profiler"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="profilerCamelRegistered" factory-bean="contextManager"
|
<bean id="profilerCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -30,13 +30,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>profiler</constant>
|
<constant>profiler</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.profiler"/>
|
<to uri="jms-durable:queue:Ingest.profiler"/>
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin Profiler routes -->
|
<!-- Begin Profiler routes -->
|
||||||
<route id="profilerIngestRoute">
|
<route id="profilerIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.profiler?destinationResolver=#qpidDurableResolver"/>
|
<from uri="jms-durable:queue:Ingest.profiler"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>profiler</constant>
|
<constant>profiler</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -6,12 +6,11 @@
|
||||||
<bean id="radarDecompressor" class="com.raytheon.edex.plugin.radar.RadarDecompressor"/>
|
<bean id="radarDecompressor" class="com.raytheon.edex.plugin.radar.RadarDecompressor"/>
|
||||||
<bean id="radarDecoder" class="com.raytheon.edex.plugin.radar.RadarDecoder"/>
|
<bean id="radarDecoder" class="com.raytheon.edex.plugin.radar.RadarDecoder"/>
|
||||||
<bean id="jms-radar" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-radar" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestRadarConfig" />
|
<constructor-arg ref="jmsRadarConfig" />
|
||||||
<property name="taskExecutor" ref="radarThreadPool" />
|
<property name="taskExecutor" ref="radarThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIngestRadarConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsRadarConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy">
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
</bean>
|
|
||||||
<bean id="radarThreadPool"
|
<bean id="radarThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="2" />
|
<property name="corePoolSize" value="2" />
|
||||||
|
@ -54,7 +53,7 @@
|
||||||
|
|
||||||
<!-- Begin Radar routes -->
|
<!-- Begin Radar routes -->
|
||||||
<route id="radarIngestRoute">
|
<route id="radarIngestRoute">
|
||||||
<from uri="jms-radar:queue:Ingest.Radar?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-radar:queue:Ingest.Radar"/>
|
||||||
<setHeader headerName="dataType">
|
<setHeader headerName="dataType">
|
||||||
<constant>radar-sbn</constant>
|
<constant>radar-sbn</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
@ -62,7 +61,7 @@
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="radarRadarServerIngestRoute">
|
<route id="radarRadarServerIngestRoute">
|
||||||
<from uri="jms-radar:queue:Ingest.RadarRadarServer?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-radar:queue:Ingest.RadarRadarServer"/>
|
||||||
<setHeader headerName="dataType">
|
<setHeader headerName="dataType">
|
||||||
<constant>radar-local</constant>
|
<constant>radar-local</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -33,13 +33,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>recco</constant>
|
<constant>recco</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.recco" />
|
<to uri="jms-durable:queue:Ingest.recco" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin RECCO routes -->
|
<!-- Begin RECCO routes -->
|
||||||
<route id="reccoIngestRoute">
|
<route id="reccoIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.recco?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.recco"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>recco</constant>
|
<constant>recco</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<bean id="redbookDistRegistry" factory-bean="distributionSrv"
|
<bean id="redbookDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="redbook" />
|
<constructor-arg value="redbook" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.redbook?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.redbook"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -38,13 +38,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>redbook</constant>
|
<constant>redbook</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.redbook" />
|
<to uri="jms-durable:queue:Ingest.redbook" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin Redbook routes -->
|
<!-- Begin Redbook routes -->
|
||||||
<route id="redbookIngestRoute">
|
<route id="redbookIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.redbook?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.redbook"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>redbook</constant>
|
<constant>redbook</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
||||||
|
|
||||||
<bean id="jms-satellite" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-satellite" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestSatelliteConfig" />
|
<constructor-arg ref="jmsSatelliteConfig" />
|
||||||
<property name="taskExecutor" ref="satelliteThreadPool" />
|
<property name="taskExecutor" ref="satelliteThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIngestSatelliteConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsSatelliteConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy" />
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
<bean id="satelliteThreadPool"
|
<bean id="satelliteThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="1" />
|
<property name="corePoolSize" value="1" />
|
||||||
|
@ -47,13 +47,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>satellite</constant>
|
<constant>satellite</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.Satellite" />
|
<to uri="jms-durable:queue:Ingest.Satellite" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin Sat routes -->
|
<!-- Begin Sat routes -->
|
||||||
<route id="satIngestRoute">
|
<route id="satIngestRoute">
|
||||||
<from uri="jms-satellite:queue:Ingest.Satellite?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-satellite:queue:Ingest.Satellite"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>satellite</constant>
|
<constant>satellite</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<bean id="sfcobsDistRegistry" factory-bean="distributionSrv"
|
<bean id="sfcobsDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="sfcobs" />
|
<constructor-arg value="sfcobs" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.sfcobs?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.sfcobs"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="sfcobsCamelRegistered" factory-bean="contextManager"
|
<bean id="sfcobsCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -37,13 +37,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>sfcobs</constant>
|
<constant>sfcobs</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.sfcobs" />
|
<to uri="jms-durable:queue:Ingest.sfcobs" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin sfcobs routes -->
|
<!-- Begin sfcobs routes -->
|
||||||
<route id="sfcobsIngestRoute">
|
<route id="sfcobsIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.sfcobs?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.sfcobs"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>sfcobs</constant>
|
<constant>sfcobs</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
||||||
|
|
||||||
<bean id="jms-shef" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-shef" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestShefConfig" />
|
<constructor-arg ref="jmsShefConfig" />
|
||||||
<property name="taskExecutor" ref="shefThreadPool" />
|
<property name="taskExecutor" ref="shefThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIngestShefConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsShefConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy" />
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
<bean id="shefThreadPool"
|
<bean id="shefThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="3" />
|
<property name="corePoolSize" value="3" />
|
||||||
|
@ -47,13 +47,13 @@
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="shef" />
|
<constructor-arg value="shef" />
|
||||||
<constructor-arg
|
<constructor-arg
|
||||||
value="jms-dist:queue:Ingest.Shef?destinationResolver=#qpidDurableResolver" />
|
value="jms-dist:queue:Ingest.Shef"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="shefHandleoupDistRegistry" factory-bean="handleoupDistributionSrv"
|
<bean id="shefHandleoupDistRegistry" factory-bean="handleoupDistributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="shef" />
|
<constructor-arg value="shef" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.Shef?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.Shef"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="shefCamelRegistered" factory-bean="contextManager"
|
<bean id="shefCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
<bean ref="manualProc" method="copyFileToArchive" />
|
<bean ref="manualProc" method="copyFileToArchive" />
|
||||||
<bean ref="manualProc" />
|
<bean ref="manualProc" />
|
||||||
<to
|
<to
|
||||||
uri="jms-generic:queue:Ingest.ShefManual?destinationResolver=#qpidDurableResolver" />
|
uri="jms-durable:queue:Ingest.ShefManual"/>
|
||||||
</route>
|
</route>
|
||||||
</camelContext>
|
</camelContext>
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
<!-- Begin shef routes -->
|
<!-- Begin shef routes -->
|
||||||
<route id="shefIngestRoute">
|
<route id="shefIngestRoute">
|
||||||
<from
|
<from
|
||||||
uri="jms-shef:queue:Ingest.Shef?destinationResolver=#qpidDurableResolver" />
|
uri="jms-shef:queue:Ingest.Shef"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>shef</constant>
|
<constant>shef</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
</route>
|
</route>
|
||||||
<route id="shefStagedRoute">
|
<route id="shefStagedRoute">
|
||||||
<from
|
<from
|
||||||
uri="jms-shef:queue:Ingest.ShefStaged?destinationResolver=#qpidDurableResolver" />
|
uri="jms-shef:queue:Ingest.ShefStaged"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>shef</constant>
|
<constant>shef</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
<split streaming="true">
|
<split streaming="true">
|
||||||
<method bean="synopticToShef" method="iterate" />
|
<method bean="synopticToShef" method="iterate" />
|
||||||
<bean ref="synopticToShef" method="transform" />
|
<bean ref="synopticToShef" method="transform" />
|
||||||
<to uri="jms-generic:queue:Ingest.ShefStaged" />
|
<to uri="jms-durable:queue:Ingest.ShefStaged" />
|
||||||
</split>
|
</split>
|
||||||
</pipeline>
|
</pipeline>
|
||||||
</route>
|
</route>
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
<method bean="metarToShef" method="iterate" />
|
<method bean="metarToShef" method="iterate" />
|
||||||
<bean ref="metarToShef" method="transformMetar" />
|
<bean ref="metarToShef" method="transformMetar" />
|
||||||
<to
|
<to
|
||||||
uri="jms-generic:queue:Ingest.ShefStaged?destinationResolver=#qpidDurableResolver" />
|
uri="jms-durable:queue:Ingest.ShefStaged"/>
|
||||||
</split>
|
</split>
|
||||||
</pipeline>
|
</pipeline>
|
||||||
</route>
|
</route>
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
|
|
||||||
<route id="shefManualIngestRoute">
|
<route id="shefManualIngestRoute">
|
||||||
<from
|
<from
|
||||||
uri="jms-shef:queue:Ingest.ShefManual?destinationResolver=#qpidDurableResolver" />
|
uri="jms-shef:queue:Ingest.ShefManual"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>shef</constant>
|
<constant>shef</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
<bean id="tafDistRegistry" factory-bean="distributionSrv"
|
<bean id="tafDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="taf" />
|
<constructor-arg value="taf" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.taf?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.taf"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="tafHandleoupDistRegistry" factory-bean="handleoupDistributionSrv"
|
<bean id="tafHandleoupDistRegistry" factory-bean="handleoupDistributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="taf" />
|
<constructor-arg value="taf" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.taf?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.taf"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="tafCamelRegistered" factory-bean="contextManager"
|
<bean id="tafCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -36,13 +36,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>taf</constant>
|
<constant>taf</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.taf" />
|
<to uri="jms-durable:queue:Ingest.taf" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin TAF routes -->
|
<!-- Begin TAF routes -->
|
||||||
<route id="tafIngestRoute">
|
<route id="tafIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.taf?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.taf"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>taf</constant>
|
<constant>taf</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
@ -69,7 +69,5 @@
|
||||||
</doCatch>
|
</doCatch>
|
||||||
</doTry>
|
</doTry>
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
</camelContext>
|
</camelContext>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -11,13 +11,13 @@
|
||||||
<bean id="textDistRegistry" factory-bean="distributionSrv"
|
<bean id="textDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="text" />
|
<constructor-arg value="text" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.Text?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.Text"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="textHandleoupDistRegistry" factory-bean="handleoupDistributionSrv"
|
<bean id="textHandleoupDistRegistry" factory-bean="handleoupDistributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="text" />
|
<constructor-arg value="text" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.Text?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.Text"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- define the bean that handles automatic faxing of products. -->
|
<!-- define the bean that handles automatic faxing of products. -->
|
||||||
|
@ -28,12 +28,11 @@
|
||||||
<bean id="textVersionPurge" class="com.raytheon.edex.plugin.text.TextVersionPurge" depends-on="textRegistered"/>
|
<bean id="textVersionPurge" class="com.raytheon.edex.plugin.text.TextVersionPurge" depends-on="textRegistered"/>
|
||||||
|
|
||||||
<bean id="jms-text" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-text" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestTextConfig" />
|
<constructor-arg ref="jmsTextConfig" />
|
||||||
<property name="taskExecutor" ref="textThreadPool" />
|
<property name="taskExecutor" ref="textThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIngestTextConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsTextConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy">
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
</bean>
|
|
||||||
<bean id="textThreadPool"
|
<bean id="textThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="2" />
|
<property name="corePoolSize" value="2" />
|
||||||
|
@ -61,7 +60,7 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>text</constant>
|
<constant>text</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.Text" />
|
<to uri="jms-durable:queue:Ingest.Text" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -115,7 +114,7 @@
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="textUndecodedIngestRoute">
|
<route id="textUndecodedIngestRoute">
|
||||||
<from uri="jms-text:queue:Ingest.Text?destinationResolver=#qpidDurableResolver&concurrentConsumers=2" />
|
<from uri="jms-text:queue:Ingest.Text?concurrentConsumers=2" />
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>text</constant>
|
<constant>text</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
@ -142,7 +141,7 @@
|
||||||
<route id="textToWatchWarnRoute">
|
<route id="textToWatchWarnRoute">
|
||||||
<from uri="direct:textToWatchWarn" />
|
<from uri="direct:textToWatchWarn" />
|
||||||
<bean ref="textDecoder" method="transformToProductIds" />
|
<bean ref="textDecoder" method="transformToProductIds" />
|
||||||
<to uri="jms-text:queue:watchwarn?destinationResolver=#qpidDurableResolver" />
|
<to uri="jms-text:queue:watchwarn" />
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="textSerializationRoute">
|
<route id="textSerializationRoute">
|
||||||
|
@ -151,7 +150,7 @@
|
||||||
<method bean="textDecoder" method="separator" />
|
<method bean="textDecoder" method="separator" />
|
||||||
<bean ref="textDecoder" method="transformToSimpleString" />
|
<bean ref="textDecoder" method="transformToSimpleString" />
|
||||||
<bean ref="serializationUtil" method="transformToThrift"/>
|
<bean ref="serializationUtil" method="transformToThrift"/>
|
||||||
<to uri="jms-text:topic:edex.alarms.msg?timeToLive=60000" />
|
<to uri="jms-generic:topic:edex.alarms.msg?timeToLive=60000" />
|
||||||
</split>
|
</split>
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<bean id="textlightningDistRegistry" factory-bean="distributionSrv"
|
<bean id="textlightningDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="textlightning" />
|
<constructor-arg value="textlightning" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.textlightning?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.textlightning"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="textlightningCamelRegistered" factory-bean="contextManager"
|
<bean id="textlightningCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -31,13 +31,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>textlightning</constant>
|
<constant>textlightning</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.textlightning" />
|
<to uri="jms-durable:queue:Ingest.textlightning" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin textlightning routes -->
|
<!-- Begin textlightning routes -->
|
||||||
<route id="textlightningIngestRoute">
|
<route id="textlightningIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.textlightning?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.textlightning"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>textlightning</constant>
|
<constant>textlightning</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -8,13 +8,13 @@
|
||||||
<bean id="warningDistRegistry" factory-bean="distributionSrv"
|
<bean id="warningDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="warning" />
|
<constructor-arg value="warning" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.Warning?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.Warning"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="warningHandleoupDistRegistry" factory-bean="handleoupDistributionSrv"
|
<bean id="warningHandleoupDistRegistry" factory-bean="handleoupDistributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="warning" />
|
<constructor-arg value="warning" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.Warning?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.Warning"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="warningCamelRegistered" factory-bean="contextManager"
|
<bean id="warningCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -23,12 +23,11 @@
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="jms-warning" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-warning" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestWarningConfig" />
|
<constructor-arg ref="jmsWarningConfig" />
|
||||||
<property name="taskExecutor" ref="warningThreadPool" />
|
<property name="taskExecutor" ref="warningThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIngestWarningConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsWarningConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy">
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
</bean>
|
|
||||||
<bean id="warningThreadPool"
|
<bean id="warningThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="1" />
|
<property name="corePoolSize" value="1" />
|
||||||
|
@ -49,7 +48,7 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>warning</constant>
|
<constant>warning</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.Warning" />
|
<to uri="jms-durable:queue:Ingest.Warning" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -57,7 +56,7 @@
|
||||||
Warning routes
|
Warning routes
|
||||||
-->
|
-->
|
||||||
<route id="warningIngestRoute">
|
<route id="warningIngestRoute">
|
||||||
<from uri="jms-warning:queue:Ingest.Warning?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-warning:queue:Ingest.Warning"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>warning</constant>
|
<constant>warning</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
@ -72,7 +71,7 @@
|
||||||
<to uri="jms-warning:queue:edex.tpcWatch" />
|
<to uri="jms-warning:queue:edex.tpcWatch" />
|
||||||
<filter>
|
<filter>
|
||||||
<method bean="vtecFilter" method="hasVTEC" />
|
<method bean="vtecFilter" method="hasVTEC" />
|
||||||
<to uri="jms-warning:queue:activeTablePending?destinationResolver=#qpidDurableResolver" />
|
<to uri="jms-warning:queue:activeTablePending"/>
|
||||||
</filter>
|
</filter>
|
||||||
</multicast>
|
</multicast>
|
||||||
</pipeline>
|
</pipeline>
|
||||||
|
@ -89,6 +88,5 @@
|
||||||
<bean ref="processUtil" method="log" />
|
<bean ref="processUtil" method="log" />
|
||||||
<to uri="vm:stageNotification" />
|
<to uri="vm:stageNotification" />
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
</camelContext>
|
</camelContext>
|
||||||
</beans>
|
</beans>
|
|
@ -11,7 +11,7 @@
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
|
|
||||||
<route id="activeTablePendingRoute">
|
<route id="activeTablePendingRoute">
|
||||||
<from uri="jms-generic:queue:activeTablePending?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:activeTablePending"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="activeTableSrv" method="vtecArrived" />
|
<bean ref="activeTableSrv" method="vtecArrived" />
|
||||||
<doCatch>
|
<doCatch>
|
||||||
|
|
|
@ -30,9 +30,9 @@
|
||||||
<!-- technically with qpid should be able to make this a durable subscription and not need to forward to another queue -->
|
<!-- technically with qpid should be able to make this a durable subscription and not need to forward to another queue -->
|
||||||
<doTry>
|
<doTry>
|
||||||
<multicast>
|
<multicast>
|
||||||
<to uri="jms-generic:queue:cpgsrvFiltering"/>
|
<to uri="jms-durable:queue:cpgsrvFiltering"/>
|
||||||
<to uri="jms-generic:queue:scanCpgsrvFiltering"/>
|
<to uri="jms-durable:queue:scanCpgsrvFiltering"/>
|
||||||
<to uri="jms-generic:queue:ffmpCpgsrvFiltering"/>
|
<to uri="jms-durable:queue:ffmpCpgsrvFiltering"/>
|
||||||
</multicast>
|
</multicast>
|
||||||
<doCatch>
|
<doCatch>
|
||||||
<exception>java.lang.Throwable</exception>
|
<exception>java.lang.Throwable</exception>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
</route>
|
</route>
|
||||||
<route id="cpgsrvListenerRoute">
|
<route id="cpgsrvListenerRoute">
|
||||||
<!-- technically with qpid should be able to make this a durable subscription and not need to forward to another queue -->
|
<!-- technically with qpid should be able to make this a durable subscription and not need to forward to another queue -->
|
||||||
<from uri="jms-generic:queue:cpgsrvFiltering?concurrentConsumers=5&destinationResolver=#qpidDurableResolver"/>
|
<from uri="jms-durable:queue:cpgsrvFiltering?concurrentConsumers=5"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
<route id="bandwidthManagerProcessWork">
|
<route id="bandwidthManagerProcessWork">
|
||||||
<from
|
<from
|
||||||
uri="jms-generic:queue:matureSubscriptions?destinationResolver=#qpidDurableResolver" />
|
uri="jms-durable:queue:matureSubscriptions"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<bean id="notificationHandler"
|
<bean id="notificationHandler"
|
||||||
class="com.raytheon.uf.edex.datadelivery.event.handler.NotificationHandler">
|
class="com.raytheon.uf.edex.datadelivery.event.handler.NotificationHandler">
|
||||||
<constructor-arg type="java.lang.String"
|
<constructor-arg type="java.lang.String"
|
||||||
value="jms-generic:topic:notify.msg?destinationResolver=#qpidDurableResolver" />
|
value="jms-generic:topic:notify.msg"/>
|
||||||
<property name="notificationDao" ref="notificationDao" />
|
<property name="notificationDao" ref="notificationDao" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,8 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
||||||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
||||||
|
|
||||||
<bean id="jmsIngestHarvesterConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
|
||||||
factory-bean="jmsConfig" factory-method="copy">
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="jms-harvester" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-harvester" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestHarvesterConfig" />
|
<constructor-arg ref="jmsGenericConfig" />
|
||||||
<property name="taskExecutor" ref="harvesterThreadPool" />
|
<property name="taskExecutor" ref="harvesterThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -29,11 +24,11 @@
|
||||||
errorHandlerRef="errorHandler">
|
errorHandlerRef="errorHandler">
|
||||||
|
|
||||||
<endpoint id="metaDataCron" uri="quartz://datadelivery/harvester/?cron=${metadata-process.cron}"/>
|
<endpoint id="metaDataCron" uri="quartz://datadelivery/harvester/?cron=${metadata-process.cron}"/>
|
||||||
<endpoint id="harvesterProcessWorkEndpoint" uri="jms-harvester:queue:metaDataProcessWork?concurrentConsumers=${metadata-process.threads}&destinationResolver=#qpidDurableResolver" />
|
<endpoint id="harvesterProcessWorkEndpoint" uri="jms-harvester:queue:metaDataProcessWork?concurrentConsumers=${metadata-process.threads}"/>
|
||||||
|
|
||||||
<route id="metaDataProcess">
|
<route id="metaDataProcess">
|
||||||
<from uri="metaDataCron" />
|
<from uri="metaDataCron" />
|
||||||
<to uri="jms-harvester:queue:metaDataProcessWork?destinationResolver=#qpidDurableResolver" />
|
<to uri="jms-harvester:queue:metaDataProcessWork" />
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="metaDataProcessWork">
|
<route id="metaDataProcessWork">
|
||||||
|
|
|
@ -34,12 +34,12 @@
|
||||||
a new route and use moveFileToArchive -->
|
a new route and use moveFileToArchive -->
|
||||||
<route id="handleoupFilePush">
|
<route id="handleoupFilePush">
|
||||||
<from
|
<from
|
||||||
uri="jms-generic:queue:Ingest.handleoup?destinationResolver=#qpidDurableResolver" />
|
uri="jms-durable:queue:Ingest.handleoup"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="stringToFile" />
|
<bean ref="stringToFile" />
|
||||||
<bean ref="manualProc" />
|
<bean ref="manualProc" />
|
||||||
<to
|
<to
|
||||||
uri="jms-generic:queue:handleoup.dropbox?destinationResolver=#qpidDurableResolver" />
|
uri="jms-durable:queue:handleoup.dropbox"/>
|
||||||
<doCatch>
|
<doCatch>
|
||||||
<exception>java.lang.Throwable</exception>
|
<exception>java.lang.Throwable</exception>
|
||||||
<to
|
<to
|
||||||
|
|
|
@ -8,13 +8,12 @@
|
||||||
<bean id="radarserverDistributionSrv" class="com.raytheon.uf.edex.distribution.DistributionSrv" />
|
<bean id="radarserverDistributionSrv" class="com.raytheon.uf.edex.distribution.DistributionSrv" />
|
||||||
|
|
||||||
<bean id="jms-dist" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-dist" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestDistConfig" />
|
<!-- All initial distribution queues are durable -->
|
||||||
|
<constructor-arg ref="jmsDistConfig" />
|
||||||
<property name="taskExecutor" ref="distributionThreadPool" />
|
<property name="taskExecutor" ref="distributionThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIngestDistConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
<bean id="jmsDistConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
factory-bean="jmsConfig" factory-method="copy">
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="distributionThreadPool"
|
<bean id="distributionThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="7" />
|
<property name="corePoolSize" value="7" />
|
||||||
|
@ -29,7 +28,7 @@
|
||||||
<endpoint id="refreshDistributionCron" uri="quartz://refreshDist/refreshDistRoute/?cron=${distribution.cron}"/>
|
<endpoint id="refreshDistributionCron" uri="quartz://refreshDist/refreshDistRoute/?cron=${distribution.cron}"/>
|
||||||
|
|
||||||
<route id="distribution">
|
<route id="distribution">
|
||||||
<from uri="jms-dist:queue:external.dropbox?concurrentConsumers=5&maxConcurrentConsumers=5&destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-dist:queue:external.dropbox?concurrentConsumers=5&maxConcurrentConsumers=5"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="distributionSrv" method="route" />
|
<bean ref="distributionSrv" method="route" />
|
||||||
<doCatch>
|
<doCatch>
|
||||||
|
@ -40,7 +39,7 @@
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="handleoupDistribution">
|
<route id="handleoupDistribution">
|
||||||
<from uri="jms-dist:queue:handleoup.dropbox?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-dist:queue:handleoup.dropbox"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="handleoupDistributionSrv" method="route" />
|
<bean ref="handleoupDistributionSrv" method="route" />
|
||||||
<doCatch>
|
<doCatch>
|
||||||
|
@ -51,7 +50,7 @@
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="radarserverDistribution">
|
<route id="radarserverDistribution">
|
||||||
<from uri="jms-dist:queue:radarserver.dropbox?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-dist:queue:radarserver.dropbox" />
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="radarserverDistributionSrv" method="route" />
|
<bean ref="radarserverDistributionSrv" method="route" />
|
||||||
<doCatch>
|
<doCatch>
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
<bean id="dpaDistRegistry" factory-bean="distributionSrv"
|
<bean id="dpaDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="dpa" />
|
<constructor-arg value="dpa" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.dpa?destinationResolver=#qpidDurableResolver"/>
|
<constructor-arg value="jms-dist:queue:Ingest.dpa"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="dpaRadarServerDistRegistry" factory-bean="radarserverDistributionSrv"
|
<bean id="dpaRadarServerDistRegistry" factory-bean="radarserverDistributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="dpa" />
|
<constructor-arg value="dpa" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.dpa?destinationResolver=#qpidDurableResolver"/>
|
<constructor-arg value="jms-dist:queue:Ingest.dpa"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<camelContext id="dpa-camel"
|
<camelContext id="dpa-camel"
|
||||||
|
@ -30,13 +30,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>dpa</constant>
|
<constant>dpa</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.dpa"/>
|
<to uri="jms-durable:queue:Ingest.dpa"/>
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin dpa Routes -->
|
<!-- Begin dpa Routes -->
|
||||||
<route id="dpaIngestRoute">
|
<route id="dpaIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.dpa?destinationResolver=#qpidDurableResolver"/>
|
<from uri="jms-durable:queue:Ingest.dpa"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>dpa</constant>
|
<constant>dpa</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
@ -55,6 +55,5 @@
|
||||||
</doCatch>
|
</doCatch>
|
||||||
</doTry>
|
</doTry>
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
</camelContext>
|
</camelContext>
|
||||||
</beans>
|
</beans>
|
|
@ -31,14 +31,14 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>arealffg</constant>
|
<constant>arealffg</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.arealffg" />
|
<to uri="jms-durable:queue:Ingest.arealffg" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin arealffg Routes -->
|
<!-- Begin arealffg Routes -->
|
||||||
<!--
|
<!--
|
||||||
<route id="arealffgIngestRoute">
|
<route id="arealffgIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.arealffg" />
|
<from uri="jms-durable:queue:Ingest.arealffg" />
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="stringToFile" />
|
<bean ref="stringToFile" />
|
||||||
|
|
|
@ -9,20 +9,20 @@
|
||||||
<bean id="dhrDistRegistry" factory-bean="distributionSrv"
|
<bean id="dhrDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="dhr" />
|
<constructor-arg value="dhr" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.dhr?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.dhr"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="dhrRadarServerDistRegistry" factory-bean="radarserverDistributionSrv"
|
<bean id="dhrRadarServerDistRegistry" factory-bean="radarserverDistributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="dhr" />
|
<constructor-arg value="dhr" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.dhr?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.dhr"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<camelContext id="nonClusteredDHRroutes" xmlns="http://camel.apache.org/schema/spring"
|
<camelContext id="nonClusteredDHRroutes" xmlns="http://camel.apache.org/schema/spring"
|
||||||
errorHandlerRef="errorHandler">
|
errorHandlerRef="errorHandler">
|
||||||
<!-- Begin non-clustered dhr Routes -->
|
<!-- Begin non-clustered dhr Routes -->
|
||||||
<route id="dhrIngestFilter">
|
<route id="dhrIngestFilter">
|
||||||
<from uri="jms-generic:queue:Ingest.dhr?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.dhr"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>dhr</constant>
|
<constant>dhr</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
errorHandlerRef="errorHandler">
|
errorHandlerRef="errorHandler">
|
||||||
<!-- Begin dhr Routes -->
|
<!-- Begin dhr Routes -->
|
||||||
<route id="dhrIngestRoute">
|
<route id="dhrIngestRoute">
|
||||||
<from uri="jms-generic:queue:dhrProcess?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:dhrProcess" />
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<bean id="q2DistRegistry" factory-bean="distributionSrv"
|
<bean id="q2DistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="q2" />
|
<constructor-arg value="q2" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.q2?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.q2"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<camelContext id="q2Proc-context"
|
<camelContext id="q2Proc-context"
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<!-- Run the Q2 File Processor on new files -->
|
<!-- Run the Q2 File Processor on new files -->
|
||||||
<route id="q2File">
|
<route id="q2File">
|
||||||
<from uri="jms-generic:queue:Ingest.q2?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.q2"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="q2Proc" method="unzip" />
|
<bean ref="q2Proc" method="unzip" />
|
||||||
|
|
|
@ -49,12 +49,12 @@ import com.raytheon.uf.edex.ohd.MainMethod;
|
||||||
* SOFTWARE HISTORY
|
* SOFTWARE HISTORY
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Jan 20, 2010 4200 snaples Initial creation
|
* Jan 20, 2010 4200 snaples Initial creation
|
||||||
* Mar 09, 2012 417 dgilling Refactor to use two-stage queue
|
* Mar 09, 2012 417 dgilling Refactor to use two-stage queue
|
||||||
* process.
|
* process.
|
||||||
* Mar 20, 2013 1804 bsteffen Switch all radar decompressing to be in
|
* Mar 20, 2013 1804 bsteffen Switch all radar decompressing to be in
|
||||||
* memory.
|
* memory.
|
||||||
*
|
* Sep 13, 2013 2368 rjpeter Updated to use durable jms settings.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author snaples
|
* @author snaples
|
||||||
|
@ -92,9 +92,9 @@ public class HPEDhrSrv {
|
||||||
|
|
||||||
private static final int DT_IDX = 2;
|
private static final int DT_IDX = 2;
|
||||||
|
|
||||||
private static final String JMS_QUEUE_URI = "jms-generic:queue:dhrProcess";
|
private static final String JMS_QUEUE_URI = "jms-durable:queue:dhrProcess";
|
||||||
|
|
||||||
private AppsDefaults appsDefaults = AppsDefaults.getInstance();
|
private final AppsDefaults appsDefaults = AppsDefaults.getInstance();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Route endpoint for "dhrIngestRoute". Takes a message, writes the file to
|
* Route endpoint for "dhrIngestRoute". Takes a message, writes the file to
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<bean id="acarsDistRegistry" factory-bean="distributionSrv"
|
<bean id="acarsDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="acarsPluginName" />
|
<constructor-arg ref="acarsPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.acars?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.acars"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="acarsCamelRegistered" factory-bean="contextManager"
|
<bean id="acarsCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -33,13 +33,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>acars</constant>
|
<constant>acars</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.acars" />
|
<to uri="jms-durable:queue:Ingest.acars" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin ACARS routes -->
|
<!-- Begin ACARS routes -->
|
||||||
<route id="acarsIngestRoute">
|
<route id="acarsIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.acars?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.acars"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>acars</constant>
|
<constant>acars</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -37,13 +37,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrascat</constant>
|
<constant>bufrascat</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrascat" />
|
<to uri="jms-durable:queue:Ingest.bufrascat" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin bufrascat routes -->
|
<!-- Begin bufrascat routes -->
|
||||||
<route id="bufrascatIngestRoute">
|
<route id="bufrascatIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrascat?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.bufrascat"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrascat</constant>
|
<constant>bufrascat</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<bean id="bufrhdwDistRegistry" factory-bean="distributionSrv"
|
<bean id="bufrhdwDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="bufrhdwPluginName" />
|
<constructor-arg ref="bufrhdwPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.bufrhdw?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.bufrhdw"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="bufrhdwCamelRegistered" factory-bean="contextManager"
|
<bean id="bufrhdwCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -31,13 +31,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrhdw</constant>
|
<constant>bufrhdw</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrhdw" />
|
<to uri="jms-durable:queue:Ingest.bufrhdw" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin bufrhdw routes -->
|
<!-- Begin bufrhdw routes -->
|
||||||
<route id="bufrhdwIngestRoute">
|
<route id="bufrhdwIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrhdw?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.bufrhdw"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrhdw</constant>
|
<constant>bufrhdw</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<bean id="bufrmthdwDistRegistry" factory-bean="distributionSrv"
|
<bean id="bufrmthdwDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="bufrmthdwPluginName" />
|
<constructor-arg ref="bufrmthdwPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.bufrmthdw?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.bufrmthdw"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="bufrmthdwCamelRegistered" factory-bean="contextManager"
|
<bean id="bufrmthdwCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -31,13 +31,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrmthdw</constant>
|
<constant>bufrmthdw</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrmthdw" />
|
<to uri="jms-durable:queue:Ingest.bufrmthdw" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin bufrmthdw routes -->
|
<!-- Begin bufrmthdw routes -->
|
||||||
<route id="bufrhdwIngestRoute">
|
<route id="bufrhdwIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrmthdw?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.bufrmthdw"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrmthdw</constant>
|
<constant>bufrmthdw</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<bean id="bufrncwfDistRegistry" factory-bean="distributionSrv"
|
<bean id="bufrncwfDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="bufrncwfPluginName" />
|
<constructor-arg ref="bufrncwfPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.bufrncwf?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.bufrncwf"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="bufrncwfCamelRegistered" factory-bean="contextManager"
|
<bean id="bufrncwfCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -30,13 +30,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrncwf</constant>
|
<constant>bufrncwf</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrncwf" />
|
<to uri="jms-durable:queue:Ingest.bufrncwf" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin bufrncwf routes -->
|
<!-- Begin bufrncwf routes -->
|
||||||
<route id="bufrncwfIngestRoute">
|
<route id="bufrncwfIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrncwf?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.bufrncwf"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrncwf</constant>
|
<constant>bufrncwf</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<bean id="bufrquikscatDistRegistry" factory-bean="distributionSrv"
|
<bean id="bufrquikscatDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="bufrquikscatPluginName" />
|
<constructor-arg ref="bufrquikscatPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.bufrquikscat?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.bufrquikscat"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="bufrquikscatCamelRegistered" factory-bean="contextManager"
|
<bean id="bufrquikscatCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -37,13 +37,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrquikscat</constant>
|
<constant>bufrquikscat</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrquikscat" />
|
<to uri="jms-durable:queue:Ingest.bufrquikscat" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin bufrquikscat routes -->
|
<!-- Begin bufrquikscat routes -->
|
||||||
<route id="bufrquikscatIngestRoute">
|
<route id="bufrquikscatIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrquikscat?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.bufrquikscat"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrquikscat</constant>
|
<constant>bufrquikscat</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -32,13 +32,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrsigwx</constant>
|
<constant>bufrsigwx</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrsigwx" />
|
<to uri="jms-durable:queue:Ingest.bufrsigwx" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin bufrsigwx routes -->
|
<!-- Begin bufrsigwx routes -->
|
||||||
<route id="bufrsigwxIngestRoute">
|
<route id="bufrsigwxIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrsigwx?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.bufrsigwx"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrsigwx</constant>
|
<constant>bufrsigwx</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<bean id="bufrssmiDistRegistry" factory-bean="distributionSrv"
|
<bean id="bufrssmiDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="bufrssmiPluginName" />
|
<constructor-arg ref="bufrssmiPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.bufrssmi?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.bufrssmi"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="bufrssmiCamelRegistered" factory-bean="contextManager"
|
<bean id="bufrssmiCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -37,13 +37,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrssmi</constant>
|
<constant>bufrssmi</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.bufrssmi" />
|
<to uri="jms-durable:queue:Ingest.bufrssmi" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin bufrssmi routes -->
|
<!-- Begin bufrssmi routes -->
|
||||||
<route id="bufrssmiIngestRoute">
|
<route id="bufrssmiIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.bufrssmi?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.bufrssmi" />
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>bufrssmi</constant>
|
<constant>bufrssmi</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
|
|
||||||
<route id="cwaIngestRoute">
|
<route id="cwaIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.cwa?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.cwa"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>cwa</constant>
|
<constant>cwa</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<camelContext id="cwat-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
<camelContext id="cwat-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
||||||
<route id="CWATGenerate">
|
<route id="CWATGenerate">
|
||||||
<from uri="jms-generic:queue:cwatGenerate?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:cwatGenerate"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="cwatGenerator" method="generate" />
|
<bean ref="cwatGenerator" method="generate" />
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
<camelContext id="ffmp-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
<camelContext id="ffmp-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
||||||
<route id="FFMPGenerate">
|
<route id="FFMPGenerate">
|
||||||
<from uri="jms-generic:queue:ffmpGenerate?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:ffmpGenerate"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="ffmpGenerator" method="generate" />
|
<bean ref="ffmpGenerator" method="generate" />
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<camelContext id="fog-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
<camelContext id="fog-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
||||||
<route id="FOGGenerate">
|
<route id="FOGGenerate">
|
||||||
<from uri="jms-generic:queue:fogGenerate?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:fogGenerate"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="fogGenerator" method="generate" />
|
<bean ref="fogGenerator" method="generate" />
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
<camelContext id="fssobs-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
<camelContext id="fssobs-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
||||||
<route id="FSSObsGenerate">
|
<route id="FSSObsGenerate">
|
||||||
<from uri="jms-generic:queue:fssobsGenerate?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:fssobsGenerate"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="fssObsGenerator" method="generate" />
|
<bean ref="fssObsGenerator" method="generate" />
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<bean id="ldadmesonetDistRegistry" factory-bean="distributionSrv"
|
<bean id="ldadmesonetDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg value="ldadmesonet" />
|
<constructor-arg value="ldadmesonet" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.ldadmesonet?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.ldadmesonet"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="ldadmesonetPointData" class="com.raytheon.uf.common.dataplugin.ldadmesonet.LdadmesonetPointDataTransform"/>
|
<bean id="ldadmesonetPointData" class="com.raytheon.uf.common.dataplugin.ldadmesonet.LdadmesonetPointDataTransform"/>
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
errorHandlerRef="errorHandler"
|
errorHandlerRef="errorHandler"
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
<route id="ldadmesonetIngestRoute">
|
<route id="ldadmesonetIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.ldadmesonet?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.ldadmesonet"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="stringToFile" />
|
<bean ref="stringToFile" />
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<!-- Begin loctables routes -->
|
<!-- Begin loctables routes -->
|
||||||
<route id="loctablesIngestRoute">
|
<route id="loctablesIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.loctables?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.loctables"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>loctables</constant>
|
<constant>loctables</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -31,13 +31,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>lsr</constant>
|
<constant>lsr</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.lsr" />
|
<to uri="jms-durable:queue:Ingest.lsr" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin lclstrmrpt routes -->
|
<!-- Begin lclstrmrpt routes -->
|
||||||
<route id="lclstrmrptIngestRoute">
|
<route id="lclstrmrptIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.lsr?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.lsr"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>lsr</constant>
|
<constant>lsr</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
<!-- Non clustered, specifically used by handleOUP.py to push published files directly into stream -->
|
<!-- Non clustered, specifically used by handleOUP.py to push published files directly into stream -->
|
||||||
<!-- This route does not delete the file passed! If delete is needed, create a new route and use moveFileToArchive -->
|
<!-- This route does not delete the file passed! If delete is needed, create a new route and use moveFileToArchive -->
|
||||||
<route id="manualFilePush">
|
<route id="manualFilePush">
|
||||||
<from uri="jms-generic:queue:Ingest.manual?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.manual"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="stringToFile"/>
|
<bean ref="stringToFile"/>
|
||||||
<bean ref="manualProc" />
|
<bean ref="manualProc" />
|
||||||
<to uri="jms-generic:queue:external.dropbox?destinationResolver=#qpidDurableResolver" />
|
<to uri="jms-durable:queue:external.dropbox"/>
|
||||||
<doCatch>
|
<doCatch>
|
||||||
<exception>java.lang.Throwable</exception>
|
<exception>java.lang.Throwable</exception>
|
||||||
<to uri="log-showbody:manual?level=ERROR" />
|
<to uri="log-showbody:manual?level=ERROR" />
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<from ref="manualFileEndpoint" />
|
<from ref="manualFileEndpoint" />
|
||||||
<bean ref="manualProc" method="copyFileToArchive"/>
|
<bean ref="manualProc" method="copyFileToArchive"/>
|
||||||
<bean ref="manualProc" />
|
<bean ref="manualProc" />
|
||||||
<to uri="jms-generic:queue:external.dropbox?destinationResolver=#qpidDurableResolver" />
|
<to uri="jms-durable:queue:external.dropbox"/>
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="ndmFileScan">
|
<route id="ndmFileScan">
|
||||||
|
|
|
@ -49,13 +49,13 @@
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>mesowest</constant>
|
<constant>mesowest</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
<to uri="jms-generic:queue:Ingest.Mesowest" />
|
<to uri="jms-durable:queue:Ingest.Mesowest" />
|
||||||
</route>
|
</route>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Begin MESOWest routes -->
|
<!-- Begin MESOWest routes -->
|
||||||
<route id="mesowestIngestRoute">
|
<route id="mesowestIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.Mesowest?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.Mesowest"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="stringToFile" />
|
<bean ref="stringToFile" />
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<!-- Begin crimss routes -->
|
<!-- Begin crimss routes -->
|
||||||
<route id="crimssIngestRoute">
|
<route id="crimssIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.crimss?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.crimss"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>crimss</constant>
|
<constant>crimss</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<!-- Begin nucaps routes -->
|
<!-- Begin nucaps routes -->
|
||||||
<route id="nucapsIngestRoute">
|
<route id="nucapsIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.nucaps?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.nucaps"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>nucaps</constant>
|
<constant>nucaps</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -8,14 +8,12 @@
|
||||||
<property name="maxPoolSize" value="1" />
|
<property name="maxPoolSize" value="1" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="jmsIngestVIIRSConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
|
||||||
factory-bean="jmsConfig" factory-method="copy" />
|
|
||||||
|
|
||||||
<bean id="jms-viirs" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-viirs" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestVIIRSConfig" />
|
<constructor-arg ref="jmsViirsConfig" />
|
||||||
<property name="taskExecutor" ref="viirsThreadPool" />
|
<property name="taskExecutor" ref="viirsThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
|
<bean id="jmsViirsConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
<bean id="viirsDistRegistry" factory-bean="distributionSrv"
|
<bean id="viirsDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="viirsPluginName" />
|
<constructor-arg ref="viirsPluginName" />
|
||||||
|
@ -42,7 +40,7 @@
|
||||||
|
|
||||||
<!-- Begin VIIRS routes -->
|
<!-- Begin VIIRS routes -->
|
||||||
<route id="viirsIngestRoute">
|
<route id="viirsIngestRoute">
|
||||||
<from uri="jms-viirs:queue:Ingest.VIIRS?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-viirs:queue:Ingest.VIIRS"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="stringToFile" />
|
<bean ref="stringToFile" />
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<camelContext id="preciprate-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
<camelContext id="preciprate-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
||||||
<route id="PrecipRateGenerate">
|
<route id="PrecipRateGenerate">
|
||||||
<from uri="jms-generic:queue:preciprateGenerate?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:preciprateGenerate"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="preciprateGenerator" method="generate" />
|
<bean ref="preciprateGenerator" method="generate" />
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<camelContext id="qpf-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
<camelContext id="qpf-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
||||||
<route id="QPFGenerate">
|
<route id="QPFGenerate">
|
||||||
<from uri="jms-generic:queue:qpfGenerate?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:qpfGenerate"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
<bean ref="qpfGenerator" method="generate" />
|
<bean ref="qpfGenerator" method="generate" />
|
||||||
|
|
|
@ -4,17 +4,16 @@
|
||||||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
||||||
|
|
||||||
<bean id="jms-satellite-mcidas" class="org.apache.camel.component.jms.JmsComponent">
|
<bean id="jms-satellite-mcidas" class="org.apache.camel.component.jms.JmsComponent">
|
||||||
<constructor-arg ref="jmsIngestSatelliteMcidasConfig" />
|
<constructor-arg ref="jmsSatelliteMcidasConfig" />
|
||||||
<property name="taskExecutor" ref="satelliteMcidasThreadPool" />
|
<property name="taskExecutor" ref="satelliteMcidasThreadPool" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jmsIngestSatelliteMcidasConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
|
||||||
factory-bean="jmsConfig" factory-method="copy" />
|
|
||||||
<bean id="satelliteMcidasThreadPool"
|
<bean id="satelliteMcidasThreadPool"
|
||||||
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
||||||
<property name="corePoolSize" value="1" />
|
<property name="corePoolSize" value="1" />
|
||||||
<property name="maxPoolSize" value="1" />
|
<property name="maxPoolSize" value="1" />
|
||||||
</bean>
|
</bean>
|
||||||
|
<bean id="jmsSatelliteMcidasConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
||||||
|
factory-bean="jmsDurableConfig" factory-method="copy"/>
|
||||||
<bean id="satelliteMcidasDecoder" class="com.raytheon.uf.edex.plugin.satellite.mcidas.McidasSatelliteDecoder">
|
<bean id="satelliteMcidasDecoder" class="com.raytheon.uf.edex.plugin.satellite.mcidas.McidasSatelliteDecoder">
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -36,7 +35,7 @@
|
||||||
|
|
||||||
<!-- Begin McIDAS Sat routes -->
|
<!-- Begin McIDAS Sat routes -->
|
||||||
<route id="satMcidasIngestRoute">
|
<route id="satMcidasIngestRoute">
|
||||||
<from uri="jms-satellite-mcidas:queue:Ingest.Satellite.Mcidas?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-satellite-mcidas:queue:Ingest.Satellite.Mcidas" />
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>satellite-mcidas</constant>
|
<constant>satellite-mcidas</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
xmlns="http://camel.apache.org/schema/spring"
|
xmlns="http://camel.apache.org/schema/spring"
|
||||||
errorHandlerRef="errorHandler">
|
errorHandlerRef="errorHandler">
|
||||||
<route id="scanCpgSrvListenerRoute">
|
<route id="scanCpgSrvListenerRoute">
|
||||||
<from uri="jms-generic:queue:scanCpgsrvFiltering"/>
|
<from uri="jms-durable:queue:scanCpgsrvFiltering"/>
|
||||||
<doTry>
|
<doTry>
|
||||||
<pipeline>
|
<pipeline>
|
||||||
<bean ref="serializationUtil" method="transformFromThrift" />
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
|
|
||||||
<route id="svrwxIngestRoute">
|
<route id="svrwxIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.svrwx?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.svrwx"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>svrwx</constant>
|
<constant>svrwx</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<bean id="tcgDistRegistry" factory-bean="distributionSrv"
|
<bean id="tcgDistRegistry" factory-bean="distributionSrv"
|
||||||
factory-method="register">
|
factory-method="register">
|
||||||
<constructor-arg ref="tcgPluginName" />
|
<constructor-arg ref="tcgPluginName" />
|
||||||
<constructor-arg value="jms-dist:queue:Ingest.tcg?destinationResolver=#qpidDurableResolver" />
|
<constructor-arg value="jms-dist:queue:Ingest.tcg"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="tcgCamelRegistered" factory-bean="contextManager"
|
<bean id="tcgCamelRegistered" factory-bean="contextManager"
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
|
|
||||||
<route id="tcgIngestRoute">
|
<route id="tcgIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.tcg?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.tcg"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>tcg</constant>
|
<constant>tcg</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
autoStartup="false">
|
autoStartup="false">
|
||||||
|
|
||||||
<route id="tcsIngestRoute">
|
<route id="tcsIngestRoute">
|
||||||
<from uri="jms-generic:queue:Ingest.tcs?destinationResolver=#qpidDurableResolver" />
|
<from uri="jms-durable:queue:Ingest.tcs"/>
|
||||||
<setHeader headerName="pluginName">
|
<setHeader headerName="pluginName">
|
||||||
<constant>tcs</constant>
|
<constant>tcs</constant>
|
||||||
</setHeader>
|
</setHeader>
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue