Examples of selectSingleNode()


Examples of sos.xml.SOSXMLXPath.selectSingleNode()

                NodeList nodeList = null;
                NamedNodeMap nodeMapSettings = null;
               
                // get settings for log_level
                nodeQuery = "//settings/log_level";
                Node nodeSettings = xpath.selectSingleNode(nodeQuery);
                if (nodeSettings != null) {
                    nodeMapSettings = nodeSettings.getAttributes();
                    if (nodeMapSettings != null && nodeMapSettings.getNamedItem("value") != null) {
                    this.getLogger().debug1("Log Level is: " + nodeMapSettings.getNamedItem("value").getNodeValue() + "(" + this.logLevel2Int(nodeMapSettings.getNamedItem("value").getNodeValue()) + ")");
                    this.getLogger().setLogLevel(this.logLevel2Int(nodeMapSettings.getNamedItem("value").getNodeValue()));
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

                boolean globalEnv = false;
               
                // look up the configuration for all states
                nodeQuery = "//job_chain[@name='" + spooler_task.order().job_chain().name() + "']/order";
                this.getLogger().debug9("lookup order query for job chain: " + nodeQuery);
                Node nodeParams = xpath.selectSingleNode(nodeQuery + "/params");
                if (nodeParams == null || !nodeParams.hasChildNodes()) {
                    nodeQuery = "//application[@name='" + spooler_task.order().job_chain().name() + "']/order";
                    this.getLogger().debug9("lookup order query for application: " + nodeQuery);
                    nodeParams = xpath.selectSingleNode(nodeQuery + "/params");
                }
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

                this.getLogger().debug9("lookup order query for job chain: " + nodeQuery);
                Node nodeParams = xpath.selectSingleNode(nodeQuery + "/params");
                if (nodeParams == null || !nodeParams.hasChildNodes()) {
                    nodeQuery = "//application[@name='" + spooler_task.order().job_chain().name() + "']/order";
                    this.getLogger().debug9("lookup order query for application: " + nodeQuery);
                    nodeParams = xpath.selectSingleNode(nodeQuery + "/params");
                }
               
                if (nodeParams != null && nodeParams.hasAttributes()) {
                    NamedNodeMap nodeMapParams = nodeParams.getAttributes();
                    if (nodeMapParams != null && nodeMapParams.getNamedItem("env") != null) {
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

                SOSXMLXPath xpath = new SOSXMLXPath(new StringBuffer(payload));
                NodeList nodeList = null;
                NamedNodeMap nodeMapSettings = null;

                nodeQuery = "//settings/log_level";
                Node nodeSettings = xpath.selectSingleNode(nodeQuery);
                if (nodeSettings != null) {
                    nodeMapSettings = nodeSettings.getAttributes();
                    if (nodeMapSettings != null && nodeMapSettings.getNamedItem("value") != null) {
                    this.getLogger().debug1("Log Level is: " + nodeMapSettings.getNamedItem("value").getNodeValue());
                    this.getLogger().setLogLevel(this.logLevel2Int(nodeMapSettings.getNamedItem("value").getNodeValue()));
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

      boolean start = true;
      String nodeQuery = "//add_order[@at]";
      Node runtime;

      if (type.equals("order")) {
        Node atNode = xpath.selectSingleNode(nodeQuery);
        nodeQuery = "//run_time";
        runtime = xpath.selectSingleNode(nodeQuery);

        if (atNode == null && runtime == null) {
          start = false;
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

      Node runtime;

      if (type.equals("order")) {
        Node atNode = xpath.selectSingleNode(nodeQuery);
        nodeQuery = "//run_time";
        runtime = xpath.selectSingleNode(nodeQuery);

        if (atNode == null && runtime == null) {
          start = false;
          getLog().debug1(
              "processActionAndStart:" + name
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

                  + " once=yes. Order will not be modified because 'no at and no run_time' is specified by <add_order>");
        }
      }

      nodeQuery = "//run_time[@repeat]";
      runtime = xpath.selectSingleNode(nodeQuery);
      if (runtime != null) {
        start = false;
        getLog().debug1("processActionAndStart:" + name + " once=yes. " + type + " will not be modified because 'repeat' is specified by <run_time>");
      }
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

        start = false;
        getLog().debug1("processActionAndStart:" + name + " once=yes. " + type + " will not be modified because 'repeat' is specified by <run_time>");
      }

      nodeQuery = "//run_time/period[@repeat]";
      runtime = xpath.selectSingleNode(nodeQuery);
      if (runtime != null && start) {
        start = false;
        getLog().debug1("processActionAndStart:" + name + " once=yes. " + type + " will not be started because 'repeat' is specified by <run_time>");
      }
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

        String scheduler_order_state = "";
       
        SOSXMLXPath xpath = new SOSXMLXPath(new StringBuffer(xml));
        NamedNodeMap nodeMapSettings = null;
        String nodeQuery = "//add_order";
        Node add_order = xpath.selectSingleNode(nodeQuery);
      
        if (add_order != null){

           nodeMapSettings = add_order.getAttributes();
          
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNode()

    String section = "job " + name;
   
    SOSXMLXPath xpath = new SOSXMLXPath(new StringBuffer(xml));
    NamedNodeMap nodeMapSettings = null;
    String nodeQuery = "//email_settings";
    Node emailSettings = xpath.selectSingleNode(nodeQuery);
    if(emailSettings != null){
        nodeMapSettings = emailSettings.getAttributes();
        if(nodeMapSettings != null && nodeMapSettings.getNamedItem("to") != null)
          to = nodeMapSettings.getNamedItem("to").getNodeValue();
        if(nodeMapSettings != null && nodeMapSettings.getNamedItem("cc") != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.