Package com.redwood.scheduler.api.job
Interface UserJob
-
public interface UserJob
A user defined job.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(UserJobContext jobContext)
Execute the job with the specified job context.
-
-
-
Method Detail
-
execute
void execute(UserJobContext jobContext) throws Exception
Execute the job with the specified job context. If this method returns then the job status is set to:- Completed - if the return code is zero.
- Error - if the return code is non-zero.
- Parameters:
jobContext
- the job context.- Throws:
Exception
- if an error occurs.
-
-