Some JavaDocs to help explain the Job behavior.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369491 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian Crum
2012-08-04 22:17:02 +00:00
parent 5779419ca3
commit a324ef7bb3
2 changed files with 5 additions and 1 deletions
@@ -97,7 +97,7 @@ public class GenericServiceJob extends AbstractJob implements Serializable {
}
/**
* Method is called after the service has finished.
* Method is called after the service has finished successfully.
*/
protected void finish(Map<String, Object> result) throws InvalidJobException {
if (currentState != State.RUNNING) {
@@ -20,6 +20,10 @@ package org.ofbiz.service.job;
/**
* A scheduled job.
* <p>A job starts out in the created state. When the job is queued for execution, it
* transitions to the queued state. While the job is executing it is in the running state.
* When the job execution ends, it transitions to the finished or failed state - depending
* on the outcome of the task that was performed.</p>
*/
public interface Job {