Package org.ametys.core.schedule
Interface Schedulable
- All Known Implementing Classes:
AbstractCollectionSchedulable
,AbstractDeleteFilesSchedulable
,AbstractRebuildLiveWorkspaceSchedulable
,AbstractReportSchedulable
,AbstractSendingMailSchedulable
,AbstractSendNotificationSummarySchedulable
,AbstractStaticSchedulable
,AlertSchedulable
,AlertSchedulable
,AlertSchedulable
,ApogeeSchedulable
,ArchiveContentsSchedulable
,ArchiveContentsSchedulable
,ArchiveEducationalBookletSchedulable
,ArchiveEducationalBookletSchedulable
,AutomaticNewslettersSchedulable
,CacheMonitoringSchedulable
,CatalogPDFExportSchedulable
,CatalogPDFExportSchedulable
,CheckContentConsistencySchedulable
,CheckContentConsistencySchedulable
,CleanCacheSchedulable
,CleanFSUploadSchedulable
,CleanJCaptchaSchedulable
,ComputeProgramSkillsSchedulable
,ComputeProgramSkillsSchedulable
,ContentExportSchedulable
,CopyCatalogSchedulable
,CoursePartPurgeSchedulable
,DeleteCatalogSchedulable
,DeleteClassifiedAdsSchedulable
,DeleteEducationalBookletSchedulable
,DeleteExtractionsSchedulable
,DeleteReportsSchedulable
,DuplicateContentsDetectionSchedulable
,DuplicateContentsDetectionSchedulable
,EducationalBookletSchedulable
,EducationalBookletSchedulable
,EmptyCollectionSchedulable
,ExecuteExtractionSchedulable
,ExportArchiveSchedulable
,ExportSchedulable
,FrontCacheMonitoringSchedulable
,GlobalValidationSchedulable
,GlobalWorkspaceIndexerSchedulable
,ImportArchiveSchedulable
,IndexContentSchedulable
,InvalidateFOCacheSchedulable
,MaintenanceSchedulable
,MCCValidatedPDFSchedulable
,OdfRefTableDataSynchronizationSchedulable
,OrgUnitConsistencyExtractSchedulable
,OrgUnitMCCDiffReportSchedulable
,OrgUnitMCCReportSchedulable
,OrgUnitReportSchedulable
,ProgramConsistencyExtractSchedulable
,ProgramMCCReportSchedulable
,ProgramReportSchedulable
,PublishOrUnpublishPageSchedulable
,PurgeContentsSchedulable
,RebuildContentsWithoutSiteLiveWorkspaceSchedulable
,RebuildLiveAllWorkspaceSchedulable
,RebuildLiveSiteWorkspaceSchedulable
,ReindexMembersSchedulable
,ReloadSolrAclCacheSchedulable
,ReloadSolrAclCachesForCoresSchedulable
,RRDsFeederSchedulable
,ScriptSchedulable
,SendDailyNotificationSummarySchedulable
,SendInvitationsSchedulable
,SendMailSchedulable
,SendMonthlyNotificationSummarySchedulable
,SendWeeklyNotificationSummarySchedulable
,ServersSynchronizationSchedulable
,SiteIndexerSchedulable
,SolrExportSchedulable
,StatisticsSchedulable
,SynchronizeAllCollectionsSchedulable
,SynchronizeCollectionSchedulable
,UnlockSchedulable
public interface Schedulable
This interface represents a 'job' which can be performed and scheduled.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if two runnables of this schedulable can be executed concurrentlyvoid
execute
(JobExecutionContext context, ContainerProgressionTracker progressionTracker) The action to perform when a trigger is fired.Return the descriptionReturns the glyph iconReturns the path to the large icon in 48x48 pixelsReturns the path to the medium icon in 32x32 pixelsReturns the path to the small icon in 16x16 pixelsgetId()
Returns the idgetLabel()
Returns the labelGet the parameters for job executiongetProgressionTracker
(JobExecutionContext context) Get the description of the current stepboolean
Returns true if the schedulable is private
-
Method Details
-
execute
void execute(JobExecutionContext context, ContainerProgressionTracker progressionTracker) throws Exception The action to perform when a trigger is fired. Do not manually call this method.- Parameters:
context
- the contextprogressionTracker
- The progression tracker- Throws:
Exception
- if an error occurred
-
getId
Returns the id- Returns:
- the id
-
getLabel
Returns the label- Returns:
- the i18n label
-
getDescription
Return the description- Returns:
- the i18n description
-
getIconGlyph
Returns the glyph icon- Returns:
- the glyph icon
-
getIconSmall
Returns the path to the small icon in 16x16 pixels- Returns:
- the path to the 16x16 icon
-
getIconMedium
Returns the path to the medium icon in 32x32 pixels- Returns:
- the path to the 32x32 icon
-
getIconLarge
Returns the path to the large icon in 48x48 pixels- Returns:
- the path to the 48x48 icon
-
getProgressionTracker
Get the description of the current step- Parameters:
context
- The context- Returns:
- The description of the current step
-
isPrivate
boolean isPrivate()Returns true if the schedulable is private- Returns:
- true if the schedulable is private
-
acceptConcurrentExecution
boolean acceptConcurrentExecution()Returns true if two runnables of this schedulable can be executed concurrently- Returns:
- true if two runnables of this schedulable can be executed concurrently
-
getParameters
Get the parameters for job execution- Returns:
- the parameters
-