Examples of as_string()


Examples of sos.util.SOSArguments.as_string()

        xmlFile = arguments.as_string("-file=","job_export.xml");
        logLevel = arguments.as_int("-v=",SOSStandardLogger.INFO);
        logFile = arguments.as_string("-log=","");
        modelID = arguments.as_string("-jobchain=","");
        packageName = arguments.as_string("-package=","");
        settingsFile = arguments.as_string("-settings=","../config/factory.ini");
      } catch (Exception e1) {
        System.out.println(e1.getMessage());
        showUsage();
        System.exit(0);
      }
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

        while (keys.hasNext()) {
          String key = sosString.parseToString(keys.next());
          String newKey = (key.trim().startsWith("-") && key.trim().endsWith("=") & key.length() > 0 ? key.substring(1, key.length() - 1) : key);
          originParameterFromArguments[i] = new SOSConfigurationItem();
          originParameterFromArguments[i].setName(newKey);
          originParameterFromArguments[i].setValue(arguments_.as_string(key.toString()));
          i++;
        }

      }
      else {
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

               
                SOSArguments arguments = new SOSArguments(dbProperty);

              this.setConnection( SOSConnection.createInstance
                                    this.getJobProperties().getProperty("db_class"),
                                    arguments.as_string("-class=", ""),
                                    arguments.as_string("-url=", ""),
                                    arguments.as_string("-user=", ""),
                                    arguments.as_string("-password=", ""),
                                    (SOSLogger)new SOSSchedulerLogger(this.spooler_log) )
                            );
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

                SOSArguments arguments = new SOSArguments(dbProperty);

              this.setConnection( SOSConnection.createInstance
                                    this.getJobProperties().getProperty("db_class"),
                                    arguments.as_string("-class=", ""),
                                    arguments.as_string("-url=", ""),
                                    arguments.as_string("-user=", ""),
                                    arguments.as_string("-password=", ""),
                                    (SOSLogger)new SOSSchedulerLogger(this.spooler_log) )
                            );
              this.getConnection().connect();
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

              this.setConnection( SOSConnection.createInstance
                                    this.getJobProperties().getProperty("db_class"),
                                    arguments.as_string("-class=", ""),
                                    arguments.as_string("-url=", ""),
                                    arguments.as_string("-user=", ""),
                                    arguments.as_string("-password=", ""),
                                    (SOSLogger)new SOSSchedulerLogger(this.spooler_log) )
                            );
              this.getConnection().connect();
               
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

              this.setConnection( SOSConnection.createInstance
                                    this.getJobProperties().getProperty("db_class"),
                                    arguments.as_string("-class=", ""),
                                    arguments.as_string("-url=", ""),
                                    arguments.as_string("-user=", ""),
                                    arguments.as_string("-password=", ""),
                                    (SOSLogger)new SOSSchedulerLogger(this.spooler_log) )
                            );
              this.getConnection().connect();
               
              if (this.getLogger() != null) this.getLogger().debug6("..successfully connected to " + arguments.as_string("-url=", ""));
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

                                    arguments.as_string("-password=", ""),
                                    (SOSLogger)new SOSSchedulerLogger(this.spooler_log) )
                            );
              this.getConnection().connect();
               
              if (this.getLogger() != null) this.getLogger().debug6("..successfully connected to " + arguments.as_string("-url=", ""));
            }
            catch (Exception e) {
                throw (new Exception("connect to database failed: " + e.getMessage()));
            }
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

      String logFile="";
      int logLevel=0;
      String settingsFile="";
      int jobID=0;
      try {
        xmlFile = arguments.as_string("-file=","job_export.xml");
        logLevel = arguments.as_int("-v=",SOSStandardLogger.INFO);
        logFile = arguments.as_string("-log=","");
        jobID = arguments.as_int("-job=");
        settingsFile = arguments.as_string("-settings=","../config/factory.ini");
      } catch (Exception e1) {
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

      String settingsFile="";
      int jobID=0;
      try {
        xmlFile = arguments.as_string("-file=","job_export.xml");
        logLevel = arguments.as_int("-v=",SOSStandardLogger.INFO);
        logFile = arguments.as_string("-log=","");
        jobID = arguments.as_int("-job=");
        settingsFile = arguments.as_string("-settings=","../config/factory.ini");
      } catch (Exception e1) {
        System.out.println(e1.getMessage());
        showUsage();
View Full Code Here

Examples of sos.util.SOSArguments.as_string()

      try {
        xmlFile = arguments.as_string("-file=","job_export.xml");
        logLevel = arguments.as_int("-v=",SOSStandardLogger.INFO);
        logFile = arguments.as_string("-log=","");
        jobID = arguments.as_int("-job=");
        settingsFile = arguments.as_string("-settings=","../config/factory.ini");
      } catch (Exception e1) {
        System.out.println(e1.getMessage());
        showUsage();
        System.exit(0);
      }
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.