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 java.lang.Object implements CronJobNotificationTemplateContext
Default implementation of notification template context using giving CronJob instance.- Since:
- 3.1-u7
-
-
Constructor Summary
Constructors Constructor Description DefaultCronJobNotificationTemplateContext(CronJob cronJob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCronJobName()Gets the name of the executed CronJob.java.lang.StringgetDuration()Gets the duration of the executed CronJob.java.lang.StringgetEndDate()Gets the end date of executed CronJob.java.lang.StringgetResult()Gets the resulting state of executed CronJob.java.lang.StringgetStartDate()Gets the start date of executed CronJob.java.lang.StringgetStatus()Gets the final status of the CronJob.
-
-
-
Constructor Detail
-
DefaultCronJobNotificationTemplateContext
public DefaultCronJobNotificationTemplateContext(CronJob cronJob)
-
-
Method Detail
-
getCronJobName
public java.lang.String getCronJobName()
Description copied from interface:CronJobNotificationTemplateContextGets the name of the executed CronJob.- Specified by:
getCronJobNamein interfaceCronJobNotificationTemplateContext- Returns:
- name of CronJob
-
getEndDate
public java.lang.String getEndDate()
Description copied from interface:CronJobNotificationTemplateContextGets the end date of executed CronJob.- Specified by:
getEndDatein interfaceCronJobNotificationTemplateContext- Returns:
- end date
-
getDuration
public java.lang.String getDuration()
Description copied from interface:CronJobNotificationTemplateContextGets the duration of the executed CronJob.- Specified by:
getDurationin interfaceCronJobNotificationTemplateContext- Returns:
- duration
-
getResult
public java.lang.String 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
public java.lang.String getStartDate()
Description copied from interface:CronJobNotificationTemplateContextGets the start date of executed CronJob.- Specified by:
getStartDatein interfaceCronJobNotificationTemplateContext- Returns:
- start date
-
getStatus
public java.lang.String 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
-
-