Package sos.settings

Examples of sos.settings.SOSProfileSettings


   
    getLog().debug3("Update factory.ini:" + factoryIni + " Section=" + section);
   
    //
   
    SOSProfileSettings p = new SOSProfileSettings(factoryIni, "emptySection");
   
   
//    SOSProfileSettings p = new SOSProfileSettings(factoryIni, section, getLogger());
   
    Properties job = p.getSection();
   
   
    job.setProperty("log_mail_to", to);
    job.setProperty("log_mail_cc", cc);
    job.setProperty("log_mail_bcc", bcc);
View Full Code Here


        if (new java.io.File(settingsFile).getName().endsWith(".xml")) {
          settings = new SOSXMLSettings(settingsFile, settingsProfilename, sosLogger);
          p = settings.getSection(settingsApplicationname, settingsProfilename);
        }
        else {
          settings = new SOSProfileSettings(settingsFile, settingsProfilename, sosLogger);
          p = settings.getSection();
        }

        originParameterFromSettings = new SOSConfigurationItem[p.size()];
        Iterator it = p.keySet().iterator();
View Full Code Here

      if(!new File(configFile).exists()) {
        new File(configFile).createNewFile();
      }

      settings = new SOSProfileSettings(configFile);
      ArrayList l = settings.getSections();
      profileNames = convert(settings.getSections().toArray());

      profiles = new HashMap();
      for(int i = 0; i < l.size(); i++) {
View Full Code Here

  /**
   * @param settingsFile
   * @throws Exception
   */
  protected static SOSConnection getDBConnection(String settingsFile) throws Exception {
    SOSProfileSettings settings = new SOSProfileSettings(settingsFile);
    Properties props = settings.getSection("spooler");
   
    if (props.isEmpty())
        throw new Exception("no settings found in section [spooler] of configuration file: " + settingsFile);

    if (props.getProperty("db") == null || props.getProperty("db").length() == 0)
View Full Code Here

            if (!rc) return false;
            this.setLogger(new SOSSchedulerLogger(spooler_log));           

            try { // to initialize database connection
               
                this.setJobSettings(new SOSProfileSettings(spooler.ini_path()));
                this.setJobProperties(this.jobSettings.getSection("spooler"));

                if (this.getJobProperties().isEmpty())
                    throw new Exception("no settings found in section [spooler] of configuration file: " + spooler.ini_path());
View Full Code Here

     * @param factoryIni Pfad zur Datei factory.ini (wird von der Methode ini_path()
     * des spooler Objekts geliefert)
     * @throws Exception
     */
    public static SOSSettings getSchedulerSettings(String factoryIni) throws Exception{
        SOSSettings schedulerSettings = new SOSProfileSettings(factoryIni);
        return schedulerSettings;
    }
View Full Code Here

    private boolean getSettings() {
       
        try {
            if (spooler_job == null) return false;
           
            setJobSettings(new SOSProfileSettings(spooler.ini_path()));
            setJobProperties(getJobSettings().getSection("job " + spooler_job.name()));

            if (getJobProperties().isEmpty()) return false;

            return true;
View Full Code Here

      if(!new File(configFile).exists()) {
        new File(configFile).createNewFile();
      }

      settings = new SOSProfileSettings(configFile);
      ArrayList l = settings.getSections();
      profileNames = convert(settings.getSections().toArray());

      profiles = new HashMap();
      for(int i = 0; i < l.size(); i++) {
View Full Code Here

  /**
   * @param settingsFile
   * @throws Exception
   */
  protected static SOSConnection getDBConnection(String settingsFile, SOSLogger sosLogger) throws Exception {
    SOSProfileSettings settings = new SOSProfileSettings(settingsFile);
    Properties props = settings.getSection("spooler");
   
    if (props.isEmpty())
        throw new Exception("no settings found in section [spooler] of configuration file: " + settingsFile);

    if (props.getProperty("db") == null || props.getProperty("db").length() == 0)
View Full Code Here

      if (!rc)
        return false;
      this.setLogger(new SOSSchedulerLogger(spooler_log));

      try { // to initialize database connection
        this.setJobSettings(new SOSProfileSettings(spooler.ini_path()));
        this.setJobProperties(this.jobSettings.getSection("spooler"));
        if (this.getJobProperties().isEmpty())
          throw new Exception("no settings found in section [spooler] of configuration file: " + spooler.ini_path());
        if (this.getJobProperties().getProperty("db") == null || this.getJobProperties().getProperty("db").length() == 0)
          throw new Exception("no settings found for entry [db] in section [spooler] of configuration file: " + spooler.ini_path());
View Full Code Here

TOP

Related Classes of sos.settings.SOSProfileSettings

Copyright © 2018 www.massapicom. 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.