Package de.hybris.platform.cronjob.jalo
Class DefaultCronJobNotificationTemplateContext
java.lang.Object
de.hybris.platform.cronjob.jalo.DefaultCronJobNotificationTemplateContext
- All Implemented Interfaces:
CronJobNotificationTemplateContext
public class DefaultCronJobNotificationTemplateContext
extends Object
implements CronJobNotificationTemplateContext
Default implementation of notification template context using giving CronJob instance.
- Since:
- 3.1-u7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the executed CronJob.Gets the duration of the executed CronJob.Gets the end date of executed CronJob.Gets the resulting state of executed CronJob.Gets the start date of executed CronJob.Gets the final status of the CronJob.
-
Constructor Details
-
DefaultCronJobNotificationTemplateContext
-
-
Method Details
-
getCronJobName
Description copied from interface:CronJobNotificationTemplateContextGets the name of the executed CronJob.- Specified by:
getCronJobNamein interfaceCronJobNotificationTemplateContext- Returns:
- name of CronJob
-
getEndDate
Description copied from interface:CronJobNotificationTemplateContextGets the end date of executed CronJob.- Specified by:
getEndDatein interfaceCronJobNotificationTemplateContext- Returns:
- end date
-
getDuration
Description copied from interface:CronJobNotificationTemplateContextGets the duration of the executed CronJob.- Specified by:
getDurationin interfaceCronJobNotificationTemplateContext- Returns:
- duration
-
getResult
Description copied from interface:CronJobNotificationTemplateContextGets the resulting state of executed CronJob. Will be one of ERROR, FAILURE, SUCCESS, UNKNOWN.- Specified by:
getResultin interfaceCronJobNotificationTemplateContext- Returns:
- result of CronJob
-
getStartDate
Description copied from interface:CronJobNotificationTemplateContextGets the start date of executed CronJob.- Specified by:
getStartDatein interfaceCronJobNotificationTemplateContext- Returns:
- start date
-
getStatus
Description copied from interface:CronJobNotificationTemplateContextGets the final status of the CronJob. Should be one of ABORTED, FINISHED, UNKNOWN.- Specified by:
getStatusin interfaceCronJobNotificationTemplateContext- Returns:
- final status of CronJob
-