[Reconnoiter-devel] [reconnoiter commit] r818 - in trunk/src/java/com/omniti/reconnoiter: . event

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Wed Sep 9 00:12:49 EDT 2009


Author: jesus
Date: 2009-09-09 00:12:49 -0400 (Wed, 09 Sep 2009)
New Revision: 818

Modified:
   trunk/src/java/com/omniti/reconnoiter/StratconMessage.java
   trunk/src/java/com/omniti/reconnoiter/event/NoitEvent.java
Log:
cleanup, no functional change

Modified: trunk/src/java/com/omniti/reconnoiter/StratconMessage.java
===================================================================
--- trunk/src/java/com/omniti/reconnoiter/StratconMessage.java	2009-09-09 01:55:13 UTC (rev 817)
+++ trunk/src/java/com/omniti/reconnoiter/StratconMessage.java	2009-09-09 04:12:49 UTC (rev 818)
@@ -22,7 +22,7 @@
   private static DocumentBuilderFactory factory = null;
   private static DocumentBuilder parser = null;
 
-  public static StratconMessage makeMessage(String xml) {
+  static {
     if(factory == null) {
       factory = DocumentBuilderFactory.newInstance();
       factory.setIgnoringComments(true);
@@ -35,7 +35,9 @@
         parser = factory.newDocumentBuilder();
       } catch(Exception e) { }
     }
+  }
 
+  public static StratconMessage makeMessage(String xml) {
     InputSource source = new InputSource(new StringReader(xml));
 
     try {

Modified: trunk/src/java/com/omniti/reconnoiter/event/NoitEvent.java
===================================================================
--- trunk/src/java/com/omniti/reconnoiter/event/NoitEvent.java	2009-09-09 01:55:13 UTC (rev 817)
+++ trunk/src/java/com/omniti/reconnoiter/event/NoitEvent.java	2009-09-09 04:12:49 UTC (rev 818)
@@ -43,17 +43,7 @@
     cfg.setRootElementName("NoitStatus");
     epService.getEPAdministrator().getConfiguration()
              .addEventType("NoitStatus", cfg);
-/*
     cfg = new ConfigurationEventTypeXMLDOM();
-    cfg.addXPathProperty("uuid", "/NoitMetricNumeric/id", XPathConstants.STRING);
-    cfg.addXPathProperty("name", "/NoitMetricNumeric/name", XPathConstants.STRING);
-    cfg.addXPathProperty("value", "/NoitMetricNumeric/value", XPathConstants.NUMBER);
-    cfg.addXPathProperty("noit", "/NoitMetricNumeric/remote", XPathConstants.STRING);
-    cfg.setRootElementName("NoitMetricNumeric");
-    epService.getEPAdministrator().getConfiguration()
-             .addEventType("NoitMetricNumeric", cfg);
-*/
-    cfg = new ConfigurationEventTypeXMLDOM();
     cfg.addXPathProperty("uuid", "/NoitMetricText/id", XPathConstants.STRING);
     cfg.addXPathProperty("name", "/NoitMetricText/name", XPathConstants.STRING);
     cfg.addXPathProperty("message", "/NoitMetricText/message", XPathConstants.STRING);



More information about the Reconnoiter-devel mailing list