Package sos.util

Examples of sos.util.SOSStandardLogger


          e.printStackTrace();
      }
  }
    private void testFactoryIni() throws Exception{
      startscript=false;
      SOSLogger log = new SOSStandardLogger(SOSLogger.DEBUG9);
      //setLogger(log);
      String name = "TestJob_new";
      String xml = "<email_settings to=\"oh@sos-berlin.com\"/>";
      try  {
        updateFactoryIni(xml,name);
View Full Code Here


      }
  }
   
    private void testDocumentation() throws Exception{
      startscript=false;
      SOSLogger log = new SOSStandardLogger(SOSLogger.DEBUG9);
      SOSConnection conn = SOSConnection.createInstance("j:/e/java/al/sos.scheduler/config/sos_setup_settings.ini", log);
      //setLogger(log);
      try{
     
      conn.connect();
View Full Code Here

     *
     * @throws Exception
     */
    private void setStubLogger() throws Exception {
        if (logger == null)
        logger = new SOSStandardLogger(new NullBufferedWriter(
                new OutputStreamWriter(System.out)), SOSStandardLogger.DEBUG1);
        return;
    }
View Full Code Here

    }
   
  }
 
   public static void main(String[] args) throws Exception {
     SOSStandardLogger logger = new SOSStandardLogger(9);

     String file        = "c:/1.txt";

     String command     = " count   test";  
    SOSSchedulerTextProcessor textProcessor = new SOSSchedulerTextProcessor (logger, new File(file),command);
View Full Code Here

            System.out.println(processor.getDocumentContent());
           
           
            // template sample with settings
            // .. create logger
            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
View Full Code Here

            System.out.println(processor.getDocumentContent());
           
           
            // template sample with settings
            // .. create logger
            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
View Full Code Here

     */
    public static SOSConnection getJobConnection(SOSConnection connection, String spoolerId, String jobName, SOSLogger log) throws Exception{
      SOSConnection localConnection;
      String connectionName = "";
      HashMap result = null;
      if (log==null) log=new SOSStandardLogger(SOSLogger.INFO);
     
      if (connectionName == null || connectionName.length() == 0) {
             connectionName = connection.getSingleValue("SELECT \"CONNECTION\" FROM " + getTableManagedJobs() +
              " WHERE \"SPOOLER_ID\"='" + spoolerId + "' AND \"JOB_NAME\"='" + jobName + "'");
        }
View Full Code Here

        SOSConnection localConnection;
      String connectionName = "";
      String jobChainModel = "";
      HashMap result = null;
     
      if (log==null) log=new SOSStandardLogger(SOSLogger.INFO);
      String orderId = getOrderIdInTable(spoolerId, jobChain, order);
         
       connectionName=databaseConnection;
     
      
View Full Code Here

      } catch (Exception e1) {
        System.out.println(e1.getMessage());
        showUsage();
        System.exit(0);
      }
      if (logFile.length()>0sosLogger = new SOSStandardLogger(logFile, logLevel);
      else sosLogger = new SOSStandardLogger(logLevel);
     
      getDBConnection(settingsFile);
           
      conn.connect();
     
View Full Code Here

        new java.io.File(filename).mkdirs();
     
      filename = filename+ "/scheduler_editor.log";
       
      if(logger == null)
        logger = new SOSStandardLogger(filename, SOSStandardLogger.DEBUG1);
     
    } catch(Exception e) {
      try {
        if(logger != null)
          logger.debug("error in " + SOSClassUtil.getMethodName() + ", cause: " + e.getMessage());
View Full Code Here

TOP

Related Classes of sos.util.SOSStandardLogger

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.