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)
SchedulerExecutionHook
jobExecutionAboutToStart
in interface SchedulerExecutionHook
public void actionExecutionAboutToStart(AbstractJob job, ExecutionLogEntry logEntry)
SchedulerExecutionHook
actionExecutionAboutToStart
in interface SchedulerExecutionHook
public void executionEndedSuccessfully(AbstractJob job, ExecutionLogEntry logEntry)
SchedulerExecutionHook
executionEndedSuccessfully
in interface SchedulerExecutionHook
public void executionEndedAbnormally(AbstractJob job, ExecutionLogEntry logEntry, java.lang.Exception e)
SchedulerExecutionHook
executionEndedAbnormally
in interface SchedulerExecutionHook
public VetoJobExecution doesVetoExecution(AbstractJob job, ExecutionLogEntry logEntry)
doesVetoExecution
in interface SchedulerExecutionHook
public void informAboutVeto(AbstractJob job, ExecutionLogEntry logEntry, VetoJobExecution veto)
informAboutVeto
in interface SchedulerExecutionHook
public void actionExecutionEndedAbnormally(AbstractJob job, AbstractAction action, ActionEntry actionEntry, java.lang.Exception e)
SchedulerExecutionHook
actionExecutionEndedAbnormally
in interface SchedulerExecutionHook
public void jobExecutionEndedAbnormally(AbstractJob job, JobEntry jobEntry, java.lang.Exception e)
SchedulerExecutionHook
jobExecutionEndedAbnormally
in interface SchedulerExecutionHook
public void beforeJobSchedule(AbstractJob job, AbstractTrigger trigger)
beforeJobSchedule
in interface SchedulerInfoHook
public void jobScheduled(AbstractJob job, AbstractTrigger trigger)
jobScheduled
in interface SchedulerInfoHook
public void beforeJobRescheduled(AbstractJob job, AbstractTrigger trigger, AbstractJob previous)
beforeJobRescheduled
in interface SchedulerInfoHook
public void beforeJobUnschedule(AbstractJob job)
beforeJobUnschedule
in interface SchedulerInfoHook
public void jobRescheduled(AbstractJob job, AbstractTrigger trigger)
jobRescheduled
in interface SchedulerInfoHook
public void jobUnscheduled(AbstractJob job)
jobUnscheduled
in interface SchedulerInfoHook
public void beforeJobRemove(AbstractJob job)
beforeJobRemove
in interface SchedulerInfoHook
public void jobRemoved(AbstractJob job)
jobRemoved
in interface SchedulerInfoHook
public void actionExecutionEndedSuccessfully(AbstractJob job, AbstractAction action, ExecutionLogEntry logEntry)
SchedulerExecutionHook
actionExecutionEndedSuccessfully
in interface SchedulerExecutionHook
public VetoActionExecution doesVetoActionExecution(AbstractJob job, ExecutionLogEntry logEntry)
doesVetoActionExecution
in interface SchedulerExecutionHook
public void informAboutVeto(AbstractJob job, ExecutionLogEntry logEntry, VetoActionExecution veto)
informAboutVeto
in interface SchedulerExecutionHook