Package org.ametys.core.schedule
Interface Schedulable
-
- All Known Implementing Classes:
AbstractCollectionSchedulable
,AbstractDeleteFilesSchedulable
,AbstractRebuildLiveWorkspaceSchedulable
,AbstractReportSchedulable
,AbstractSendingMailSchedulable
,AbstractSendNotificationSummarySchedulable
,AbstractStaticSchedulable
,ApogeeSchedulable
,ArchiveEducationalBookletSchedulable
,ArchiveEducationalBookletSchedulable
,CatalogPDFExportSchedulable
,CatalogPDFExportSchedulable
,CheckContentConsistencySchedulable
,CheckContentConsistencySchedulable
,CleanCacheSchedulable
,CleanJCaptchaSchedulable
,ComputeProgramSkillsSchedulable
,ComputeProgramSkillsSchedulable
,ContentExportSchedulable
,CopyCatalogSchedulable
,CoursePartPurgeSchedulable
,DeleteCatalogSchedulable
,DeleteClassifiedAdsSchedulable
,DeleteEducationalBookletSchedulable
,DeleteExtractionsSchedulable
,DeleteReportsSchedulable
,DuplicateContentsDetectionSchedulable
,DuplicateContentsDetectionSchedulable
,EducationalBookletSchedulable
,EducationalBookletSchedulable
,EmptyCollectionSchedulable
,ExecuteExtractionSchedulable
,ExportArchiveSchedulable
,ExportSchedulable
,GlobalValidationSchedulable
,GlobalWorkspaceIndexerSchedulable
,ImportArchiveSchedulable
,InvalidateFOCacheSchedulable
,OrgUnitConsistencyExtractSchedulable
,OrgUnitMCCDiffReportSchedulable
,OrgUnitReportSchedulable
,ProgramConsistencyExtractSchedulable
,ProgramReportSchedulable
,PublishOrUnpublishPageSchedulable
,RebuildLiveAllWorkspaceSchedulable
,RebuildLiveSiteWorkspaceSchedulable
,ReindexMembersSchedulable
,ReloadSolrAclCacheSchedulable
,ReloadSolrAclCachesForCoresSchedulable
,ScriptSchedulable
,SendDailyNotificationSummarySchedulable
,SendMailSchedulable
,SendMonthlyNotificationSummarySchedulable
,SendWeeklyNotificationSummarySchedulable
,ServersSynchronizationSchedulable
,SiteIndexerSchedulable
,SolrExportSchedulable
,SynchronizeAllCollectionsSchedulable
,SynchronizeCollectionSchedulable
,UnlockSchedulable
public interface Schedulable
This interface represents a 'job' which can be performed and scheduled.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
acceptConcurrentExecution()
Returns true if two runnables of this schedulable can be executed concurrentlyvoid
execute(JobExecutionContext context)
The action to perform when a trigger is fired.I18nizableText
getDescription()
Return the descriptionString
getIconGlyph()
Returns the glyph iconString
getIconLarge()
Returns the path to the large icon in 48x48 pixelsString
getIconMedium()
Returns the path to the medium icon in 32x32 pixelsString
getIconSmall()
Returns the path to the small icon in 16x16 pixelsString
getId()
Returns the idI18nizableText
getLabel()
Returns the labelMap<String,ElementDefinition>
getParameters()
Get the parameters for job executionboolean
isPrivate()
Returns true if the schedulable is private
-
-
-
Method Detail
-
execute
void execute(JobExecutionContext context) throws Exception
The action to perform when a trigger is fired. Do not manually call this method.- Parameters:
context
- the context- Throws:
Exception
- if an error occured
-
getLabel
I18nizableText getLabel()
Returns the label- Returns:
- the i18n label
-
getDescription
I18nizableText getDescription()
Return the description- Returns:
- the i18n description
-
getIconGlyph
String getIconGlyph()
Returns the glyph icon- Returns:
- the glyph icon
-
getIconSmall
String getIconSmall()
Returns the path to the small icon in 16x16 pixels- Returns:
- the path to the 16x16 icon
-
getIconMedium
String getIconMedium()
Returns the path to the medium icon in 32x32 pixels- Returns:
- the path to the 32x32 icon
-
getIconLarge
String getIconLarge()
Returns the path to the large icon in 48x48 pixels- Returns:
- the path to the 48x48 icon
-
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
Map<String,ElementDefinition> getParameters()
Get the parameters for job execution- Returns:
- the parameters
-
-