Changeset 99a21c2049fcefe65568396291a4f1fef7f1a547
- Timestamp:
- 09/09/09 04:12:49
(9 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1252469569 +0000
- git-parent:
[2456eb890d4d6ad34b2ad388e0f79a46feeeda39]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1252469569 +0000
- Message:
cleanup, no functional change
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ra3f2dff |
r99a21c2 |
|
23 | 23 | private static DocumentBuilder parser = null; |
---|
24 | 24 | |
---|
25 | | public static StratconMessage makeMessage(String xml) { |
---|
| 25 | static { |
---|
26 | 26 | if(factory == null) { |
---|
27 | 27 | factory = DocumentBuilderFactory.newInstance(); |
---|
… | … | |
36 | 36 | } catch(Exception e) { } |
---|
37 | 37 | } |
---|
| 38 | } |
---|
38 | 39 | |
---|
| 40 | public static StratconMessage makeMessage(String xml) { |
---|
39 | 41 | InputSource source = new InputSource(new StringReader(xml)); |
---|
40 | 42 | |
---|
ra3f2dff |
r99a21c2 |
|
44 | 44 | epService.getEPAdministrator().getConfiguration() |
---|
45 | 45 | .addEventType("NoitStatus", cfg); |
---|
46 | | /* |
---|
47 | | cfg = new ConfigurationEventTypeXMLDOM(); |
---|
48 | | cfg.addXPathProperty("uuid", "/NoitMetricNumeric/id", XPathConstants.STRING); |
---|
49 | | cfg.addXPathProperty("name", "/NoitMetricNumeric/name", XPathConstants.STRING); |
---|
50 | | cfg.addXPathProperty("value", "/NoitMetricNumeric/value", XPathConstants.NUMBER); |
---|
51 | | cfg.addXPathProperty("noit", "/NoitMetricNumeric/remote", XPathConstants.STRING); |
---|
52 | | cfg.setRootElementName("NoitMetricNumeric"); |
---|
53 | | epService.getEPAdministrator().getConfiguration() |
---|
54 | | .addEventType("NoitMetricNumeric", cfg); |
---|
55 | | */ |
---|
56 | 46 | cfg = new ConfigurationEventTypeXMLDOM(); |
---|
57 | 47 | cfg.addXPathProperty("uuid", "/NoitMetricText/id", XPathConstants.STRING); |
---|