public class FileScanJob extends java.lang.Object implements StatefulJob
FileScanListener
that can be found in the
SchedulerContext
.FileScanListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_NAME |
static java.lang.String |
FILE_SCAN_LISTENER_NAME |
Constructor and Description |
---|
FileScanJob() |
Modifier and Type | Method and Description |
---|---|
void |
execute(JobExecutionContext context)
|
public static final java.lang.String FILE_NAME
public static final java.lang.String FILE_SCAN_LISTENER_NAME
public void execute(JobExecutionContext context) throws JobExecutionException
Job
Called by the
when a Scheduler
fires that is associated with the Trigger
Job
.
The implementation may wish to set a
result
object on the
JobExecutionContext
before this method exits. The result itself
is meaningless to Quartz, but may be informative to
or
JobListener
s
that are watching the job's
execution.
TriggerListener
s
execute
in interface Job
JobExecutionException
- if there is an exception while executing the job.Job.execute(org.quartz.JobExecutionContext)