Examples of selectSingleNodeValue()


Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

          String answer = spooler.execute_xml(out.toString());
          logger.debug3("answer from scheduler: "+answer);

          SOSXMLXPath xpath = new SOSXMLXPath(new StringBuffer(answer));     
          String errorMsg = "";
          if (xpath.selectSingleNodeValue("//spooler/answer/ERROR") != null) {
            String errorCode = xpath.selectSingleNodeValue("//spooler/answer/ERROR/@code");
            String errorText = xpath.selectSingleNodeValue("//spooler/answer/ERROR/@text");
            errorMsg = errorCode + ":"  + errorText;
          }
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

          logger.debug3("answer from scheduler: "+answer);

          SOSXMLXPath xpath = new SOSXMLXPath(new StringBuffer(answer));     
          String errorMsg = "";
          if (xpath.selectSingleNodeValue("//spooler/answer/ERROR") != null) {
            String errorCode = xpath.selectSingleNodeValue("//spooler/answer/ERROR/@code");
            String errorText = xpath.selectSingleNodeValue("//spooler/answer/ERROR/@text");
            errorMsg = errorCode + ":"  + errorText;
          }

          if (!errorMsg.equals("")){
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

          SOSXMLXPath xpath = new SOSXMLXPath(new StringBuffer(answer));     
          String errorMsg = "";
          if (xpath.selectSingleNodeValue("//spooler/answer/ERROR") != null) {
            String errorCode = xpath.selectSingleNodeValue("//spooler/answer/ERROR/@code");
            String errorText = xpath.selectSingleNodeValue("//spooler/answer/ERROR/@text");
            errorMsg = errorCode + ":"  + errorText;
          }

          if (!errorMsg.equals("")){
            throw new Exception ("Scheduler answer ERROR:" + errorMsg);
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

          counter++;
//          hier die Fehlerhandhabung
          if (this.schedulerLauncherProtocol.equalsIgnoreCase("tcp")) { // no response is returned for UDP messages
            response = remoteCommand.getResponse();
            SOSXMLXPath xpath = new SOSXMLXPath(new StringBuffer(response));
            String errCode = xpath.selectSingleNodeValue("//ERROR/@code");
            String errMessage = xpath.selectSingleNodeValue("//ERROR/@text");
            sosLogger.info("..job scheduler response: " + response);               
            if ((errCode != null && errCode.length() > 0) || (errMessage != null && errMessage.length() > 0)) {
              sosLogger.warn("..job scheduler response reports error message: " + errMessage + " [" + errCode + "]");
              counterError++;
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

//          hier die Fehlerhandhabung
          if (this.schedulerLauncherProtocol.equalsIgnoreCase("tcp")) { // no response is returned for UDP messages
            response = remoteCommand.getResponse();
            SOSXMLXPath xpath = new SOSXMLXPath(new StringBuffer(response));
            String errCode = xpath.selectSingleNodeValue("//ERROR/@code");
            String errMessage = xpath.selectSingleNodeValue("//ERROR/@text");
            sosLogger.info("..job scheduler response: " + response);               
            if ((errCode != null && errCode.length() > 0) || (errMessage != null && errMessage.length() > 0)) {
              sosLogger.warn("..job scheduler response reports error message: " + errMessage + " [" + errCode + "]");
              counterError++;
            }
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

  // ======================================================
  class SchedulerUpdateAnswer {
    SchedulerUpdateAnswer(String xml) throws Exception {
      SOSXMLXPath xpathPayload = new sos.xml.SOSXMLXPath(new java.lang.StringBuffer(xml));
      this.release = xpathPayload.selectSingleNodeValue("//release");
      this.new_release = xpathPayload.selectSingleNodeValue("//new_release");
      this.os = xpathPayload.selectSingleNodeValue("//os");
      this.os_install = xpathPayload.selectSingleNodeValue("//os_install");
      this.automatic_download = xpathPayload.selectSingleNodeValue("//automatic_download");
      this.filename = xpathPayload.selectSingleNodeValue("//filename");
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

  // ======================================================
  class SchedulerUpdateAnswer {
    SchedulerUpdateAnswer(String xml) throws Exception {
      SOSXMLXPath xpathPayload = new sos.xml.SOSXMLXPath(new java.lang.StringBuffer(xml));
      this.release = xpathPayload.selectSingleNodeValue("//release");
      this.new_release = xpathPayload.selectSingleNodeValue("//new_release");
      this.os = xpathPayload.selectSingleNodeValue("//os");
      this.os_install = xpathPayload.selectSingleNodeValue("//os_install");
      this.automatic_download = xpathPayload.selectSingleNodeValue("//automatic_download");
      this.filename = xpathPayload.selectSingleNodeValue("//filename");
      update_needed = xpathPayload.selectSingleNodeValue("//update_needed");
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

  class SchedulerUpdateAnswer {
    SchedulerUpdateAnswer(String xml) throws Exception {
      SOSXMLXPath xpathPayload = new sos.xml.SOSXMLXPath(new java.lang.StringBuffer(xml));
      this.release = xpathPayload.selectSingleNodeValue("//release");
      this.new_release = xpathPayload.selectSingleNodeValue("//new_release");
      this.os = xpathPayload.selectSingleNodeValue("//os");
      this.os_install = xpathPayload.selectSingleNodeValue("//os_install");
      this.automatic_download = xpathPayload.selectSingleNodeValue("//automatic_download");
      this.filename = xpathPayload.selectSingleNodeValue("//filename");
      update_needed = xpathPayload.selectSingleNodeValue("//update_needed");
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

    SchedulerUpdateAnswer(String xml) throws Exception {
      SOSXMLXPath xpathPayload = new sos.xml.SOSXMLXPath(new java.lang.StringBuffer(xml));
      this.release = xpathPayload.selectSingleNodeValue("//release");
      this.new_release = xpathPayload.selectSingleNodeValue("//new_release");
      this.os = xpathPayload.selectSingleNodeValue("//os");
      this.os_install = xpathPayload.selectSingleNodeValue("//os_install");
      this.automatic_download = xpathPayload.selectSingleNodeValue("//automatic_download");
      this.filename = xpathPayload.selectSingleNodeValue("//filename");
      update_needed = xpathPayload.selectSingleNodeValue("//update_needed");

    }
View Full Code Here

Examples of sos.xml.SOSXMLXPath.selectSingleNodeValue()

  }

  private boolean isOrderJob(File configFile) throws Exception {

    SOSXMLXPath xp = new SOSXMLXPath(configFile.getAbsolutePath());
    String orderAtt = xp.selectSingleNodeValue("/job/@order");
    if (orderAtt != null && orderAtt.equalsIgnoreCase("yes")) {
      getLogger().debug8("File " + configFile + " is orderjob.");
      return true;
    }
    getLogger().debug8("File " + configFile + " is independent job.");
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.