Package sos.settings

Examples of sos.settings.SOSConnectionSettings


                if (this.getLogger() != null) sosLogger.debug6("connecting to database...");

                this.setConnection(getSchedulerConnection(this.getJobSettings(), this.getLogger()));
                this.getConnection().connect();
               
                this.setConnectionSettings(new SOSConnectionSettings(this.getConnection(), "SETTINGS", this.getLogger()));
               
                if (this.getLogger() != null) this.getLogger().debug6("..successfully connected to Job Scheduler database.");
            }
            catch (Exception e) {
                spooler_log.info("connect to database failed: " + e.getMessage());
View Full Code Here


                getLogger().debug6(".. job parameter [table_settings]: " + this.getTableMailSettings());
            }
        }
   
    try{
      sosMailSettings = new SOSConnectionSettings(job.getConnection(), this.getTableMailSettings(),
                this.getApplicationMail(), this.getSectionMail(), getLogger());
   
      getLogger().debug3("MailSettings: "+sosMailSettings.getSection().size());
    } catch(Exception e){
      getLogger().debug3("MailSettings were not found.");
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

            SOSStandardLogger logger = new SOSStandardLogger(9);
            // .. create connection
            SOSConnection connection = SOSConnection.createInstance("/scheduler/config/sos_settings.ini", logger);
            connection.connect();
            // .. create settings instance from connection
            SOSConnectionSettings settings = new
            SOSConnectionSettings( connection,          // connection instance
                                  "SETTINGS",           // settings table
                                  logger);

            processor = new SOSDocumentFactoryTextProcessor(settings, "email_templates", "email_templates");
View Full Code Here

            SOSStandardLogger logger = new SOSStandardLogger(9);
            // .. create connection
            SOSConnection connection = SOSConnection.createInstance("/scheduler/config/sos_settings.ini", logger);
            connection.connect();
            // .. create settings instance from connection
            SOSConnectionSettings settings = new
            SOSConnectionSettings( connection,          // connection instance
                                  "SETTINGS",           // settings table
                                  logger);

            processor = new SOSPlainTextProcessor(settings, "email_templates", "email_templates");
View Full Code Here

   * @throws Exception
   */
  private void readConnectionSettings() throws Exception {
    try {
      if (sosConnection != null && sosString.parseToString(settingsProfilename).length() > 0) {
        SOSConnectionSettings settings = new SOSConnectionSettings(sosConnection, settingsTablename, settingsApplicationname, settingsProfilename,
            sosLogger);
        Properties p = settings.getSection();
        originParameterFromSettings = new SOSConfigurationItem[p.size()];
        Iterator it = p.keySet().iterator();
        int i = 0;
        while (it.hasNext()) {
          String key = sosString.parseToString(it.next());
View Full Code Here

                if (this.getLogger() != null) sosLogger.debug6("connecting to database...");

                this.setConnection(getSchedulerConnection(this.getJobSettings(), this.getLogger()));
                this.getConnection().connect();
               
                this.setConnectionSettings(new SOSConnectionSettings(this.getConnection(), "SETTINGS", this.getLogger()));
               
                if (this.getLogger() != null) this.getLogger().debug6("..successfully connected to Job Scheduler database.");
            }
            catch (Exception e) {
                spooler_log.info("connect to database failed: " + e.getMessage());
View Full Code Here

      if (factoryIniSource!=null){
        oldConnection = getDBConnection(factoryIniSource.getAbsolutePath(), logger);
        oldConnection.connect();
        sameConnection = false;
      }
      settings = new SOSConnectionSettings(newConnection,"SETTINGS",logger);
     
      if (!sameConnection) convertJobTypes();
      if (!sameConnection) convertConnections();
      int branchId = initTree(branch);
      convertIndependentJobs(branchId);
View Full Code Here

                      );
        */
        this.setConnection(getSchedulerConnection(this.getJobSettings(), this.getLogger()));
        this.getConnection().connect();

        this.setConnectionSettings(new SOSConnectionSettings(this.getConnection(), "SETTINGS", this.getLogger()));

        if (this.getLogger() != null)
          this.getLogger().debug6("..successfully connected to Job Scheduler database.");
      }
      catch (Exception e) {
View Full Code Here

  /*****
     * Key f�r MANAGED_JOBS
     *
     */
    public HashMap key_handler_MANAGED_JOBS(HashMap keys) throws Exception {
        SOSConnectionSettings sosSettings = new SOSConnectionSettings(
        conn, JobSchedulerManagedObject.getTableSettings(), sosLogger);
    int key = sosSettings.getLockedSequence("scheduler",
        "counter", "scheduler_managed_jobs.id");
    keys.put("ID", String.valueOf(key));
     
        return keys;
    }
View Full Code Here

TOP

Related Classes of sos.settings.SOSConnectionSettings

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.