<?xml version="1.0" encoding="iso-8859-1"?>

<spooler>

  <config>

    <jobs>

      <job name           = "scheduler_check_sanity"
           title          = "Check Sanity"
           spooler_id     = "">
           
        <description>
          <include file = "jobs/JobSchedulerCheckSanity.xml"/>
        </description>
           
        <script language      = "java"
                java_class    = "sos.scheduler.job.JobSchedulerCheckSanity"/>

        <!-- check disk space and memory in the given interval of seconds (30 minutes) -->
        <!--
        <run_time let_run = "yes"
                  begin   = "00:00" 
                  end     = "24:00"
                  once    = "yes"
                  repeat  = "1800"/>
        -->                  
      </job>
      
      
      <job name       = "scheduler_rotate_log"
           title      = "Rotate and compress logfiles"
           spooler_id = "">

        <description>
          <include file = "jobs/JobSchedulerRotateLog.xml"/>
        </description>
  
        <params>
          <!-- store archive with compressed log files in this directory, otherwise the current log directory is used -->
          <!--<param name = "file_path" value = "/tmp/backup"/>-->
          <!-- compress log files with the given file specification, otherwise compress all files with the suffixs .log -->
          <!--<param name = "file_specification" value = "^(scheduler)([0-9\\-]+)(" + spooler.id() + "\\.log)$"/>-->
          <!-- compress log files older than the given number of days -->
          <!--<param name = "file_age" value = "14"/>-->
        </params>
        

        <script language      = "java"
                java_class    = "sos.scheduler.job.JobSchedulerRotateLog"/>

        <!-- rotate log files at the in the given start time -->
        <!--
        <run_time let_run = "yes"
                  begin   = "00:00" 
                  end     = "24:00">
           <period single_start = "00:00"/>
         </run_time>
        -->

      </job>


      <job name       = "scheduler_cleanup_files"
           title      = "Remove temporary files"
           spooler_id = "">

        <description>
          <include file = "jobs/JobSchedulerCleanupFiles.xml"/>
        </description>

        <params>
          <!-- remove temporary files from the given directory otherwise from the users temp directory  -->
          <!--<param name = "file_path" value = "/tmp"/>-->
          <!-- remove temporary files with the given prefix -->
          <!--<param name = "file_specification" value = "^(sos.*)"/>-->
          <!-- remove temporary files older than the given number of milliseconds -->
          <!--<param name = "file_age" value = "86400000"/>-->
        </params>

        <script language      = "java"
                java_class    = "sos.scheduler.job.JobSchedulerCleanupFiles"/>

        <!-- cleanup files in the given interval of seconds (24 hours) -->
        <!--
        <run_time let_run = "yes"
                  begin   = "00:00" 
                  end     = "24:00"
                  repeat  = "24:00:00"/>
        -->

      </job>


      <job name       = "scheduler_cleanup_history"
           title      = "Compress log entries in Job Scheduler history">

        <description>
           <include file = "jobs/JobSchedulerCleanupHistory.xml"/>
        </description>

        <params>
          <!-- reduce log files of history entries to the given log level -->
          <!--<param name = "cleanup_history_log_level" value = "0"/>-->
          <!-- chose history entries in the given interval of days -->
          <!--<param name = "cleanup_history_interval"  value = "3"/>-->

          <!-- alternatively give the start date for cleanup of log files -->
          <!--<param name = "cleanup_history_date_from" value = "2004-03-22"/>-->
          <!-- alternatively give the end date for cleanup of log files -->
          <!--<param name = "cleanup_history_date_to"   value = "2004-11-04"/>-->
        </params>

        <script language      = "java"
                java_class    = "sos.scheduler.job.JobSchedulerCleanupHistory"/>

        <!-- cleanup history entries every day of the week at the given hour -->
        <!--
        <run_time let_run = "yes"
                  begin   = "00:00"
                  end     = "24:00">
           <period single_start = "01:00"/>
        </run_time>
        -->

      </job>


      <job name       = "scheduler_dequeue_mail"
           title      = "Send buffered mails from mail queue">

        <description>
           <include file = "jobs/JobSchedulerDequeueMailJob.xml"/>
        </description>

        <script language      = "java"
                java_class    = "sos.scheduler.job.JobSchedulerDequeueMailJob"/>

        <!-- repeat dequeueing in the given interval of seconds (1/2 hour) -->
        <!--
        <run_time let_run = "yes"
                  repeat  = "1800"/>
        -->

      </job>


      <job name       = "scheduler_restart"
           title      = "Restart Job Scheduler">

        <description>
           <include file = "jobs/JobSchedulerRestart.xml"/>
        </description>
        
        <params>
          <!-- restart is forced after given interval of seconds (default: 600) -->
          <!--<param name = "timeout" value = "600"/>-->          
        </params>

        <script language      = "java"
                java_class    = "sos.scheduler.job.JobSchedulerRestart"/>

        <!-- restart job scheduler every day of the week at the given hour -->
        <!--
        <run_time let_run = "yes"
                  begin   = "00:00"
                  end     = "24:00">
           <period single_start = "04:00"/>
        </run_time>
        -->

      </job>         

    </jobs>

  </config>
  
</spooler>