Package it.sauronsoftware.cron4j

Examples of it.sauronsoftware.cron4j.TaskTable


public class MyTaskCollector implements TaskCollector {

  public TaskTable getTasks() {
    SchedulingPattern pattern = new SchedulingPattern("* * * * *");
    Task task = new MyTask();
    TaskTable ret = new TaskTable();
    ret.add(pattern, task);
    return ret;
  }
View Full Code Here


      log.log(Level.FINE, "Could not read cron file", e);
    }

    //
    ShellFactory factory = getContext().getPlugin(ShellFactory.class);
    TaskTable table = new TaskTable();
    for (String cronLine : lines) {
      CRaSHTaskDef crshTask = validateAndParseCronLine(cronLine);
      if (crshTask != null) {
        table.add(crshTask.getSchedullingPattern(), new CRaSHTask(this, factory, crshTask));
      }
      else {
        log.log(Level.FINE, "Cannot parse cron line " + cronLine);
      }
    }
View Full Code Here

TOP

Related Classes of it.sauronsoftware.cron4j.TaskTable

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.