Package sos.spooler

Examples of sos.spooler.Order.params()


          if (stdErrLine.trim().length() > 0)
            stdErrEmpty = false;
          stdErrString += stdErrLine + "\n";
        }
        if (orderJob && order != null) {
          Variable_set realOrderPayload = order.params();
          SetVar(realOrderPayload, conStd_err_output, stdErrString);
          SetVar(realOrderPayload, conStd_out_output, stdOutString);
          SetVar(realOrderPayload, conExit_code, "" + subProc.exit_code());
          SetVar(realOrderPayload, "timed_out", "" + timedOut);
          // for compatibility with SubProcessJob
View Full Code Here


      Variable_set params = spooler.create_variable_set();      
      params = spooler_task.params();

      if (spooler_task.job().order_queue() != null) {
        order = spooler_task.order();
        if ( order.params() != null)
          params.merge(order.params());
      }
      return params;
    } catch (Exception e) {
      throw new Exception("error occurred reading Patameter: " + e.getMessage());
View Full Code Here

      params = spooler_task.params();

      if (spooler_task.job().order_queue() != null) {
        order = spooler_task.order();
        if ( order.params() != null)
          params.merge(order.params());
      }
      return params;
    } catch (Exception e) {
      throw new Exception("error occurred reading Patameter: " + e.getMessage());
    }
View Full Code Here

            Order order = spooler_task.order();
            String liveFolder="";
            String orderXML = order.xml();
        SOSXMLXPath xp = new SOSXMLXPath(new StringBuffer(orderXML));                     
        String jobChainPath = xp.selectSingleNodeValue("/order/@job_chain");
            if (order.params().value("configuration_path") != null && order.params().value("configuration_path").length() > 0) {
                this.setConfigurationPath(order.params().value("configuration_path"));
            } else if (spooler_task.params().value("configuration_path") != null && spooler_task.params().value("configuration_path").length() > 0) {
                this.setConfigurationPath(spooler_task.params().value("configuration_path"));
            } else {
              if (spooler_job.configuration_directory().length()>0){
View Full Code Here

            Order order = spooler_task.order();
            String liveFolder="";
            String orderXML = order.xml();
        SOSXMLXPath xp = new SOSXMLXPath(new StringBuffer(orderXML));                     
        String jobChainPath = xp.selectSingleNodeValue("/order/@job_chain");
            if (order.params().value("configuration_path") != null && order.params().value("configuration_path").length() > 0) {
                this.setConfigurationPath(order.params().value("configuration_path"));
            } else if (spooler_task.params().value("configuration_path") != null && spooler_task.params().value("configuration_path").length() > 0) {
                this.setConfigurationPath(spooler_task.params().value("configuration_path"));
            } else {
              if (spooler_job.configuration_directory().length()>0){
View Full Code Here

            String liveFolder="";
            String orderXML = order.xml();
        SOSXMLXPath xp = new SOSXMLXPath(new StringBuffer(orderXML));                     
        String jobChainPath = xp.selectSingleNodeValue("/order/@job_chain");
            if (order.params().value("configuration_path") != null && order.params().value("configuration_path").length() > 0) {
                this.setConfigurationPath(order.params().value("configuration_path"));
            } else if (spooler_task.params().value("configuration_path") != null && spooler_task.params().value("configuration_path").length() > 0) {
                this.setConfigurationPath(spooler_task.params().value("configuration_path"));
            } else {
              if (spooler_job.configuration_directory().length()>0){
                File fLiveBaseFolder = new File(spooler.configuration_directory());               
View Full Code Here

              else
                this.setConfigurationPath(new File(spooler.ini_path()).getParent());
              this.getLogger().debug2(".. parameter [configuration_path]: " + this.getConfigurationPath());
            }

            if (order.params().value("configuration_file") != null && order.params().value("configuration_file").length() > 0) {
                this.setConfigurationFilename(order.params().value("configuration_file"));
            } else if (spooler_task.params().value("configuration_file") != null && spooler_task.params().value("configuration_file").length() > 0) {
                this.setConfigurationFilename(spooler_task.params().value("configuration_file"));
            } else {
                if (spooler_job.order_queue() != null) {
View Full Code Here

              else
                this.setConfigurationPath(new File(spooler.ini_path()).getParent());
              this.getLogger().debug2(".. parameter [configuration_path]: " + this.getConfigurationPath());
            }

            if (order.params().value("configuration_file") != null && order.params().value("configuration_file").length() > 0) {
                this.setConfigurationFilename(order.params().value("configuration_file"));
            } else if (spooler_task.params().value("configuration_file") != null && spooler_task.params().value("configuration_file").length() > 0) {
                this.setConfigurationFilename(spooler_task.params().value("configuration_file"));
            } else {
                if (spooler_job.order_queue() != null) {
View Full Code Here

                this.setConfigurationPath(new File(spooler.ini_path()).getParent());
              this.getLogger().debug2(".. parameter [configuration_path]: " + this.getConfigurationPath());
            }

            if (order.params().value("configuration_file") != null && order.params().value("configuration_file").length() > 0) {
                this.setConfigurationFilename(order.params().value("configuration_file"));
            } else if (spooler_task.params().value("configuration_file") != null && spooler_task.params().value("configuration_file").length() > 0) {
                this.setConfigurationFilename(spooler_task.params().value("configuration_file"));
            } else {
                if (spooler_job.order_queue() != null) {
                    // this.setConfigurationFilename("scheduler_" + spooler_task.order().job_chain().name() + "_" + order.id() + ".config.xml");
View Full Code Here

            this.setLogger(new SOSSchedulerLogger(spooler_log));           

            Order order = spooler_task.order();

            if (rc == false) {
                if (order.params() != null && order.params().value("setback") != null
                        && order.params().value("setback").equalsIgnoreCase("false")
                           || order.params().value("setback").equalsIgnoreCase("no")
                           || order.params().value("setback").equals("0")
                        )) {
                    // clear setback parameter for other jobs
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.