Package sos.settings

Examples of sos.settings.SOSSettings


     * @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


      SOSDialogTest dialogTest = new SOSDialogTest(logger);
          /* if (dialogTest.initialize(this.configFile)) {
              throw new Exception("error occurred initializing SOSDialogTest");
          }*/
      //dialogTest.initialize(this.configFile);
      SOSSettings settings = new SOSProfileSettings(configFile);
      dialogTest.initialize(settings);
          dialogTest.execute();
         
      } catch (Exception e) {
          spooler_log.warn("error occurred in JobSchedulerDialogTest: " + e.getMessage());
View Full Code Here

                sosMail.setQueueDir(this.getQueueDirectory());

            // set queue prefix "sos" to enable dequeueing by JobSchedulerMailDequeueJob
            sosMail.setQueuePraefix(this.getQueuePrefix());

            SOSSettings smtpSettings = new SOSProfileSettings(spooler.ini_path());
            Properties smtpProperties = smtpSettings.getSection("smtp");

            if (!smtpProperties.isEmpty()) {
                if (smtpProperties.getProperty("mail.smtp.user") != null && smtpProperties.getProperty("mail.smtp.user").length() > 0) {
                    sosMail.setUser(smtpProperties.getProperty("mail.smtp.user"));
                }
View Full Code Here

    //db= jdbc -class=com.microsoft.sqlserver.jdbc.SQLServerDriver jdbc:sqlserver://8of9:2433;sendStringParametersAsUnicode=false;selectMethod=cursor;databaseName=ehp_bkk -user=ehp_bkk -password=ehp_bkk
   
    //SOSConnection conn = SOSConnection.createInstance("SOSMySQLConnection","com.mysql.jdbc.Driver","jdbc:mysql://wilma.sos:3305/scheduler", "scheduler", "scheduler",logger);
    SOSConnection conn = SOSConnection.createInstance("SOSMSSQLConnection","com.microsoft.sqlserver.jdbc.SQLServerDriver","jdbc:sqlserver://8of9:2433;sendStringParametersAsUnicode=false;selectMethod=cursor;databaseName=ehp_bkk", "ehp_bkk", "ehp_bkk",logger);
    conn.connect();
    SOSSettings settings = new SOSConnectionSettings(conn,"SETTINGS", logger);
    SOSMailOrder order = new SOSMailOrder(settings, conn);   
    order.setSOSLogger(logger);
    order.addRecipient(mailto);
    order.setLanguage("en");
    order.setSubjectTemplate("default_subject");
View Full Code Here

   * @throws Exception
   */
  private void readProfileSettings() throws Exception {
    try {
      if (sosString.parseToString(settingsFile).length() > 0 && sosString.parseToString(settingsProfilename).length() > 0) {
        SOSSettings settings = null;
        Properties p = null;
        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();
        int i = 0;
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

   * returns the Settings for the Job Scheduler as SOSSettings object
   * @param factoryIni Path to factory.ini (delivered by spooler.ini_path() )
   * @throws Exception
   */
  public static SOSSettings getSchedulerSettings(String factoryIni) throws Exception {
    SOSSettings schedulerSettings = new SOSProfileSettings(factoryIni);
    return schedulerSettings;
  }
View Full Code Here

                }else {
                  // use defaults from Scheduler configuration
                  sosMail = new SOSMail(host);
                  sosMail.setQueueDir(queueDir);
                  sosMail.setFrom(from);
                  SOSSettings smtpSettings = new SOSProfileSettings(spooler.ini_path());
                  Properties smtpProperties = smtpSettings.getSection("smtp");
                  if (!smtpProperties.isEmpty()) {
                            if (smtpProperties.getProperty("mail.smtp.user") != null && smtpProperties.getProperty("mail.smtp.user").length() > 0) {
                                sosMail.setUser(smtpProperties.getProperty("mail.smtp.user"));
                            }
                            if (smtpProperties.getProperty("mail.smtp.password") != null && smtpProperties.getProperty("mail.smtp.password").length() > 0) {
View Full Code Here

      sosMail.setQueueDir(spooler_log.mail().queue_dir());
      sosMail.setFrom(spooler_log.mail().from());
      sosMail.addRecipient(spooler_log.mail().to());
      sosMail.addCC(spooler_log.mail().cc());
      sosMail.addBCC(spooler_log.mail().bcc());
      SOSSettings smtpSettings = new SOSProfileSettings(spooler.ini_path());
      Properties smtpProperties = smtpSettings.getSection("smtp");
      if (!smtpProperties.isEmpty()) {
                if (smtpProperties.getProperty("mail.smtp.user") != null && smtpProperties.getProperty("mail.smtp.user").length() > 0) {
                    sosMail.setUser(smtpProperties.getProperty("mail.smtp.user"));
                }
                if (smtpProperties.getProperty("mail.smtp.password") != null && smtpProperties.getProperty("mail.smtp.password").length() > 0) {
View Full Code Here

TOP

Related Classes of sos.settings.SOSSettings

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.