Package org.ametys.core.schedule
Interface Schedulable
-
- All Known Implementing Classes:
AbstractArchiveSchedulable,AbstractRebuildLiveWorkspaceSchedulable,AbstractReportSchedulable,AbstractSendingMailSchedulable,AbstractStaticSchedulable,ApogeeSchedulable,CleanJCaptchaSchedulable,ComputeProgramSkillsSchedulable,ComputeProgramSkillsSchedulable,ContentExportSchedulable,CoursePartPurgeSchedulable,DeleteClassifiedAdsSchedulable,DeleteReportsSchedulable,ExecuteExtractionSchedulable,ExportArchiveSchedulable,ExportSchedulable,GlobalValidationSchedulable,GlobalWorkspaceIndexerSchedulable,ImportArchiveSchedulable,InvalidateFOCacheSchedulable,OrgUnitConsistencyExtractSchedulable,OrgUnitMCCDiffReportSchedulable,OrgUnitReportSchedulable,ProgramConsistencyExtractSchedulable,ProgramReportSchedulable,PublishOrUnpublishPageSchedulable,RebuildLiveAllWorkspaceSchedulable,RebuildLiveSiteWorkspaceSchedulable,ReloadSolrAclCacheSchedulable,ReloadSolrAclCachesForCoresSchedulable,ScriptSchedulable,SendMailSchedulable,SiteIndexerSchedulable,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 booleanacceptConcurrentExecution()Returns true if two runnables of this schedulable can be executed concurrentlyvoidexecute(JobExecutionContext context)The action to perform when a trigger is fired.I18nizableTextgetDescription()Return the descriptionStringgetIconGlyph()Returns the glyph iconStringgetIconLarge()Returns the path to the large icon in 48x48 pixelsStringgetIconMedium()Returns the path to the medium icon in 32x32 pixelsStringgetIconSmall()Returns the path to the small icon in 16x16 pixelsStringgetId()Returns the idI18nizableTextgetLabel()Returns the labelMap<String,ElementDefinition>getParameters()Get the parameters for job executionbooleanisPrivate()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
-
-