Package org.silverpeas.core.scheduler
Class EmptyJob
- java.lang.Object
-
- org.silverpeas.core.scheduler.Job
-
- org.silverpeas.core.scheduler.EmptyJob
-
public class EmptyJob extends Job
Empty job. It does nothing and it is just a convienence way to schedule a job whereas the true job execution is performed in fact by aSchedulerEventListener
object.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(JobExecutionContext context)
Executes the job with the specified execution context.
-
-
-
Constructor Detail
-
EmptyJob
public EmptyJob(String name)
Creates a new job with the specified name.- Parameters:
name
- the name under which the job has to be registered in the scheduler.
-
-
Method Detail
-
execute
public void execute(JobExecutionContext context)
Description copied from class:Job
Executes the job with the specified execution context. The context carries the information that can be required by the job to fulfill its execution, like the job parameters.
-
-