Package hu.lacimol.tutorial.todo.service

Examples of hu.lacimol.tutorial.todo.service.TodoService


 
  @Override
  public void execute(Map<String, Object> jobDataMap) {
   
    final TodoMonitor monitor = (TodoMonitor) jobDataMap.get("TodoMonitorImpl:instance");
    final TodoService service = (TodoService) jobDataMap.get("TodoService");
   
    DateTime now = DateTime.now();
    SimpleDateFormat fmt = GlobalSettings.createHunDateFormatter();
    service.create("TodoTask description " + fmt.format(now.toDate()));
    monitor.setLastRun(now.toDate());
    monitor.setNextRun(now.plus(monitor.getInterval()).toDate());
    logger.info("TodoTask executed at " + fmt.format(monitor.getLastRun()) + " and will execute at "
        + fmt.format(monitor.getNextRun()));
  }
View Full Code Here

TOP

Related Classes of hu.lacimol.tutorial.todo.service.TodoService

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.