Class CronService

java.lang.Object
java.lang.Thread
fr.ifremer.isisfish.cron.CronService
All Implemented Interfaces:
Runnable

public class CronService extends Thread
Main cron service job.
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
  • Field Details

  • Constructor Details

    • CronService

      public CronService()
      Init cron service with default available services.
  • Method Details

    • addService

      protected void addService(Runnable task)
      Add a new task for execution.
      Parameters:
      task - task to add
    • run

      public void run()
      Run all registered services once and stop. This behavior may change later to run as a real cron service.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread