Package sos.spooler

Examples of sos.spooler.Variable_set.merge()


      Variable_set mergedParams = job.spooler.create_variable_set();
      mergedParams.merge(taskParams);
      if(job.spooler_task.job().order_queue()!=null){
        order = job.spooler_task.order();
        orderPayload = order.params();
        mergedParams.merge(orderPayload);
      }
      String connectionName = mergedParams.var("database_connection");
     
      // check if job uses ProcessDatabaseJob Parameters:
      if (mergedParams.var("db_class").length()>0 &&
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());
                }
               
                // get basic authentication parameters
                this.getBaseParameters();
               
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

        try {

            parameters = spooler_task.params();
           
            if (spooler_job.order_queue() != null) {
                parameters.merge(spooler_task.order().params());
                this.initParameters();
                this.getTaskParameters(false);
                this.getOrderParameters(spooler_task.order().params(), true);
            }
           
View Full Code Here

                }

              getLogger().debug3("Looking for global parameters from scheduler variables");

                Variable_set globalVariables = spooler.create_variable_set();
                globalVariables.merge(spooler.variables());
                globalVariables.merge(spooler_task.params());
                if (globalVariables.value("global_configuration_params")!=null && globalVariables.value("global_configuration_params").length()>0){
                  String globalFile = globalVariables.value("global_configuration_params");
                  getLogger().debug3("Reading global parameters from "+globalFile);
                  SOSXMLXPath globalXPath = new SOSXMLXPath(globalFile);
View Full Code Here

              getLogger().debug3("Looking for global parameters from scheduler variables");

                Variable_set globalVariables = spooler.create_variable_set();
                globalVariables.merge(spooler.variables());
                globalVariables.merge(spooler_task.params());
                if (globalVariables.value("global_configuration_params")!=null && globalVariables.value("global_configuration_params").length()>0){
                  String globalFile = globalVariables.value("global_configuration_params");
                  getLogger().debug3("Reading global parameters from "+globalFile);
                  SOSXMLXPath globalXPath = new SOSXMLXPath(globalFile);
                  NodeList globalParams = globalXPath.selectNodeList("//params/param");
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());
            }
               
            if (params.value("host") != null && params.value("host").toString().length() > 0) {
                 this.setHost(params.value("host"));
                 spooler_log.info(".. parameter [host]: " + this.getHost());
View Full Code Here

           
            JobSchedulerEventJob.readEventsFromDB(getConnection(), spooler, eventDocument, getLogger());
           
            // merge params
      Variable_set params = spooler.create_variable_set();
      if (spooler_task.params() != null) params.merge(spooler_task.params());
      if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
        params.merge(spooler_task.order().params());
     
      String eventSpec ="";
     
View Full Code Here

           
            // merge params
      Variable_set params = spooler.create_variable_set();
      if (spooler_task.params() != null) params.merge(spooler_task.params());
      if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
        params.merge(spooler_task.order().params());
     
      String eventSpec ="";
     
      if (params.var("scheduler_event_spec")!=null && params.var("scheduler_event_spec").length()>0){
        eventSpec = params.var("scheduler_event_spec");
View Full Code Here

  }

  private void startOrder(SOSMimeMessage message, String host_, int port_, String jobchain, String id, String state, String title) throws Exception {
    Variable_set order_params = spooler.create_variable_set();
    sosLogger.debug3("....merge");
    order_params.merge(spooler_task.params());
    order_params.set_var("mail_from", message.getFrom());
    if (message.getFromName() != null) {
      order_params.set_var("mail_from_name", message.getFromName());
    }
    else {
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.