public class FileMonitorJob extends Object implements org.quartz.StatefulJob
FileMonitor.| Constructor and Description |
|---|
FileMonitorJob() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.quartz.JobExecutionContext context) |
static void |
schedule(String jobName,
long interval,
FileMonitor monitor)
Schedules a periodical execution of the specified monitor as a background job.
|
static void |
unschedule(String jobName)
Unschedules the execution of the specified background job.
|
public static void schedule(String jobName, long interval, FileMonitor monitor)
jobName - the background job name to useinterval - the execution interval in millisecondsmonitor - the monitor to schedule execution forpublic static void unschedule(String jobName)
jobName - the background job name to stop and deletepublic void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
execute in interface org.quartz.Joborg.quartz.JobExecutionExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.