Package br.com.caelum.vraptor.tasks

Examples of br.com.caelum.vraptor.tasks.TaskStatistics


    return getClass().getSimpleName();
  }

  public void jobWasExecuted(JobExecutionContext context, JobExecutionException exception) {
    String taskId = getId(context);
    TaskStatistics stats = findStats(context);
    stats.update(context, exception, scheduler);
    executionEvent.fire(new TaskExecution(taskId, stats, exception));
  }
View Full Code Here


  }
 
  private TaskStatistics findStats(JobExecutionContext context) {
    String taskId = getId(context);
    if(!statistics.containsKey(taskId))
      statistics.put(taskId, new TaskStatistics(taskId, context));
    return statistics.get(taskId);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.tasks.TaskStatistics

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.