public class SchedulerNotificationHooker extends java.lang.Object implements SchedulerExecutionHook, SchedulerInfoHook
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_NOTIFICATION_FAILURE_SUBJECT |
static java.lang.String |
PROPERTY_NOTIFICATION_FAILURE_TEXT |
static java.lang.String |
PROPERTY_NOTIFICATION_SCHEDULED_SUBJECT |
static java.lang.String |
PROPERTY_NOTIFICATION_SCHEDULED_TEXT |
static java.lang.String |
PROPERTY_NOTIFICATION_UNSCHEDULED_SUBJECT |
static java.lang.String |
PROPERTY_NOTIFICATION_UNSCHEDULED_TEXT |
| Constructor and Description |
|---|
SchedulerNotificationHooker(Configuration config,
<any> emp,
Injector injector,
MailService mailService,
ExceptionService exceptionServices,
RemoteMessageService remoteMessageService) |
public static final java.lang.String PROPERTY_NOTIFICATION_SCHEDULED_SUBJECT
public static final java.lang.String PROPERTY_NOTIFICATION_SCHEDULED_TEXT
public static final java.lang.String PROPERTY_NOTIFICATION_UNSCHEDULED_SUBJECT
public static final java.lang.String PROPERTY_NOTIFICATION_UNSCHEDULED_TEXT
public static final java.lang.String PROPERTY_NOTIFICATION_FAILURE_SUBJECT
public static final java.lang.String PROPERTY_NOTIFICATION_FAILURE_TEXT
public SchedulerNotificationHooker(Configuration config,
<any> emp,
Injector injector,
MailService mailService,
ExceptionService exceptionServices,
RemoteMessageService remoteMessageService)
public void jobExecutionAboutToStart(AbstractJob job, ExecutionLogEntry logEntry)
SchedulerExecutionHookjobExecutionAboutToStart in interface SchedulerExecutionHookpublic void actionExecutionAboutToStart(AbstractJob job, ExecutionLogEntry logEntry)
SchedulerExecutionHookactionExecutionAboutToStart in interface SchedulerExecutionHookpublic void executionEndedSuccessfully(AbstractJob job, ExecutionLogEntry logEntry)
SchedulerExecutionHookexecutionEndedSuccessfully in interface SchedulerExecutionHookpublic void executionEndedAbnormally(AbstractJob job, ExecutionLogEntry logEntry, java.lang.Exception e)
SchedulerExecutionHookexecutionEndedAbnormally in interface SchedulerExecutionHookpublic VetoJobExecution doesVetoExecution(AbstractJob job, ExecutionLogEntry logEntry)
doesVetoExecution in interface SchedulerExecutionHookpublic void informAboutVeto(AbstractJob job, ExecutionLogEntry logEntry, VetoJobExecution veto)
informAboutVeto in interface SchedulerExecutionHookpublic void actionExecutionEndedAbnormally(AbstractJob job, AbstractAction action, ActionEntry actionEntry, java.lang.Exception e)
SchedulerExecutionHookactionExecutionEndedAbnormally in interface SchedulerExecutionHookpublic void jobExecutionEndedAbnormally(AbstractJob job, JobEntry jobEntry, java.lang.Exception e)
SchedulerExecutionHookjobExecutionEndedAbnormally in interface SchedulerExecutionHookpublic void beforeJobSchedule(AbstractJob job, AbstractTrigger trigger)
beforeJobSchedule in interface SchedulerInfoHookpublic void jobScheduled(AbstractJob job, AbstractTrigger trigger)
jobScheduled in interface SchedulerInfoHookpublic void beforeJobRescheduled(AbstractJob job, AbstractTrigger trigger, AbstractJob previous)
beforeJobRescheduled in interface SchedulerInfoHookpublic void beforeJobUnschedule(AbstractJob job)
beforeJobUnschedule in interface SchedulerInfoHookpublic void jobRescheduled(AbstractJob job, AbstractTrigger trigger)
jobRescheduled in interface SchedulerInfoHookpublic void jobUnscheduled(AbstractJob job)
jobUnscheduled in interface SchedulerInfoHookpublic void beforeJobRemove(AbstractJob job)
beforeJobRemove in interface SchedulerInfoHookpublic void jobRemoved(AbstractJob job)
jobRemoved in interface SchedulerInfoHookpublic void actionExecutionEndedSuccessfully(AbstractJob job, AbstractAction action, ExecutionLogEntry logEntry)
SchedulerExecutionHookactionExecutionEndedSuccessfully in interface SchedulerExecutionHookpublic VetoActionExecution doesVetoActionExecution(AbstractJob job, ExecutionLogEntry logEntry)
doesVetoActionExecution in interface SchedulerExecutionHookpublic void informAboutVeto(AbstractJob job, ExecutionLogEntry logEntry, VetoActionExecution veto)
informAboutVeto in interface SchedulerExecutionHook