浏览代码

HPCC-17336 Add WuWsBilling agent support

Base repo changes needed by LN repo
Add logging agent type attribute to all logging agents to make all agents
available for addition in logging manager
Update config XML files to point WuBilling component to correct XSL

Signed-off-by: Ken Rowland <kenneth.rowland@lexisnexisrisk.com>
Ken Rowland 8 年之前
父节点
当前提交
b3985c01d9

+ 3 - 2
deployment/deployutils/deployutils.cpp

@@ -899,8 +899,9 @@ public:
             else if (strcmp(type, "esploggingagentType")==0)
             else if (strcmp(type, "esploggingagentType")==0)
             {
             {
               nCtrlType = 4;//LVC_COMBO;
               nCtrlType = 4;//LVC_COMBO;
-              bAddBlank = true;
-              LoadComboBox("Software/ESPLoggingAgent", bAddBlank, m_pEnv, m_pEnv, strBuf);
+              bAddBlank = true;  
+              //LoadComboBox("Software/ESPLoggingAgent", bAddBlank, m_pEnv, m_pEnv, strBuf);
+              LoadComboBox("Software/*/[@type=\"DefaultLoggingAgent\"]", bAddBlank, m_pEnv, m_pEnv, strBuf);
               extraInfo = strBuf.str();
               extraInfo = strBuf.str();
             }
             }
             else if (strcmp(type, "loggingmanagerType")==0)
             else if (strcmp(type, "loggingmanagerType")==0)

+ 8 - 0
initfiles/componentfiles/configxml/cassandraloggingagent.xsd

@@ -27,6 +27,14 @@
             <title>Cassandra Logging Agent</title>
             <title>Cassandra Logging Agent</title>
         </xs:appinfo>
         </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
+      <!-- All SecurityManager Plugins must define the type="SecurityManager" attribute -->
+      <xs:attribute name="type" type="DefaultLoggingAgent" use="required" default="DefaultLoggingAgent">
+        <xs:annotation>
+          <xs:appinfo>
+            <viewType>hidden</viewType>
+          </xs:appinfo>
+        </xs:annotation>
+      </xs:attribute>
       <xs:attribute name="build" type="buildType" use="required">
       <xs:attribute name="build" type="buildType" use="required">
         <xs:annotation>
         <xs:annotation>
           <xs:appinfo>
           <xs:appinfo>

+ 2 - 2
initfiles/componentfiles/configxml/cgencomplist_linux.xml

@@ -74,8 +74,8 @@
   <Component name="ecldirect" processName='EspService' schema='esp_service_ecldirect.xsd' deployable='no'>
   <Component name="ecldirect" processName='EspService' schema='esp_service_ecldirect.xsd' deployable='no'>
     <File name="@temp/esp_service_ecldirect.xsl" method="esp_service_module"/>
     <File name="@temp/esp_service_ecldirect.xsl" method="esp_service_module"/>
   </Component>
   </Component>
-  <Component name="esp_wubilling" processName='EspService' schema='esp_service_wubilling.xsd' deployable='no'>
-    <File name="@temp/esp_service_wubilling.xsl" method="esp_service_module"/>
+  <Component name="esp_wubilling" processName='EspService' schema='wswubilling.xsd' deployable='no'>
+    <File name="@temp/esp_service_wswubilling.xsl" method="esp_service_module"/>
   </Component>
   </Component>
   <Component name="espadl" processName='EspService' schema='esp_service_wsadl.xsd' deployable='no'>
   <Component name="espadl" processName='EspService' schema='esp_service_wsadl.xsd' deployable='no'>
     <File name="@temp/esp_service_wsadl.xsl" method="esp_service_module"/>
     <File name="@temp/esp_service_wsadl.xsl" method="esp_service_module"/>

+ 2 - 2
initfiles/componentfiles/configxml/cgencomplist_win.xml

@@ -77,8 +77,8 @@
   <Component name="ecldirect" processName='EspService' schema='esp_service_ecldirect.xsd' deployable='no'>
   <Component name="ecldirect" processName='EspService' schema='esp_service_ecldirect.xsd' deployable='no'>
     <File name="@temp\esp_service_ecldirect.xsl" method="esp_service_module"/>
     <File name="@temp\esp_service_ecldirect.xsl" method="esp_service_module"/>
   </Component>
   </Component>
-  <Component name="esp_wubilling" processName='EspService' schema='esp_service_wubilling.xsd' deployable='no'>
-    <File name="@temp\esp_service_wubilling.xsl" method="esp_service_module"/>
+  <Component name="esp_wubilling" processName='EspService' schema='wswubilling.xsd' deployable='no'>
+    <File name="@temp\esp_service_wswubilling.xsl" method="esp_service_module"/>
   </Component>
   </Component>
   <Component name="espadl" processName='EspService' schema='esp_service_wsadl.xsd' deployable='no'>
   <Component name="espadl" processName='EspService' schema='esp_service_wsadl.xsd' deployable='no'>
     <File name="@temp\esp_service_wsadl.xsl" method="esp_service_module"/>
     <File name="@temp\esp_service_wsadl.xsl" method="esp_service_module"/>

+ 8 - 0
initfiles/componentfiles/configxml/esploggingagent.xsd

@@ -15,6 +15,14 @@
             <title>ESP Logging Agent</title>
             <title>ESP Logging Agent</title>
         </xs:appinfo>
         </xs:appinfo>
       </xs:annotation>
       </xs:annotation>
+      <!-- All logging agent Plugins must define the type="DefaultLoggingAgent" attribute -->
+      <xs:attribute name="type" type="DefaultLoggingAgent" use="required" default="DefaultLoggingAgent">
+        <xs:annotation>
+          <xs:appinfo>
+            <viewType>hidden</viewType>
+          </xs:appinfo>
+        </xs:annotation>
+      </xs:attribute>
       <xs:attribute name="build" type="buildType" use="required">
       <xs:attribute name="build" type="buildType" use="required">
         <xs:annotation>
         <xs:annotation>
           <xs:appinfo>
           <xs:appinfo>