Class AbstractStaticSchedulable

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
All Implemented Interfaces:
Schedulable, LogEnabled, PluginAware, Component, Configurable, Contextualizable, Serviceable
Direct Known Subclasses:
AbstractCollectionSchedulable, AbstractDeleteFilesSchedulable, AbstractReportSchedulable, AbstractSendingMailSchedulable, AbstractSendNotificationSummarySchedulable, ApogeeSchedulable, CheckContentConsistencySchedulable, CleanCacheSchedulable, CleanJCaptchaSchedulable, ComputeProgramSkillsSchedulable, ContentExportSchedulable, CoursePartPurgeSchedulable, DeleteClassifiedAdsSchedulable, ExportArchiveSchedulable, ExportSchedulable, GlobalValidationSchedulable, ImportArchiveSchedulable, InvalidateFOCacheSchedulable, PublishOrUnpublishPageSchedulable, ReindexMembersSchedulable, ReloadSolrAclCacheSchedulable, ReloadSolrAclCachesForCoresSchedulable, ScriptSchedulable, SendMailSchedulable, ServersSynchronizationSchedulable, SolrExportSchedulable, SynchronizeAllCollectionsSchedulable, UnlockSchedulable

Default static implementation of Schedulable For implementing the Schedulable interface (while being Configurable), extends this class and implements the execute(org.quartz.JobExecutionContext) method
For instance:
 public class SayHelloSchedulable extends AbstractStaticSchedulable
 {
     public static final String FIRSTNAME_KEY = "firstName";
     
     private static final String __JOBDATAMAP_FIRSTNAME_KEY = Scheduler.PARAM_VALUES_PREFIX + FIRSTNAME_KEY;
     
     public void execute(JobExecutionContext context) throws Exception
     {
         JobKey jobKey = context.getJobDetail().getKey();
         JobDataMap jobDataMap = context.getJobDetail().getJobDataMap();
         String name = jobDataMap.getString(__JOBDATAMAP_FIRSTNAME_KEY);
         System.out.println("[" + jobKey + "] " + new Date() + " - Hello  " + name + "!");
     }
 }