Package sos.settings

Examples of sos.settings.SOSConnectionSettings


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


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

                throw (new Exception("an error occurred processing job parameters: " + e.getMessage()));
            }

            try { // to create settings instance if a connection was given
                if (this.getConnection() != null && this.hasDatabase()) {
                    this.sosMailSettings = new
                    SOSConnectionSettings( this.getConnection(),    // connection instance
                                      this.getTableMailSettings()// settings table
                                      this.getApplicationMail(),    // eMail application in settings
                                      this.getSectionMail(),        // eMail section in settings
                                      this.getLogger()              // logger instance
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

        //wenn scheduler_remote_host und scheduler_remote_port nicht angegeben sind, dann 
        //die Einstellungen aus der Settings lesen
        if((sosString.parseToString(getHost()).length() == 0
            || sosString.parseToString(getHost()).equalsIgnoreCase("localhost")) &&
            getPort() == 4444) {           
          SOSConnectionSettings settings = new SOSConnectionSettings(sosConnection, "SETTINGS", new SOSSchedulerLogger(this.spooler.log()));
         
          Properties section = settings.getSection(application, sectionname);
          if(sosString.parseToString(section, "scheduler.host").length() > 0){
            setHost(sosString.parseToString(section, "scheduler.host"));
            spooler_log.info(".. settings [scheduler.host]: " + this.getHost());
            //Port auslesen nur wenn host auch aus der Settingstabelle ausgelesen wurde.
            if(sosString.parseToString(section, "scheduler.port").length() > 0){
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.